Skip to content

Commit

Permalink
Set correct exit code on SCF failure
Browse files Browse the repository at this point in the history
Set Schrodinger version
  • Loading branch information
Sasha Fonari committed Oct 17, 2022
1 parent 47b93e3 commit 67d80ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions PW/src/run_pwscf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,14 @@ SUBROUTINE run_pwscf( exit_status )
! ... code stopped by user or not converged
!
IF ( check_stop_now() .OR. .NOT. conv_elec ) THEN
IF ( check_stop_now() ) exit_status = 255
IF ( .NOT. conv_elec) THEN
IF (dmft) exit_status = 131
IF ( check_stop_now() ) THEN
exit_status = 255
ELSE
exit_status = 2
IF (dmft) THEN
exit_status = 131
ELSE
exit_status = 2
ENDIF
ENDIF
CALL qexsd_set_status(exit_status)
CALL punch( 'config' )
Expand Down
2 changes: 1 addition & 1 deletion include/qe_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
!
! global version number
!
CHARACTER (LEN=6) :: version_number = '7.1'
CHARACTER (LEN=12) :: version_number = '7.1_2022-4'

0 comments on commit 67d80ff

Please sign in to comment.