Skip to content

Commit 455d16b

Browse files
fixed MPI IO error, except for first time step
1 parent 285999f commit 455d16b

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/common/m_mpi_common.fpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@ contains
203203
end if
204204
#endif
205205
206+
#ifndef MFC_PRE_PROCESS
207+
if (present(ib_markers)) then
208+
MPI_IO_IB_DATA%var%sf => ib_markers%sf(0:m, 0:n, 0:p)
209+
210+
call MPI_TYPE_CREATE_SUBARRAY(num_dims, sizes_glb, sizes_loc, start_idx, &
211+
MPI_ORDER_FORTRAN, MPI_INTEGER, MPI_IO_IB_DATA%view, ierr)
212+
call MPI_TYPE_COMMIT(MPI_IO_IB_DATA%view, ierr)
213+
end if
214+
#endif
215+
206216
#endif
207217
208218
end subroutine s_initialize_mpi_data

0 commit comments

Comments
 (0)