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
0d8aaa24
Commit
0d8aaa24
authored
2 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
Infos about loading time (temporary)
parent
b7f3586f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/restarts_mod.F90
+17
-0
17 additions, 0 deletions
src/restarts_mod.F90
with
17 additions
and
0 deletions
src/restarts_mod.F90
+
17
−
0
View file @
0d8aaa24
...
...
@@ -25,6 +25,10 @@ CONTAINS
!******************************************************************************!
SUBROUTINE
load_moments
IMPLICIT
NONE
REAL
::
timer_tot_1
,
timer_find_CP_1
,
timer_load_mom_1
REAL
::
timer_tot_2
,
timer_find_CP_2
,
timer_load_mom_2
CALL
cpu_time
(
timer_tot_1
)
! Checkpoint filename
WRITE
(
rstfile
,
'(a,a1,i2.2,a3)'
)
TRIM
(
resfile0
),
'_'
,
job2load
,
'.h5'
...
...
@@ -47,6 +51,8 @@ CONTAINS
CALL
load_output_adapt_pj
ELSE
CALL
cpu_time
(
timer_find_CP_1
)
! Find the last results of the checkpoint file by iteration
n_
=
n0
+1
WRITE
(
dset_name
,
"(A, '/', i6.6)"
)
"/data/var5d/moments_i"
,
n_
! start with moments_e/000001
...
...
@@ -67,6 +73,10 @@ CONTAINS
iframe2d
=
iframe2d
-1
;
iframe5d
=
iframe5d
-1
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
*
)
'.. restart from t = '
,
time
CALL
cpu_time
(
timer_find_CP_2
)
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
*
)
'** Time find CP : '
,
timer_find_CP_2
-
timer_find_CP_1
,
' **'
CALL
cpu_time
(
timer_load_mom_1
)
! Read state of system from checkpoint file
IF
(
KIN_E
)
THEN
WRITE
(
dset_name
,
"(A, '/', i6.6)"
)
"/data/var5d/moments_e"
,
n_
...
...
@@ -79,6 +89,13 @@ CONTAINS
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
'(3x,a)'
)
"Reading from restart file "
//
TRIM
(
rstfile
)//
" completed!"
ENDIF
CALL
cpu_time
(
timer_load_mom_2
)
CALL
cpu_time
(
timer_tot_2
)
CALL
mpi_barrier
(
MPI_COMM_WORLD
,
ierr
)
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
*
)
'** Time load mom : '
,
timer_load_mom_2
-
timer_load_mom_1
,
' **'
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
*
)
'** Total load time : '
,
timer_tot_2
-
timer_tot_1
,
' **'
END
SUBROUTINE
load_moments
!******************************************************************************!
...
...
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