Skip to content

Commit

Permalink
Fix error message formatting in
Browse files Browse the repository at this point in the history
read_input_module.f90
  • Loading branch information
kohei-noda-qcrg committed Dec 15, 2023
1 parent ee6f324 commit 494d6e8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/read_input_module.f90
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,11 @@ subroutine validate_nroot_selectroot
implicit none
if (nroot < selectroot) then
if (rank == 0) then
print *, "ERROR: The number of root must be larger than or equal to the number of selected root."
print *, "The number of root:", nroot
print *, "The number of selected root:", selectroot
print *, "ERROR: The number of root must be larger than or equal to"
print *, "the number of selected root."
print '(a,i0)', "The number of nroot: ", nroot
print '(a,i0)', "The number of selectroot: ", selectroot
print *, "Please check your input file."
print *, "Exit the program."
end if
call stop_with_errorcode(1)
Expand Down

0 comments on commit 494d6e8

Please sign in to comment.