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
5d53091a
Commit
5d53091a
authored
1 year ago
by
Antoine Cyril David Hoffmann
Browse files
Options
Downloads
Patches
Plain Diff
all updatetlevel are set to the same value
in restart now
parent
5dfed14b
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
+5
-2
5 additions, 2 deletions
src/restarts_mod.F90
with
5 additions
and
2 deletions
src/restarts_mod.F90
+
5
−
2
View file @
5d53091a
...
...
@@ -94,7 +94,7 @@ CONTAINS
CALL
speak
(
'.. restart from t = '
//
str
(
time
))
! Read state of system from checkpoint file
! Brute force loading: load the full moments and take what is needed (RAM dangerous...)
! (other possibility would be to lo
op over
slices)
! (other possibility would be to lo
ad all on process 0 and send the
slices)
CALL
allocate_array
(
moments_cp
,
1
,
Na_cp
,
1
,
Np_cp
,
1
,
Nj_cp
,
1
,
Nky_cp
,
1
,
Nkx_cp
,
1
,
Nz_cp
)
WRITE
(
dset_name
,
"(A, '/', i6.6)"
)
"/data/var5d/moments"
,
n_
CALL
getarr
(
fidrst
,
dset_name
,
moments_cp
)
...
...
@@ -112,6 +112,7 @@ CONTAINS
ipi
=
ip
+
ngp
/
2
a
:
DO
ia
=
1
,
local_na
iacp
=
ia
+
local_na_offset
! Checks that data exists (allows to extend the arrays if needed)
IF
((
iacp
.LE.
Na_cp
)
.AND.
(
ipcp
.LE.
Np_cp
)
.AND.
(
ijcp
.LE.
Nj_cp
)
.AND.
(
iycp
.LE.
Nky_cp
)
.AND.
(
ixcp
.LE.
Nkx_cp
))
THEN
z
:
DO
iz
=
1
,
local_nz
izi
=
iz
+
ngz
/
2
! local interior index (for ghosted arrays)
...
...
@@ -120,10 +121,12 @@ CONTAINS
zj_cp
=
z_cp_stretched
(
z_idx_mapping
(
izg
))
zjp1_cp
=
z_cp_stretched
(
z_idx_mapping
(
izg
)
+1
)
zerotoone
=
(
zi
-
zj_cp
)/(
zjp1_cp
-
zj_cp
)
! weight for interpolation
moments
(
ia
,
ipi
,
iji
,
iky
,
ikx
,
izi
,
1
)
=
&
moments
(
ia
,
ipi
,
iji
,
iky
,
ikx
,
izi
,
:
)
=
&
zerotoone
*
moments_cp
(
iacp
,
ipcp
,
ijcp
,
iycp
,
ixcp
,
z_idx_mapping
(
izg
))&
+
(
1._xp
-
zerotoone
)
*
moments_cp
(
iacp
,
ipcp
,
ijcp
,
iycp
,
ixcp
,
z_idx_mapping
(
izg
+1
))
ENDDO
z
ELSE
moments
(
ia
,
ipi
,
iji
,
iky
,
ikx
,
izi
,:)
=
0._xp
ENDIF
ENDDO
a
ENDDO
p
...
...
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