Skip to content

Commit

Permalink
Replace non-standard exit calls with fortran stop
Browse files Browse the repository at this point in the history
  • Loading branch information
sstgfbc committed Mar 8, 2022
1 parent 70f9198 commit 7ee0cc0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/w90chk2chk.F90
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ subroutine io_error(error_msg, stdout, seedname)
close (stdout)
write (*, '(1x,a)') trim(error_msg)
write (*, '(A)') "Error: examine the output/error file for details"
call exit(1)
stop
end subroutine io_error

subroutine print_usage(stdout)
Expand Down
2 changes: 1 addition & 1 deletion src/w90spn2spn.F90
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ subroutine io_error(error_msg, stdout, seedname)
close (stdout)
write (*, '(1x,a)') trim(error_msg)
write (*, '(A)') "Error: examine the output/error file for details"
call exit(1)
stop
end subroutine io_error

!================================================!
Expand Down
3 changes: 2 additions & 1 deletion src/wannier_lib.F90
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ subroutine prterr(error, stdout)
! rep old behaviour for a moment while testing...
write (stdout, *) 'Exiting.......'
write (stdout, *) error%message
call exit(error%code)
stop
!call exit(error%code)
end subroutine prterr
end module w90_libv1_types

Expand Down

0 comments on commit 7ee0cc0

Please sign in to comment.