From 6207f1e7d918d0f8e3e45670608941de5d3ceb67 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sat, 3 Sep 2016 14:25:45 +0200 Subject: [PATCH] reporting MPI processes --- code/spectral_interface.f90 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/code/spectral_interface.f90 b/code/spectral_interface.f90 index 31b198806..d49a54411 100644 --- a/code/spectral_interface.f90 +++ b/code/spectral_interface.f90 @@ -57,7 +57,8 @@ subroutine DAMASK_interface_init() integer :: & i, & threadLevel, & - worldrank = 0 + worldrank = 0, & + worldsize = 0 integer, allocatable, dimension(:) :: & chunkPos integer, dimension(8) :: & @@ -66,6 +67,7 @@ subroutine DAMASK_interface_init() external :: & quit,& MPI_Comm_rank,& + MPI_Comm_size,& PETScInitialize, & MPI_Init_Thread, & MPI_abort @@ -77,17 +79,17 @@ subroutine DAMASK_interface_init() #ifdef _OPENMP call MPI_Init_Thread(MPI_THREAD_FUNNELED,threadLevel,ierr);CHKERRQ(ierr) ! in case of OpenMP, don't rely on PETScInitialize doing MPI init if (threadLevel>>' #include "compilation_info.f90"