Skip to content

Commit

Permalink
Merge pull request #523 from feathern/io_fix2
Browse files Browse the repository at this point in the history
Fixed logical error that was causing parallel I/O to hang.
  • Loading branch information
gassmoeller authored Jun 17, 2024
2 parents e44b276 + fe3077c commit 6e600dc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/IO/Spherical_IO.F90
Original file line number Diff line number Diff line change
Expand Up @@ -777,11 +777,12 @@ Subroutine Write_to_Disk(self,this_iter,simtime)
full_disp = self%buffer%qdisp*self%buffer%nvals+12
new_disp = self%hdisp+full_disp*(self%current_rec-ncache)

If (self%file_open) Then
Call self%buffer%write_data(disp=new_disp,file_unit=funit)
Call self%buffer%reset_cache_index()
If (output_rank) Call self%closefile_par()
Endif

Call self%buffer%write_data(disp=new_disp,file_unit=funit)
Call self%buffer%reset_cache_index()

If (output_rank .and. self%file_open) Call self%closefile_par()


Endif

Expand Down

0 comments on commit 6e600dc

Please sign in to comment.