Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
GOSI9esm
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Consortium Members
UKMO
GOSI
GOSI9esm
Commits
638d2958
Commit
638d2958
authored
3 years ago
by
Sibylle TECHENE
Browse files
Options
Downloads
Patches
Plain Diff
RK3: rst read / write of ssha for ww at the start of stp2d
parent
2760b056
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/OCE/IOM/restart.F90
+14
-3
14 additions, 3 deletions
src/OCE/IOM/restart.F90
with
14 additions
and
3 deletions
src/OCE/IOM/restart.F90
+
14
−
3
View file @
638d2958
...
...
@@ -140,7 +140,7 @@ CONTAINS
END
SUBROUTINE
rst_opn
SUBROUTINE
rst_write
(
kt
,
Kbb
,
Kmm
)
SUBROUTINE
rst_write
(
kt
,
Kbb
,
Kmm
,
Kaa
)
!!---------------------------------------------------------------------
!! *** ROUTINE rstwrite ***
!!
...
...
@@ -154,6 +154,7 @@ CONTAINS
!!----------------------------------------------------------------------
INTEGER
,
INTENT
(
in
)
::
kt
! ocean time-step
INTEGER
,
INTENT
(
in
)
::
Kbb
,
Kmm
! ocean time level indices
INTEGER
,
OPTIONAL
,
INTENT
(
in
)
::
Kaa
! ocean time level index required for RK3
!!----------------------------------------------------------------------
!
CALL
iom_rstput
(
kt
,
nitrst
,
numrow
,
'rdt'
,
rn_Dt
)
! dynamics time step
...
...
@@ -170,8 +171,9 @@ CONTAINS
#if defined key_RK3
CALL
iom_rstput
(
kt
,
nitrst
,
numrow
,
'uu_b'
,
uu_b
(:,:
,
Kbb
)
)
! before fields
CALL
iom_rstput
(
kt
,
nitrst
,
numrow
,
'vv_b'
,
vv_b
(:,:
,
Kbb
)
)
! before fields
CALL
iom_rstput
(
kt
,
nitrst
,
numrow
,
'ssha '
,
ssh
(:,:
,
Kaa
)
)
! after field post swap (n-1)
#else
CALL
iom_rstput
(
kt
,
nitrst
,
numrow
,
'sshn'
,
ssh
(:,:
,
Kmm
)
)
! now fields
CALL
iom_rstput
(
kt
,
nitrst
,
numrow
,
'sshn'
,
ssh
(:,:
,
Kmm
)
)
! now fields
: n
CALL
iom_rstput
(
kt
,
nitrst
,
numrow
,
'un'
,
uu
(:,:,:
,
Kmm
)
)
CALL
iom_rstput
(
kt
,
nitrst
,
numrow
,
'vn'
,
vv
(:,:,:
,
Kmm
)
)
CALL
iom_rstput
(
kt
,
nitrst
,
numrow
,
'tn'
,
ts
(:,:,:,
jp_tem
,
Kmm
)
)
...
...
@@ -361,6 +363,9 @@ CONTAINS
!
! !* RK3: Set ssh at Kmm for AGRIF
ssh
(:,:,
Kmm
)
=
ssh
(:,:,
Kbb
)
!
! !* RK3: Set ssh at Kaa (n-1) for ww computation
CALL
iom_get
(
numror
,
jpdom_auto
,
'ssha'
,
ssh
(:,:,
Kaa
)
)
#else
! !* MLF: Read ssh at Kmm
IF
(
lwp
)
WRITE
(
numout
,
*
)
...
...
@@ -408,11 +413,17 @@ CONTAINS
!
ssh
(:,:,
Kmm
)
=
ssh
(:,:,
Kbb
)
!* set now values from to before ones
ENDIF
!
!
!JC: line below ???
#if defined key_RK3
IF
(
.NOT.
ln_rstart
)
THEN
#endif
! !==========================!
ssh
(:,:,
Kaa
)
=
0._wp
!== Set to 0 for AGRIF ==!
! !==========================!
#if defined key_RK3
ENDIF
#endif
!
END
SUBROUTINE
rst_read_ssh
...
...
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