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
4aa43bbb
Commit
4aa43bbb
authored
4 years ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
bug fixed in restarting sim
parent
876faca0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/inital.F90
+4
-2
4 additions, 2 deletions
src/inital.F90
with
4 additions
and
2 deletions
src/inital.F90
+
4
−
2
View file @
4aa43bbb
...
@@ -149,7 +149,7 @@ SUBROUTINE load_output
...
@@ -149,7 +149,7 @@ SUBROUTINE load_output
INTEGER
::
rank
,
sz_
,
n_
INTEGER
::
rank
,
sz_
,
n_
INTEGER
::
dims
(
1
)
=
(/
0
/)
INTEGER
::
dims
(
1
)
=
(/
0
/)
CHARACTER
(
LEN
=
50
)
::
dset_name
CHARACTER
(
LEN
=
50
)
::
dset_name
INTEGER
::
pmaxe_cp
,
jmaxe_cp
,
pmaxi_cp
,
jmaxi_cp
INTEGER
::
pmaxe_cp
,
jmaxe_cp
,
pmaxi_cp
,
jmaxi_cp
,
n0
COMPLEX
(
dp
),
DIMENSION
(:,:,:,:),
ALLOCATABLE
::
moments_e_cp
COMPLEX
(
dp
),
DIMENSION
(:,:,:,:),
ALLOCATABLE
::
moments_e_cp
COMPLEX
(
dp
),
DIMENSION
(:,:,:,:),
ALLOCATABLE
::
moments_i_cp
COMPLEX
(
dp
),
DIMENSION
(:,:,:,:),
ALLOCATABLE
::
moments_i_cp
! Checkpoint filename
! Checkpoint filename
...
@@ -163,14 +163,16 @@ SUBROUTINE load_output
...
@@ -163,14 +163,16 @@ SUBROUTINE load_output
CALL
getatt
(
fidrst
,
"/data/input/"
,
"jmaxe"
,
jmaxe_cp
)
CALL
getatt
(
fidrst
,
"/data/input/"
,
"jmaxe"
,
jmaxe_cp
)
CALL
getatt
(
fidrst
,
"/data/input/"
,
"pmaxi"
,
pmaxi_cp
)
CALL
getatt
(
fidrst
,
"/data/input/"
,
"pmaxi"
,
pmaxi_cp
)
CALL
getatt
(
fidrst
,
"/data/input/"
,
"jmaxi"
,
jmaxi_cp
)
CALL
getatt
(
fidrst
,
"/data/input/"
,
"jmaxi"
,
jmaxi_cp
)
CALL
getatt
(
fidrst
,
"/data/input/"
,
"jmaxi"
,
jmaxi_cp
)
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
*
)
"Pe_cp = "
,
pmaxe_cp
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
*
)
"Pe_cp = "
,
pmaxe_cp
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
*
)
"Je_cp = "
,
jmaxe_cp
IF
(
my_id
.EQ.
0
)
WRITE
(
*
,
*
)
"Je_cp = "
,
jmaxe_cp
CALL
getatt
(
fidrst
,
"/data/input/"
,
"start_iframe5d"
,
n0
)
! Allocate the required size to load checkpoints moments
! Allocate the required size to load checkpoints moments
CALL
allocate_array
(
moments_e_cp
,
1
,
pmaxe_cp
+1
,
1
,
jmaxe_cp
+1
,
ikrs
,
ikre
,
ikzs
,
ikze
)
CALL
allocate_array
(
moments_e_cp
,
1
,
pmaxe_cp
+1
,
1
,
jmaxe_cp
+1
,
ikrs
,
ikre
,
ikzs
,
ikze
)
CALL
allocate_array
(
moments_i_cp
,
1
,
pmaxi_cp
+1
,
1
,
jmaxi_cp
+1
,
ikrs
,
ikre
,
ikzs
,
ikze
)
CALL
allocate_array
(
moments_i_cp
,
1
,
pmaxi_cp
+1
,
1
,
jmaxi_cp
+1
,
ikrs
,
ikre
,
ikzs
,
ikze
)
! Find the last results of the checkpoint file by iteration
! Find the last results of the checkpoint file by iteration
n_
=
1
n_
=
n0
+
1
WRITE
(
dset_name
,
"(A, '/', i6.6)"
)
"/data/var5d/moments_e"
,
n_
! start with moments_e/000001
WRITE
(
dset_name
,
"(A, '/', i6.6)"
)
"/data/var5d/moments_e"
,
n_
! start with moments_e/000001
DO
WHILE
(
isdataset
(
fidrst
,
dset_name
))
! If n_ is not a file we stop the loop
DO
WHILE
(
isdataset
(
fidrst
,
dset_name
))
! If n_ is not a file we stop the loop
n_
=
n_
+
1
n_
=
n_
+
1
...
...
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