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
84c20694
Commit
84c20694
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Added checkpoint saving rate as input parameter
parent
2ae84092
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
matlab/write_fort90.m
+1
-0
1 addition, 0 deletions
matlab/write_fort90.m
src/diagnose.F90
+5
-5
5 additions, 5 deletions
src/diagnose.F90
src/diagnostics_par_mod.F90
+2
-3
2 additions, 3 deletions
src/diagnostics_par_mod.F90
wk/setup.m
+1
-0
1 addition, 0 deletions
wk/setup.m
with
9 additions
and
8 deletions
matlab/write_fort90.m
+
1
−
0
View file @
84c20694
...
@@ -28,6 +28,7 @@ fprintf(fid,[' nsave_0d = ', num2str(OUTPUTS.nsave_0d),'\n']);
...
@@ -28,6 +28,7 @@ fprintf(fid,[' nsave_0d = ', num2str(OUTPUTS.nsave_0d),'\n']);
fprintf
(
fid
,[
' nsave_1d = '
,
num2str
(
OUTPUTS
.
nsave_1d
),
'\n'
]);
fprintf
(
fid
,[
' nsave_1d = '
,
num2str
(
OUTPUTS
.
nsave_1d
),
'\n'
]);
fprintf
(
fid
,[
' nsave_2d = '
,
num2str
(
OUTPUTS
.
nsave_2d
),
'\n'
]);
fprintf
(
fid
,[
' nsave_2d = '
,
num2str
(
OUTPUTS
.
nsave_2d
),
'\n'
]);
fprintf
(
fid
,[
' nsave_5d = '
,
num2str
(
OUTPUTS
.
nsave_5d
),
'\n'
]);
fprintf
(
fid
,[
' nsave_5d = '
,
num2str
(
OUTPUTS
.
nsave_5d
),
'\n'
]);
fprintf
(
fid
,[
' nsave_cp = '
,
num2str
(
OUTPUTS
.
nsave_cp
),
'\n'
]);
fprintf
(
fid
,[
' write_Na00 = '
,
OUTPUTS
.
write_Na00
,
'\n'
]);
fprintf
(
fid
,[
' write_Na00 = '
,
OUTPUTS
.
write_Na00
,
'\n'
]);
fprintf
(
fid
,[
' write_moments = '
,
OUTPUTS
.
write_moments
,
'\n'
]);
fprintf
(
fid
,[
' write_moments = '
,
OUTPUTS
.
write_moments
,
'\n'
]);
fprintf
(
fid
,[
' write_phi = '
,
OUTPUTS
.
write_phi
,
'\n'
]);
fprintf
(
fid
,[
' write_phi = '
,
OUTPUTS
.
write_phi
,
'\n'
]);
...
...
This diff is collapsed.
Click to expand it.
src/diagnose.F90
+
5
−
5
View file @
84c20694
...
@@ -255,12 +255,12 @@ SUBROUTINE diagnose(kstep)
...
@@ -255,12 +255,12 @@ SUBROUTINE diagnose(kstep)
END
IF
END
IF
! 2.5 Backups
! 2.5 Backups
nsave_cp
=
INT
(
5
/
dt
)
IF
(
nsave_cp
.NE.
0
)
THEN
IF
(
MOD
(
cstep
,
nsave_cp
)
==
0
)
THEN
IF
(
MOD
(
cstep
,
nsave_cp
)
==
0
)
THEN
CALL
checkpoint_save
(
cp_counter
)
CALL
checkpoint_save
(
cp_counter
)
cp_counter
=
cp_counter
+
1
cp_counter
=
cp_counter
+
1
ENDIF
ENDIF
ENDIF
!_____________________________________________________________________________
!_____________________________________________________________________________
! 3. Final diagnostics
! 3. Final diagnostics
...
...
This diff is collapsed.
Click to expand it.
src/diagnostics_par_mod.F90
+
2
−
3
View file @
84c20694
...
@@ -11,8 +11,7 @@ MODULE diagnostics_par
...
@@ -11,8 +11,7 @@ MODULE diagnostics_par
LOGICAL
,
PUBLIC
,
PROTECTED
::
write_non_lin
=
.TRUE.
LOGICAL
,
PUBLIC
,
PROTECTED
::
write_non_lin
=
.TRUE.
LOGICAL
,
PUBLIC
,
PROTECTED
::
write_doubleprecision
=
.FALSE.
LOGICAL
,
PUBLIC
,
PROTECTED
::
write_doubleprecision
=
.FALSE.
INTEGER
,
PUBLIC
,
PROTECTED
::
nsave_0d
,
nsave_1d
,
nsave_2d
,
nsave_5d
INTEGER
,
PUBLIC
,
PROTECTED
::
nsave_0d
,
nsave_1d
,
nsave_2d
,
nsave_5d
,
nsave_cp
INTEGER
,
PUBLIC
::
nsave_cp
=
1e4
! HDF5 file
! HDF5 file
CHARACTER
(
len
=
256
),
PUBLIC
::
resfile0
=
"results"
! Head of main result file name
CHARACTER
(
len
=
256
),
PUBLIC
::
resfile0
=
"results"
! Head of main result file name
...
@@ -35,7 +34,7 @@ CONTAINS
...
@@ -35,7 +34,7 @@ CONTAINS
USE
prec_const
USE
prec_const
IMPLICIT
NONE
IMPLICIT
NONE
NAMELIST
/
OUTPUT_PAR
/
nsave_0d
,
nsave_1d
,
nsave_2d
,
nsave_5d
NAMELIST
/
OUTPUT_PAR
/
nsave_0d
,
nsave_1d
,
nsave_2d
,
nsave_5d
,
nsave_cp
NAMELIST
/
OUTPUT_PAR
/
write_Na00
,
write_moments
,
write_phi
,
write_non_lin
,
write_doubleprecision
NAMELIST
/
OUTPUT_PAR
/
write_Na00
,
write_moments
,
write_phi
,
write_non_lin
,
write_doubleprecision
NAMELIST
/
OUTPUT_PAR
/
resfile0
,
rstfile0
,
job2load
NAMELIST
/
OUTPUT_PAR
/
resfile0
,
rstfile0
,
job2load
...
...
This diff is collapsed.
Click to expand it.
wk/setup.m
+
1
−
0
View file @
84c20694
...
@@ -84,6 +84,7 @@ OUTPUTS.nsave_0d = floor(1.0/SPS0D/DT);
...
@@ -84,6 +84,7 @@ OUTPUTS.nsave_0d = floor(1.0/SPS0D/DT);
OUTPUTS
.
nsave_1d
=
0
;
OUTPUTS
.
nsave_1d
=
0
;
OUTPUTS
.
nsave_2d
=
floor
(
1.0
/
SPS2D
/
DT
);
OUTPUTS
.
nsave_2d
=
floor
(
1.0
/
SPS2D
/
DT
);
OUTPUTS
.
nsave_5d
=
floor
(
1.0
/
SPS5D
/
DT
);
OUTPUTS
.
nsave_5d
=
floor
(
1.0
/
SPS5D
/
DT
);
OUTPUTS
.
nsave_cp
=
floor
(
1.0
/
SPSCP
/
DT
);
OUTPUTS
.
write_Na00
=
'.true.'
;
OUTPUTS
.
write_Na00
=
'.true.'
;
OUTPUTS
.
write_moments
=
'.true.'
;
OUTPUTS
.
write_moments
=
'.true.'
;
OUTPUTS
.
write_phi
=
'.true.'
;
OUTPUTS
.
write_phi
=
'.true.'
;
...
...
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