Skip to content

Commit

Permalink
Merge pull request #305 from PrincetonUniversity/feature/THRIFT_bugfix
Browse files Browse the repository at this point in the history
Feature/thrift bugfix
  • Loading branch information
lazersos authored Nov 15, 2024
2 parents 5a5490d + c367208 commit 9ecdbd3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions THRIFT/Sources/thrift_interface_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,16 @@ END SUBROUTINE thrift_init_mpi_split

SUBROUTINE thrift_cleanup
IMPLICIT NONE
INTEGER :: ier
CHARACTER(200) :: cmdtxt = ""
! Clean up
ierr_mpi = 0
! Remove files and cleanup directory
!DEC$ IF DEFINED (STELZIP)

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*",WAIT=.TRUE.,EXITSTAT=ier,CMDSTAT=ierr_mpi,CMDMSG=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)
WRITE(6,*) ' rm: EXITSTAT=',ier,' CMDSTAT=',ierr_mpi; CALL FLUSH(6)
WRITE(6,*) ' MESSAGE: ',TRIM(cmdtxt); CALL FLUSH(6)
! Zip up the results
Expand All @@ -95,7 +96,7 @@ SUBROUTINE thrift_cleanup
WRITE(6,*) ' MESSAGE: ',TRIM(cmdtxt); CALL FLUSH(6)
ier = 0; ierr_mpi=0
END IF
!DEC$ ENDIF


!CALL thrift_free(MPI_COMM_SHARMEM)
#if defined(MPI_OPT)
Expand Down

0 comments on commit 9ecdbd3

Please sign in to comment.