setup_decomp_2d Subroutine

public subroutine setup_decomp_2d(state)

Build the MPI Cartesian decomposition and store it on the state (MPI runs).

Derives periodicity from state % cfg boundary condition strings, calls cart_setup_2d, and updates state % nx_local / state % ny_local to the per-rank local sizes so allocate_work_arrays_2d sizes correctly.

Arguments

Type IntentOptional Attributes Name
type(solver_state_2d_t), intent(inout) :: state