Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gyacomo
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Cyril David Hoffmann
Gyacomo
Commits
e02bd168
Commit
e02bd168
authored
1 year ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
write MPI procs dist. in the output file
parent
24b8dc5c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/diagnose.F90
+2
-0
2 additions, 0 deletions
src/diagnose.F90
src/parallel_mod.F90
+17
-1
17 additions, 1 deletion
src/parallel_mod.F90
with
19 additions
and
1 deletion
src/diagnose.F90
+
2
−
0
View file @
e02bd168
...
@@ -47,6 +47,7 @@ SUBROUTINE init_outfile(comm,file0,file,fid)
...
@@ -47,6 +47,7 @@ SUBROUTINE init_outfile(comm,file0,file,fid)
USE
collision
,
ONLY
:
coll_outputinputs
USE
collision
,
ONLY
:
coll_outputinputs
USE
initial_par
,
ONLY
:
initial_outputinputs
USE
initial_par
,
ONLY
:
initial_outputinputs
USE
time_integration
,
ONLY
:
time_integration_outputinputs
USE
time_integration
,
ONLY
:
time_integration_outputinputs
USE
parallel
,
ONLY
:
parallel_outputinputs
USE
futils
,
ONLY
:
creatf
,
creatg
,
creatd
,
attach
,
putfile
USE
futils
,
ONLY
:
creatf
,
creatg
,
creatd
,
attach
,
putfile
IMPLICIT
NONE
IMPLICIT
NONE
!input
!input
...
@@ -89,6 +90,7 @@ SUBROUTINE init_outfile(comm,file0,file,fid)
...
@@ -89,6 +90,7 @@ SUBROUTINE init_outfile(comm,file0,file,fid)
CALL
coll_outputinputs
(
fid
)
CALL
coll_outputinputs
(
fid
)
CALL
initial_outputinputs
(
fid
)
CALL
initial_outputinputs
(
fid
)
CALL
time_integration_outputinputs
(
fid
)
CALL
time_integration_outputinputs
(
fid
)
CALL
parallel_outputinputs
(
fid
)
! Save STDIN (input file) of this run
! Save STDIN (input file) of this run
IF
(
jobnum
.LE.
99
)
THEN
IF
(
jobnum
.LE.
99
)
THEN
WRITE
(
str
,
'(a,i2.2)'
)
"/files/STDIN."
,
jobnum
WRITE
(
str
,
'(a,i2.2)'
)
"/files/STDIN."
,
jobnum
...
...
This diff is collapsed.
Click to expand it.
src/parallel_mod.F90
+
17
−
1
View file @
e02bd168
...
@@ -37,7 +37,8 @@ MODULE parallel
...
@@ -37,7 +37,8 @@ MODULE parallel
INTEGER
,
DIMENSION
(:),
ALLOCATABLE
::
rcv_zyp
,
dsp_zyp
INTEGER
,
DIMENSION
(:),
ALLOCATABLE
::
rcv_zyp
,
dsp_zyp
PUBLIC
::
ppinit
,
manual_0D_bcast
,
manual_3D_bcast
,
init_parallel_var
,
&
PUBLIC
::
ppinit
,
manual_0D_bcast
,
manual_3D_bcast
,
init_parallel_var
,
&
gather_xyz
,
gather_xyz_real
,
gather_pjz
,
gather_pjxyz
,
exchange_ghosts_1D
gather_xyz
,
gather_xyz_real
,
gather_pjz
,
gather_pjxyz
,
exchange_ghosts_1D
,
&
parallel_outputinputs
CONTAINS
CONTAINS
...
@@ -463,4 +464,19 @@ CONTAINS
...
@@ -463,4 +464,19 @@ CONTAINS
ENDDO
ENDDO
END
SUBROUTINE
exchange_ghosts_1D
END
SUBROUTINE
exchange_ghosts_1D
SUBROUTINE
parallel_outputinputs
(
fid
)
! Write the input parameters to the results_xx.h5 file
USE
futils
,
ONLY
:
attach
,
creatd
IMPLICIT
NONE
INTEGER
,
INTENT
(
in
)
::
fid
CHARACTER
(
len
=
256
)
::
str
WRITE
(
str
,
'(a)'
)
'/data/input/parallel'
CALL
creatd
(
fid
,
0
,(/
0
/),
TRIM
(
str
),
'MPI parallelization'
)
CALL
attach
(
fid
,
TRIM
(
str
),
"num_procs"
,
num_procs
)
CALL
attach
(
fid
,
TRIM
(
str
),
"num_procs_p"
,
num_procs_p
)
CALL
attach
(
fid
,
TRIM
(
str
),
"num_procs_ky"
,
num_procs_ky
)
CALL
attach
(
fid
,
TRIM
(
str
),
"num_procs_z"
,
num_procs_z
)
END
SUBROUTINE
parallel_outputinputs
END
MODULE
parallel
END
MODULE
parallel
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