@@ -108,6 +108,7 @@ impure subroutine s_read_grid_data_direction(t_step_dir, direction, cb_array, d_
108108
109109 end subroutine s_read_grid_data_direction
110110
111+ #ifdef MFC_MPI
111112 ! > Helper subroutine to setup MPI data I/O parameters
112113 ! ! @param data_size Local array size (output)
113114 ! ! @param m_MOK, n_MOK, p_MOK MPI offset kinds for dimensions (output)
@@ -138,6 +139,7 @@ impure subroutine s_setup_mpi_io_params(data_size, m_MOK, n_MOK, p_MOK, WP_MOK,
138139 NVARS_MOK = int (sys_size, MPI_OFFSET_KIND)
139140
140141 end subroutine s_setup_mpi_io_params
142+ #endif
141143
142144 ! > Helper subroutine to read IB data files
143145 ! ! @param file_loc_base Base file location for IB data
@@ -148,9 +150,11 @@ impure subroutine s_read_ib_data_files(file_loc_base)
148150 character (LEN= len_trim (file_loc_base) + 20 ) :: file_loc
149151 logical :: file_exist
150152 integer :: ifile, ierr, data_size
153+
154+ #ifdef MFC_MPI
151155 integer , dimension (MPI_STATUS_SIZE) :: status
152156 integer (KIND= MPI_OFFSET_KIND) :: disp
153-
157+ # endif
154158 if (.not. ib) return
155159
156160 if (parallel_io) then
@@ -426,6 +430,7 @@ impure subroutine s_read_parallel_data_files(t_step)
426430
427431 end subroutine s_read_parallel_data_files
428432
433+ #ifdef MFC_MPI
429434 ! > Helper subroutine to read parallel conservative variable data
430435 ! ! @param t_step Current time-step
431436 ! ! @param m_MOK, n_MOK, p_MOK MPI offset kinds for dimensions
@@ -436,8 +441,6 @@ impure subroutine s_read_parallel_conservative_data(t_step, m_MOK, n_MOK, p_MOK,
436441 integer (KIND= MPI_OFFSET_KIND), intent (inout ) :: m_MOK, n_MOK, p_MOK
437442 integer (KIND= MPI_OFFSET_KIND), intent (inout ) :: WP_MOK, MOK, str_MOK, NVARS_MOK
438443
439- #ifdef MFC_MPI
440-
441444 integer :: ifile, ierr, data_size
442445 integer , dimension (MPI_STATUS_SIZE) :: status
443446 integer (KIND= MPI_OFFSET_KIND) :: disp, var_MOK
@@ -512,10 +515,8 @@ impure subroutine s_read_parallel_conservative_data(t_step, m_MOK, n_MOK, p_MOK,
512515 call s_mpi_abort(' File ' // trim (file_loc)// ' is missing. Exiting.' )
513516 end if
514517 end if
515-
516- #endif
517-
518518 end subroutine s_read_parallel_conservative_data
519+ #endif
519520
520521 ! > Computation of parameters, allocation procedures, and/or
521522 ! ! any other tasks needed to properly setup the module
0 commit comments