Skip to content

Commit 8c7a747

Browse files
sbryngelsonclaude
andcommitted
Fix post_process non-MPI builds never reading input file
In s_initialize_mpi_domain, the entire body including s_assign_default_values_to_user_inputs(), s_read_input_file(), and s_check_input_file() was guarded by #ifdef MFC_MPI. Non-MPI builds therefore ran with all parameters at Fortran defaults (case_dir blank, m/n/p = 0), causing a misleading "Time-step folder missing" error. pre_process and simulation already call these unconditionally; the individual MPI functions (s_mpi_bcast_user_inputs, etc.) handle the #ifdef MFC_MPI guard internally as stubs when MPI is absent. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fe08007 commit 8c7a747

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/post_process/m_start_up.fpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,6 @@ contains
11491149

11501150
num_dims = 1 + min(1, n) + min(1, p)
11511151

1152-
#ifdef MFC_MPI
11531152
! Initialization of the MPI environment
11541153
call s_mpi_initialize()
11551154

@@ -1167,14 +1166,12 @@ contains
11671166

11681167
! Broadcasting the user inputs to all of the processors and performing the
11691168
! parallel computational domain decomposition. Neither procedure has to be
1170-
! carried out if the simulation is in fact not truly executed in parallel.
1169+
! carried out if the post-process is in fact not truly executed in parallel.
11711170
call s_mpi_bcast_user_inputs()
11721171
call s_initialize_parallel_io()
11731172
call s_mpi_decompose_computational_domain()
11741173
call s_check_inputs_fft()
11751174

1176-
#endif
1177-
11781175
end subroutine s_initialize_mpi_domain
11791176

11801177
!> @brief Destroy FFTW plans, free MPI communicators, and finalize all post-process sub-modules.

0 commit comments

Comments
 (0)