Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RODIER Quentin
Méso-NH code
Commits
a546b734
Commit
a546b734
authored
11 years ago
by
ESCOBAR MUNOZ Juan
Committed by
WAUTELET Philippe
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Juan 3/02/2014: manage correctly numbering of father before son process
parent
1d101fb9
No related branches found
Branches containing commit
Tags
PACK-MNH-V5-3--0-03_RTTOV
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/LIB/SURCOUCHE/src/mode_mppdb.f90
+12
-3
12 additions, 3 deletions
src/LIB/SURCOUCHE/src/mode_mppdb.f90
with
12 additions
and
3 deletions
src/LIB/SURCOUCHE/src/mode_mppdb.f90
+
12
−
3
View file @
a546b734
...
...
@@ -95,6 +95,7 @@ CONTAINS
!
! NO Father !
MPPDB_FATHER_WORLD
=
.TRUE.
CALL
MPI_BARRIER
(
NMNH_COMM_WORLD
,
ierr
)
!
! if no config file , inactive MPPDB routines
!
...
...
@@ -154,10 +155,13 @@ CONTAINS
! clone the son
!
ALLOCATE
(
info_error
(
MPPDB_NBSON
))
CALL
MPI_BARRIER
(
NMNH_COMM_WORLD
,
ierr
)
!
CALL
MPI_COMM_SPAWN
(
MPPDB_EXEC
,
MPI_ARGV_NULL
,
MPPDB_NBSON
,
INFO_SPAWN
,
&
RANK_FATHER
,
NMNH_COMM_WORLD
,
MPPDB_INTER_COMM
,
info_error
,
ierr
)
!
CALL
MPI_BARRIER
(
NMNH_COMM_WORLD
,
ierr
)
!
DEALLOCATE
(
info_error
)
!
! merge the communicator
...
...
@@ -170,9 +174,12 @@ CONTAINS
!
!... My rank in MPPDB_INTRA_COMM
CALL
MPI_COMM_RANK
(
MPPDB_INTRA_COMM
,
mppdb_irank_intra
,
ierr
)
IF
(
MPPDB_DEBUG
)
print
*
,
"MPPDB_INIT :: FATHER mppdb_irank_intra="
,
mppdb_irank_intra
&
IF
(
MPPDB_IRANK_WORLD
.EQ.
0
)
THEN
! I'm the first father
IF
(
MPPDB_DEBUG
)
print
*
,
"MPPDB_INIT :: FIRST FATHER mppdb_irank_intra="
,
mppdb_irank_intra
&
,
"mppdb_nbproc_intra="
,
mppdb_nbproc_intra
call
flush
(
6
)
endif
!
! Wait the sons
!
...
...
@@ -187,9 +194,11 @@ CONTAINS
! !
!-------------------------------------------------------------------------!
!
CALL
MPI_BARRIER
(
NMNH_COMM_WORLD
,
ierr
)
!
! merge the communicator
!
drapeau
=
.
FALS
E.
drapeau
=
.
TRU
E.
CALL
MPI_INTERCOMM_MERGE
(
MPPDB_INTER_COMM
,
drapeau
,
MPPDB_INTRA_COMM
,
ierr
)
!
!... Numbre of processus in MPPDB_INTRA_COMM.
...
...
@@ -207,7 +216,7 @@ CONTAINS
call
system
(
MPPDB_COMMAND
)
!
MPPDB_DEBUG
=
.TRUE.
IF
(
MPPDB_DEBUG
)
write
(
200
,
*
)
"MPPDB_INIT :: FIRSTSON mppdb_irank_intra="
,
mppdb_irank_intra
&
IF
(
MPPDB_DEBUG
)
write
(
200
,
*
)
"MPPDB_INIT :: FIRST
SON mppdb_irank_intra="
,
mppdb_irank_intra
&
,
"MPPDB_IRANK_WORLD="
,
MPPDB_IRANK_WORLD
!
IF
(
MPPDB_IRANK_WORLD
.EQ.
0
)
THEN
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment