Skip to content
Snippets Groups Projects
Commit 86f22a35 authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 03/10/2017: set IP and NPROC in INIT_NMNH_COMM_WORLD + removed...

Philippe 03/10/2017: set IP and NPROC in INIT_NMNH_COMM_WORLD + removed superfluous MPI initialisation in PREP_NEST_PGD
parent 40a5f1f7
No related branches found
No related tags found
No related merge requests found
...@@ -556,10 +556,6 @@ ...@@ -556,10 +556,6 @@
CALL INIT_NMNH_COMM_WORLD(KINFO_ll) CALL INIT_NMNH_COMM_WORLD(KINFO_ll)
END IF END IF
! !
CALL MPI_COMM_RANK(NMNH_COMM_WORLD, IP, KINFO_ll)
!
CALL MPI_COMM_SIZE(NMNH_COMM_WORLD, NPROC, KINFO_ll)
!
CALL MPI_COMM_DUP(NMNH_COMM_WORLD, NHALO_COM, KINFO_ll) CALL MPI_COMM_DUP(NMNH_COMM_WORLD, NHALO_COM, KINFO_ll)
! !
CALL MPI_COMM_DUP(NMNH_COMM_WORLD, NHALO2_COM, KINFO_ll) CALL MPI_COMM_DUP(NMNH_COMM_WORLD, NHALO2_COM, KINFO_ll)
......
...@@ -22,7 +22,7 @@ CONTAINS ...@@ -22,7 +22,7 @@ CONTAINS
#ifdef MNH_GA #ifdef MNH_GA
USE MODD_MPIF , ONLY : MPI_THREAD_MULTIPLE USE MODD_MPIF , ONLY : MPI_THREAD_MULTIPLE
#endif #endif
USE MODD_VAR_ll, ONLY : NMNH_COMM_WORLD USE MODD_VAR_ll, ONLY : IP, NPROC, NMNH_COMM_WORLD
!JUANZ !JUANZ
IMPLICIT NONE IMPLICIT NONE
...@@ -107,7 +107,10 @@ CONTAINS ...@@ -107,7 +107,10 @@ CONTAINS
! !
!JUANZ create new/remapped communicator !JUANZ create new/remapped communicator
! !
CALL MPI_COMM_RANK(NMNH_COMM_WORLD, IP, KINFO_ll)
IP = IP + 1
!
CALL MPI_COMM_SIZE(NMNH_COMM_WORLD, NPROC, KINFO_ll)
! !
END IF END IF
......
...@@ -180,9 +180,6 @@ CONTAINS ...@@ -180,9 +180,6 @@ CONTAINS
CALL INIT_NMNH_COMM_WORLD(KINFO_ll) CALL INIT_NMNH_COMM_WORLD(KINFO_ll)
END IF END IF
! !
CALL MPI_COMM_RANK(NMNH_COMM_WORLD, IP, KINFO_ll)
!
CALL MPI_COMM_SIZE(NMNH_COMM_WORLD, NPROC, KINFO_ll)
! !
CALL MPI_COMM_DUP(NMNH_COMM_WORLD, NHALO_COM, KINFO_ll) CALL MPI_COMM_DUP(NMNH_COMM_WORLD, NHALO_COM, KINFO_ll)
! !
...@@ -192,8 +189,6 @@ CONTAINS ...@@ -192,8 +189,6 @@ CONTAINS
! !
CALL MPI_COMM_DUP(NMNH_COMM_WORLD, NGRID_COM, KINFO_ll) CALL MPI_COMM_DUP(NMNH_COMM_WORLD, NGRID_COM, KINFO_ll)
! !
IP = IP + 1
!
MPI_PRECISION = MNH_MPI_REAL MPI_PRECISION = MNH_MPI_REAL
MPI_2PRECISION = MNH_MPI_2REAL MPI_2PRECISION = MNH_MPI_2REAL
! !
......
...@@ -203,16 +203,6 @@ CALL READ_ALL_NAMELISTS(YSURF_CUR,'MESONH','PRE',.FALSE.) ...@@ -203,16 +203,6 @@ CALL READ_ALL_NAMELISTS(YSURF_CUR,'MESONH','PRE',.FALSE.)
!* 3. READING OF THE GRIDS !* 3. READING OF THE GRIDS
! -------------------- ! --------------------
! !
! INITIALIZE MPI :
IINFO_ll = 0
CALL MPI_INITIALIZED(GISINIT, IINFO_ll)
IF (.NOT. GISINIT) THEN
CALL INIT_NMNH_COMM_WORLD(IINFO_ll)
END IF
CALL MPI_COMM_RANK(NMNH_COMM_WORLD, IP, IINFO_ll)
IP = IP+1
CALL MPI_COMM_SIZE(NMNH_COMM_WORLD, NPROC, IINFO_ll)
!
CALL SET_DAD0_ll() CALL SET_DAD0_ll()
DO JPGD=1,NMODEL DO JPGD=1,NMODEL
! read and set dimensions and ratios of model JPGD ! read and set dimensions and ratios of model JPGD
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment