Skip to content

Commit

Permalink
THRIFT: Add FLUSH and remove no longer existing files from remove
Browse files Browse the repository at this point in the history
  • Loading branch information
ajchcoelho committed Nov 25, 2024
1 parent 8b112d0 commit 3200bd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions THRIFT/Sources/thrift_evolve.f90
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ SUBROUTINE thrift_evolve
WRITE(*, '(A33, F6.1, A)') ' TOTAL time in thrift_evolve: ', (etime_total-stime_total) / 60.0, ' min'
WRITE(6,*)'==============================================================================='
WRITE(6,*) ' '
CALL FLUSH(6)
END IF

! Deallocate helpers
Expand Down
2 changes: 1 addition & 1 deletion THRIFT/Sources/thrift_interface_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ SUBROUTINE thrift_cleanup
IF (myid == master) THEN
! Remove the *_opt* files
WRITE(6,*) ' Cleaning up files'; CALL FLUSH(6); ier = 0; ierr_mpi = 0; cmdtxt=''
CALL EXECUTE_COMMAND_LINE("rm -rf dcon* jxbout* mercier* dkesout* fort.* input_dkes* opt_dkes* results.*",WAIT=.TRUE.,EXITSTAT=ier,CMDSTAT=ierr_mpi,CMDMSG=cmdtxt)
CALL EXECUTE_COMMAND_LINE("rm -rf dcon* jxbout* mercier* dkesout* fort.*",WAIT=.TRUE.,EXITSTAT=ier,CMDSTAT=ierr_mpi,CMDMSG=cmdtxt)
WRITE(6,*) ' rm: EXITSTAT=',ier,' CMDSTAT=',ierr_mpi; CALL FLUSH(6)
WRITE(6,*) ' MESSAGE: ',TRIM(cmdtxt); CALL FLUSH(6)
! Zip up the results
Expand Down

0 comments on commit 3200bd9

Please sign in to comment.