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
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Consortium Members
UKMO
GOSI
GOSI9esm
Commits
0b9e2937
Commit
0b9e2937
authored
3 years ago
by
Sebastien Masson
Browse files
Options
Downloads
Plain Diff
Merge branch '88-error-in-coupled-model-initialization' into 'main'
Resolve "error in coupled model initialization" Closes
#88
See merge request
!136
parents
36262173
672e3519
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/OCE/SBC/cpl_oasis3.F90
+18
-7
18 additions, 7 deletions
src/OCE/SBC/cpl_oasis3.F90
tests/CPL_OASIS/EXPREF/iodef.xml
+1
-1
1 addition, 1 deletion
tests/CPL_OASIS/EXPREF/iodef.xml
with
19 additions
and
8 deletions
src/OCE/SBC/cpl_oasis3.F90
+
18
−
7
View file @
0b9e2937
...
...
@@ -25,6 +25,9 @@ MODULE cpl_oasis3
!!----------------------------------------------------------------------
#if defined key_oasis3
USE
mod_oasis
! OASIS3-MCT module
#endif
#if defined key_xios
USE
xios
! I/O server
#endif
USE
par_oce
! ocean parameters
USE
dom_oce
! ocean space and time domain
...
...
@@ -139,6 +142,7 @@ CONTAINS
INTEGER
::
paral
(
5
)
! OASIS3 box partition
INTEGER
::
ishape
(
4
)
! shape of arrays passed to PSMILe
INTEGER
::
ji
,
jc
,
jm
! local loop indicees
LOGICAL
::
llenddef
! should we call xios_oasis_enddef and oasis_enddef?
CHARACTER
(
LEN
=
64
)
::
zclname
CHARACTER
(
LEN
=
2
)
::
cli2
!!--------------------------------------------------------------------
...
...
@@ -292,14 +296,21 @@ CONTAINS
!------------------------------------------------------------------
!
#if defined key_agrif
! Warning: Agrif_Nb_Fine_Grids not yet defined at this stage for Agrif_Root -> must use Agrif_Root_Only()
IF
(
Agrif_Root_Only
()
.OR.
agrif_fixed
()
==
Agrif_Nb_Fine_Grids
()
)
THEN
IF
(
Agrif_Root
()
)
THEN
! Warning: Agrif_Nb_Fine_Grids not yet defined -> must use Agrif_Root_Only()
llenddef
=
Agrif_Root_Only
()
! true of no nested grid
ELSE
! Is it the last nested grid?
llenddef
=
agrif_fixed
()
==
Agrif_Nb_Fine_Grids
()
ENDIF
#else
llenddef
=
.TRUE.
#endif
IF
(
llenddef
)
THEN
#if defined key_xios
CALL
xios_oasis_enddef
()
! see "Joint_usage_OASIS3-MCT_XIOS.pdf" on XIOS wiki page
#endif
CALL
oasis_enddef
(
nerror
)
IF
(
nerror
/
=
OASIS_Ok
)
CALL
oasis_abort
(
ncomp_id
,
'cpl_define'
,
'Failure in oasis_enddef'
)
#if defined key_agrif
ENDIF
#endif
!
END
SUBROUTINE
cpl_define
...
...
This diff is collapsed.
Click to expand it.
tests/CPL_OASIS/EXPREF/iodef.xml
+
1
−
1
View file @
0b9e2937
...
...
@@ -13,7 +13,7 @@
<variable
id=
"using_server"
type=
"bool"
>
true
</variable>
<variable
id=
"using_oasis"
type=
"bool"
>
true
</variable>
<variable
id=
"oasis_codes_id"
type=
"string"
>
oceanx
</variable>
<variable
id=
"call_oasis_enddef"
type=
"bool"
>
fals
e
</variable>
<variable
id=
"call_oasis_enddef"
type=
"bool"
>
tru
e
</variable>
</variable_definition>
</context>
...
...
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