Skip to content

Commit 0d6dabc

Browse files
sakamotiawvwgk
andauthored
Apply suggestions from code review
Adding white spaces Co-authored-by: Sebastian Ehlert <[email protected]>
1 parent 670cb04 commit 0d6dabc

File tree

4 files changed

+41
-41
lines changed

4 files changed

+41
-41
lines changed

src/stdlib_logger.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ subroutine validate_unit()
352352
end if
353353

354354
! Check that unit is opened
355-
inquire( unit, opened=question, iostat=istat, iomsg=msgtxt)
356-
if(istat/=0) question=.false.
355+
inquire( unit, opened=question, iostat=istat, iomsg=msgtxt )
356+
if(istat /= 0) question = .false.
357357
if ( .not. question ) then
358358
if ( present(stat) ) then
359359
stat = unopened_in_error

src/stdlib_string_type.fypp

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,11 @@ contains
571571
logical, intent(in), optional :: back
572572
integer :: pos
573573

574-
if(present(back))then
575-
pos = index(maybe(string), maybe(substring),back)
574+
if (present(back)) then
575+
pos = index(maybe(string), maybe(substring), back)
576576
else
577-
pos = index(maybe(string), maybe(substring),.false.)
578-
endif
577+
pos = index(maybe(string), maybe(substring), .false.)
578+
end if
579579

580580
end function index_string_string
581581

@@ -587,11 +587,11 @@ contains
587587
logical, intent(in), optional :: back
588588
integer :: pos
589589

590-
if(present(back))then
591-
pos = index(maybe(string), substring,back)
590+
if (present(back)) then
591+
pos = index(maybe(string), substring, back)
592592
else
593-
pos = index(maybe(string), substring,.false.)
594-
endif
593+
pos = index(maybe(string), substring, .false.)
594+
end if
595595

596596
end function index_string_char
597597

@@ -603,11 +603,11 @@ contains
603603
logical, intent(in), optional :: back
604604
integer :: pos
605605

606-
if(present(back))then
607-
pos = index(string, maybe(substring),back)
606+
if (present(back)) then
607+
pos = index(string, maybe(substring), back)
608608
else
609-
pos = index(string, maybe(substring),.false.)
610-
endif
609+
pos = index(string, maybe(substring), .false.)
610+
end if
611611

612612
end function index_char_string
613613

@@ -621,11 +621,11 @@ contains
621621
logical, intent(in), optional :: back
622622
integer :: pos
623623

624-
if(present(back))then
625-
pos = scan(maybe(string), maybe(set),back)
624+
if (present(back)) then
625+
pos = scan(maybe(string), maybe(set), back)
626626
else
627-
pos = scan(maybe(string), maybe(set),.false.)
628-
endif
627+
pos = scan(maybe(string), maybe(set), .false.)
628+
end if
629629

630630
end function scan_string_string
631631

@@ -637,11 +637,11 @@ contains
637637
logical, intent(in), optional :: back
638638
integer :: pos
639639

640-
if(present(back))then
641-
pos = scan(maybe(string), set,back)
640+
if (present(back)) then
641+
pos = scan(maybe(string), set, back)
642642
else
643-
pos = scan(maybe(string), set,.false.)
644-
endif
643+
pos = scan(maybe(string), set, .false.)
644+
end if
645645

646646
end function scan_string_char
647647

@@ -653,11 +653,11 @@ contains
653653
logical, intent(in), optional :: back
654654
integer :: pos
655655

656-
if(present(back))then
657-
pos = scan(string, maybe(set),back)
656+
if (present(back)) then
657+
pos = scan(string, maybe(set), back)
658658
else
659-
pos = scan(string, maybe(set),.false.)
660-
endif
659+
pos = scan(string, maybe(set), .false.)
660+
end if
661661

662662
end function scan_char_string
663663

@@ -671,11 +671,11 @@ contains
671671
logical, intent(in), optional :: back
672672
integer :: pos
673673

674-
if(present(back))then
675-
pos = verify(maybe(string), maybe(set),back)
674+
if (present(back)) then
675+
pos = verify(maybe(string), maybe(set), back)
676676
else
677-
pos = verify(maybe(string), maybe(set),.false.)
678-
endif
677+
pos = verify(maybe(string), maybe(set), .false.)
678+
end if
679679

680680
end function verify_string_string
681681

@@ -688,11 +688,11 @@ contains
688688
logical, intent(in), optional :: back
689689
integer :: pos
690690

691-
if(present(back))then
692-
pos = verify(maybe(string), set,back)
691+
if (present(back)) then
692+
pos = verify(maybe(string), set, back)
693693
else
694-
pos = verify(maybe(string), set,.false.)
695-
endif
694+
pos = verify(maybe(string), set, .false.)
695+
end if
696696

697697
end function verify_string_char
698698

@@ -705,11 +705,11 @@ contains
705705
logical, intent(in), optional :: back
706706
integer :: pos
707707

708-
if(present(back))then
709-
pos = verify(string, maybe(set),back)
708+
if (present(back)) then
709+
pos = verify(string, maybe(set), back)
710710
else
711-
pos = verify(string, maybe(set),.false.)
712-
endif
711+
pos = verify(string, maybe(set), .false.)
712+
end if
713713

714714
end function verify_char_string
715715

src/tests/logger/test_stdlib_logger.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,8 @@ subroutine test_removing_log_units()
464464

465465
end if
466466

467-
inquire( unit4, opened=opened ,iostat=istat,iomsg=msgtxt)
468-
if(istat/=0) opened=.false.
467+
inquire( unit4, opened=opened, iostat=istat, iomsg=msgtxt )
468+
if(istat /= 0) opened = .false.
469469
if ( opened ) then
470470
error stop 'UNIT4 is opened contrary to expectations.'
471471

src/tests/stats/test_mean_f03.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ program test_mean
2020
call check( sum( abs( mean(d,2) - sum(d,2)/real(size(d,2), dp) )) < dptol)
2121

2222
!dp rank 8
23-
allocate(d8(size(d,1), size(d,2), 3, 4, 5, 6, 7, 8),source=0.0_dp)
23+
allocate(d8(size(d,1), size(d,2), 3, 4, 5, 6, 7, 8), source=0.0_dp)
2424
d8(:, :, 1, 4, 5 ,6 ,7 ,8)=d;
2525
d8(:, :, 2, 4, 5 ,6 ,7 ,8)=d * 1.5_dp;
2626
d8(:, :, 3, 4, 5 ,6 ,7 ,8)=d * 4._dp;

0 commit comments

Comments
 (0)