@@ -133,7 +133,7 @@ impure subroutine s_setup_mpi_io_params(data_size, m_MOK, n_MOK, p_MOK, WP_MOK,
133133 m_MOK = int (m_glb + 1 , MPI_OFFSET_KIND)
134134 n_MOK = int (n_glb + 1 , MPI_OFFSET_KIND)
135135 p_MOK = int (p_glb + 1 , MPI_OFFSET_KIND)
136- WP_MOK = int (8._wp , MPI_OFFSET_KIND)
136+ WP_MOK = int (storage_size( 0._stp ) / 8 , MPI_OFFSET_KIND)
137137 MOK = int (1._wp , MPI_OFFSET_KIND)
138138 str_MOK = int (name_len, MPI_OFFSET_KIND)
139139 NVARS_MOK = int (sys_size, MPI_OFFSET_KIND)
@@ -177,7 +177,7 @@ impure subroutine s_read_ib_data_files(file_loc_base, t_step)
177177 n_MOK = int (n_glb + 1 , MPI_OFFSET_KIND)
178178 p_MOK = int (p_glb + 1 , MPI_OFFSET_KIND)
179179 MOK = int (1._wp , MPI_OFFSET_KIND)
180- WP_MOK = int (8._wp , MPI_OFFSET_KIND)
180+ WP_MOK = int (storage_size( 0._stp ) / 8 , MPI_OFFSET_KIND)
181181 save_index = t_step/ t_step_save ! get the number of saves done to this point
182182
183183 data_size = (m + 1 )* (n + 1 )* (p + 1 )
@@ -521,7 +521,7 @@ impure subroutine s_read_parallel_conservative_data(t_step, m_MOK, n_MOK, p_MOK,
521521 m_MOK = int (m_glb + 1 , MPI_OFFSET_KIND)
522522 n_MOK = int (n_glb + 1 , MPI_OFFSET_KIND)
523523 p_MOK = int (p_glb + 1 , MPI_OFFSET_KIND)
524- WP_MOK = int (8._wp , MPI_OFFSET_KIND)
524+ WP_MOK = int (storage_size( 0._stp ) / 8 , MPI_OFFSET_KIND)
525525 MOK = int (1._wp , MPI_OFFSET_KIND)
526526 str_MOK = int (name_len, MPI_OFFSET_KIND)
527527 NVARS_MOK = int (sys_size, MPI_OFFSET_KIND)
0 commit comments