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
b266f63f
Commit
b266f63f
authored
3 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
removed unused variables and put heat flux computation option
parent
72a03433
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/diagnose.F90
+12
-8
12 additions, 8 deletions
src/diagnose.F90
src/diagnostics_par_mod.F90
+4
-4
4 additions, 4 deletions
src/diagnostics_par_mod.F90
with
16 additions
and
12 deletions
src/diagnose.F90
+
12
−
8
View file @
b266f63f
...
...
@@ -114,6 +114,8 @@ SUBROUTINE diagnose(kstep)
IF
(
write_gamma
)
THEN
CALL
creatd
(
fidres
,
rank
,
dims
,
"/data/var0d/gflux_ri"
,
"Radial gyro ion transport"
)
CALL
creatd
(
fidres
,
rank
,
dims
,
"/data/var0d/pflux_ri"
,
"Radial part ion transport"
)
ENDIF
IF
(
write_hf
)
THEN
CALL
creatd
(
fidres
,
rank
,
dims
,
"/data/var0d/hflux_x"
,
"Radial part ion heat flux"
)
ENDIF
IF
(
cstep
==
0
)
THEN
...
...
@@ -211,13 +213,14 @@ SUBROUTINE diagnose(kstep)
CALL
attach
(
fidres
,
TRIM
(
str
),
"Nproc"
,
num_procs
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"Np_p"
,
num_procs_p
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"Np_kx"
,
num_procs_kx
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_gamma"
,
write_gamma
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_phi"
,
write_phi
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_Na00"
,
write_Na00
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_Napj"
,
write_Napj
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_Sapj"
,
write_Sapj
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_dens"
,
write_dens
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_temp"
,
write_temp
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_gamma"
,
write_gamma
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_hf"
,
write_hf
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_phi"
,
write_phi
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_Na00"
,
write_Na00
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_Napj"
,
write_Napj
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_Sapj"
,
write_Sapj
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_dens"
,
write_dens
)
CALL
attach
(
fidres
,
TRIM
(
str
),
"write_temp"
,
write_temp
)
CALL
grid_outputinputs
(
fidres
,
str
)
...
...
@@ -349,10 +352,11 @@ SUBROUTINE diagnose_0d
CALL
compute_radial_ion_transport
CALL
append
(
fidres
,
"/data/var0d/gflux_ri"
,
gflux_ri
,
ionode
=
0
)
CALL
append
(
fidres
,
"/data/var0d/pflux_ri"
,
pflux_ri
,
ionode
=
0
)
ENDIF
IF
(
write_hf
)
THEN
CALL
compute_radial_heatflux
CALL
append
(
fidres
,
"/data/var0d/hflux_x"
,
hflux_x
,
ionode
=
0
)
ENDIF
END
SUBROUTINE
diagnose_0d
...
...
This diff is collapsed.
Click to expand it.
src/diagnostics_par_mod.F90
+
4
−
4
View file @
b266f63f
...
...
@@ -6,12 +6,12 @@ MODULE diagnostics_par
PRIVATE
LOGICAL
,
PUBLIC
,
PROTECTED
::
write_doubleprecision
=
.FALSE.
LOGICAL
,
PUBLIC
,
PROTECTED
::
write_gamma
LOGICAL
,
PUBLIC
,
PROTECTED
::
write_gamma
,
write_hf
! output particle transport and heat flux
LOGICAL
,
PUBLIC
,
PROTECTED
::
write_phi
,
write_Na00
LOGICAL
,
PUBLIC
,
PROTECTED
::
write_Napj
,
write_Sapj
LOGICAL
,
PUBLIC
,
PROTECTED
::
write_dens
,
write_temp
INTEGER
,
PUBLIC
,
PROTECTED
::
nsave_0d
,
nsave_1d
,
nsave_2d
,
nsave_3d
,
nsave_5d
,
nsave_cp
INTEGER
,
PUBLIC
,
PROTECTED
::
nsave_0d
,
nsave_1d
,
nsave_2d
,
nsave_3d
,
nsave_5d
! HDF5 file
CHARACTER
(
len
=
256
),
PUBLIC
::
resfile0
=
"results"
! Head of main result file name
...
...
@@ -34,8 +34,8 @@ CONTAINS
USE
prec_const
IMPLICIT
NONE
NAMELIST
/
OUTPUT_PAR
/
nsave_0d
,
nsave_1d
,
nsave_2d
,
nsave_3d
,
nsave_5d
,
nsave_cp
NAMELIST
/
OUTPUT_PAR
/
write_doubleprecision
,
write_gamma
,
write_phi
NAMELIST
/
OUTPUT_PAR
/
nsave_0d
,
nsave_1d
,
nsave_2d
,
nsave_3d
,
nsave_5d
NAMELIST
/
OUTPUT_PAR
/
write_doubleprecision
,
write_gamma
,
write_hf
,
write_phi
NAMELIST
/
OUTPUT_PAR
/
write_Na00
,
write_Napj
,
write_Sapj
NAMELIST
/
OUTPUT_PAR
/
write_dens
,
write_temp
NAMELIST
/
OUTPUT_PAR
/
resfile0
,
rstfile0
,
job2load
...
...
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