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

Philippe: 24/10/2017: workaround in PREP_PGD due to NPROC set earlier than...

Philippe: 24/10/2017: workaround in PREP_PGD due to NPROC set earlier than before (commit 86f22a35)
parent 2daa7712
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,8 @@ MODULE MODE_SPLITTINGZ_ll ...@@ -49,6 +49,8 @@ MODULE MODE_SPLITTINGZ_ll
! !
USE MODE_SPLITTING_ll USE MODE_SPLITTING_ll
! !
LOGICAL,SAVE :: LINI_PARAZ = .FALSE. !Useful to know if a call to INI_PARAZ_ll or INI_PARAZ_CHILD_ll has already be done
!
CONTAINS CONTAINS
! ################################ ! ################################
SUBROUTINE INI_PARAZ_ll(KINFO_ll) SUBROUTINE INI_PARAZ_ll(KINFO_ll)
...@@ -471,6 +473,7 @@ CONTAINS ...@@ -471,6 +473,7 @@ CONTAINS
! !
DEALLOCATE(TZDZP) DEALLOCATE(TZDZP)
! !
LINI_PARAZ = .TRUE.
!------------------------------------------------------------------------------- !-------------------------------------------------------------------------------
! !
END SUBROUTINE INI_PARAZ_ll END SUBROUTINE INI_PARAZ_ll
...@@ -860,6 +863,7 @@ CONTAINS ...@@ -860,6 +863,7 @@ CONTAINS
! !
DEALLOCATE(TZDZP) DEALLOCATE(TZDZP)
! !
LINI_PARAZ = .TRUE.
!------------------------------------------------------------------------------- !-------------------------------------------------------------------------------
! !
CONTAINS CONTAINS
......
...@@ -42,6 +42,7 @@ USE MODD_SURF_PAR, ONLY : XUNDEF, NUNDEF ...@@ -42,6 +42,7 @@ USE MODD_SURF_PAR, ONLY : XUNDEF, NUNDEF
#ifdef MNH_PARALLEL #ifdef MNH_PARALLEL
USE MODD_VAR_ll, ONLY : NPROC, IP, MPI_PRECISION, NMNH_COMM_WORLD, YSPLITTING USE MODD_VAR_ll, ONLY : NPROC, IP, MPI_PRECISION, NMNH_COMM_WORLD, YSPLITTING
USE MODD_MPIF USE MODD_MPIF
USE MODE_SPLITTINGZ_ll, ONLY : LINI_PARAZ
USE MODE_TOOLS_ll, ONLY : GET_OR_ll USE MODE_TOOLS_ll, ONLY : GET_OR_ll
#endif #endif
! !
...@@ -114,7 +115,8 @@ END IF ...@@ -114,7 +115,8 @@ END IF
#ifdef MNH_PARALLEL #ifdef MNH_PARALLEL
!get the index of the process with IL>0 that own the southmost and the westmost point !get the index of the process with IL>0 that own the southmost and the westmost point
!then broadcast the value of PDX and PDY at these points !then broadcast the value of PDX and PDY at these points
IF ( NPROC > 1 ) THEN !Call this only if INI_PARAZ_ll has already been called (to prevent problemns in GET_OR_ll)
IF ( NPROC > 1 .AND. LINI_PARAZ) THEN
! we need to determine wich processes own the southmost and the westmost point ! we need to determine wich processes own the southmost and the westmost point
CALL GET_OR_ll( YSPLITTING, IXOR, IYOR ) CALL GET_OR_ll( YSPLITTING, IXOR, IYOR )
IF ( IL==0 ) THEN ! we don't consider processes with IL==0 IF ( IL==0 ) THEN ! we don't consider processes with IL==0
......
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