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
fd5b6cf1
Commit
fd5b6cf1
authored
2 years ago
by
Clement Rousset
Browse files
Options
Downloads
Patches
Plain Diff
almost cosmetics
parent
df5a6a27
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/ICE_AGRIF/MY_SRC/usrdef_nam.F90
+20
-11
20 additions, 11 deletions
tests/ICE_AGRIF/MY_SRC/usrdef_nam.F90
with
20 additions
and
11 deletions
tests/ICE_AGRIF/MY_SRC/usrdef_nam.F90
+
20
−
11
View file @
fd5b6cf1
...
@@ -59,6 +59,7 @@ CONTAINS
...
@@ -59,6 +59,7 @@ CONTAINS
CHARACTER
(
len
=
1
),
INTENT
(
out
)
::
cdNFtype
! Folding type: T or F
CHARACTER
(
len
=
1
),
INTENT
(
out
)
::
cdNFtype
! Folding type: T or F
!
!
INTEGER
::
ios
! Local integer
INTEGER
::
ios
! Local integer
INTEGER
::
ighost_n
,
ighost_s
,
ighost_w
,
ighost_e
REAL
(
wp
)::
zlx
,
zly
! Local scalars
REAL
(
wp
)::
zlx
,
zly
! Local scalars
!!
!!
NAMELIST
/
namusr_def
/
rn_dx
,
rn_dy
,
ln_corio
,
rn_ppgphi0
NAMELIST
/
namusr_def
/
rn_dx
,
rn_dy
,
ln_corio
,
rn_ppgphi0
...
@@ -67,8 +68,6 @@ CONTAINS
...
@@ -67,8 +68,6 @@ CONTAINS
READ
(
numnam_cfg
,
namusr_def
,
IOSTAT
=
ios
,
ERR
=
902
)
READ
(
numnam_cfg
,
namusr_def
,
IOSTAT
=
ios
,
ERR
=
902
)
902
IF
(
ios
/
=
0
)
CALL
ctl_nam
(
ios
,
'namusr_def in configuration namelist'
)
902
IF
(
ios
/
=
0
)
CALL
ctl_nam
(
ios
,
'namusr_def in configuration namelist'
)
!
!
IF
(
lwm
)
WRITE
(
numond
,
namusr_def
)
!
#if defined key_agrif
#if defined key_agrif
! Domain parameters are taken from parent:
! Domain parameters are taken from parent:
IF
(
.NOT.
Agrif_Root
()
)
THEN
IF
(
.NOT.
Agrif_Root
()
)
THEN
...
@@ -87,18 +86,28 @@ CONTAINS
...
@@ -87,18 +86,28 @@ CONTAINS
kpi
=
NINT
(
300.e3
/
rn_dx
)
-
3
kpi
=
NINT
(
300.e3
/
rn_dx
)
-
3
kpj
=
NINT
(
300.e3
/
rn_dy
)
-
3
kpj
=
NINT
(
300.e3
/
rn_dy
)
-
3
ELSE
! Global Domain size: add nbghostcells + 1 "land" point on each side
ELSE
! Global Domain size: add nbghostcells + 1 "land" point on each side
kpi
=
nbcellsx
+
2
*
nbghostcells
! At this stage, child ghosts have not been set
kpj
=
nbcellsy
+
2
*
nbghostcells
ighost_w
=
nbghostcells
!! JC: number of ghosts unknown at this tage
ighost_e
=
nbghostcells
!!$ kpi = nbcellsx + nbghostcells_x_w + nbghostcells_x_e + 2
ighost_s
=
nbghostcells
!!$ kpj = nbcellsy + nbghostcells_y_s + nbghostcells_y_n + 2
ighost_n
=
nbghostcells
! In case one sets zoom boundaries over domain edges:
IF
(
Agrif_Ix
()
==
2
-
Agrif_Parent
(
nbghostcells_x_w
)
)
ighost_w
=
1
IF
(
Agrif_Ix
()
+
nbcellsx
/
AGRIF_Irhox
()
==
Agrif_Parent
(
Ni0glo
)
-
Agrif_Parent
(
nbghostcells_x_w
)
)
ighost_e
=
1
IF
(
Agrif_Iy
()
==
2
-
Agrif_Parent
(
nbghostcells_y_s
)
)
ighost_s
=
1
IF
(
Agrif_Iy
()
+
nbcellsy
/
AGRIF_Irhoy
()
==
Agrif_Parent
(
Nj0glo
)
-
Agrif_Parent
(
nbghostcells_y_s
)
)
ighost_n
=
1
! kpi = nbcellsx + 2 * ( nbghostcells + 1 )
! kpj = nbcellsy + 2 * ( nbghostcells + 1 )
kpi
=
nbcellsx
+
ighost_w
+
ighost_e
kpj
=
nbcellsy
+
ighost_s
+
ighost_n
ENDIF
ENDIF
kpk
=
2
kpk
=
2
!
!
!!
zlx = (kpi-2)*rn_dx*1.e-3
zlx
=
(
kpi
-2
)
*
rn_dx
*
1.e-3
!!
zly = (kpj-2)*rn_dy*1.e-3
zly
=
(
kpj
-2
)
*
rn_dy
*
1.e-3
zlx
=
kpi
*
rn_dx
*
1.e-3
!!
zlx = kpi*rn_dx*1.e-3
zly
=
kpj
*
rn_dy
*
1.e-3
!!
zly = kpj*rn_dy*1.e-3
!
!
IF
(
Agrif_Root
()
)
THEN
;
ldIperio
=
.TRUE.
;
ldJperio
=
.TRUE.
! ICE_AGRIF configuration : bi-periodic basin
IF
(
Agrif_Root
()
)
THEN
;
ldIperio
=
.TRUE.
;
ldJperio
=
.TRUE.
! ICE_AGRIF configuration : bi-periodic basin
ELSE
;
ldIperio
=
.FALSE.
;
ldJperio
=
.FALSE.
! closed periodicity for the zoom
ELSE
;
ldIperio
=
.FALSE.
;
ldJperio
=
.FALSE.
! closed periodicity for the zoom
...
...
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