diff --git a/src/parallelization.f90 b/src/parallelization.f90 index 3bb1f6af5..fb50a1a23 100644 --- a/src/parallelization.f90 +++ b/src/parallelization.f90 @@ -46,21 +46,21 @@ subroutine parallelization_init ! If openMP is enabled, check if the MPI libary supports it and initialize accordingly. ! Otherwise, the first call to PETSc will do the initialization. call MPI_Init_Thread(MPI_THREAD_FUNNELED,threadLevel,err) - if (err /= 0) error stop 'MPI init failed' - if (threadLevel>>' - if (worldrank == 0) print'(a,i3)', ' MPI processes: ',worldsize call MPI_Comm_size(PETSC_COMM_WORLD,worldsize,err) - if (err /= 0) error stop 'Could not determine worldsize' + if (err /= 0) error stop 'Could not determine worldsize' + if (worldrank == 0) print'(a,i3)', ' MPI processes: ',worldsize call MPI_Type_size(MPI_INTEGER,typeSize,err) if (err /= 0) error stop 'Could not determine MPI integer size'