Skip to content

Commit

Permalink
merge some if statements in main program
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Jackson committed Jan 15, 2025
1 parent 6027da1 commit 2193508
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/wannier_prog.F90
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,11 @@ program wannier

call print_times(common_data, stdout)

if (rank == 0) close (unit=stderr, status='delete')

if (rank == 0) write (stdout, '(1x,a)') 'All done: wannier90 exiting'
if (rank == 0) close (unit=stdout)
if (rank == 0) then
close (unit=stderr, status='delete')
write (stdout, '(1x,a)') 'All done: wannier90 exiting'
close (unit=stdout)
endif

#ifdef MPI
call mpi_finalize(ierr)
Expand Down

0 comments on commit 2193508

Please sign in to comment.