Initializes the MPI environment if not already active.
subroutine mpi_flow_startup() logical :: initialized integer :: ierr call MPI_Initialized(initialized, ierr) call check_mpi(ierr, 'MPI_Initialized') if (.not. initialized) then call MPI_Init(ierr) call check_mpi(ierr, 'MPI_Init') mpi_started_here = .true. end if end subroutine mpi_flow_startup