Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mossco
mossco-code
Commits
96890cdb
Commit
96890cdb
authored
Nov 21, 2020
by
Knut
Browse files
fixed MeshGet() in mossco_netcdf
parent
509a5a1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/utilities/mossco_netcdf.F90
View file @
96890cdb
...
...
@@ -1194,7 +1194,7 @@ module mossco_netcdf
call
ESMF_FieldGet
(
field
,
mesh
=
mesh
,
meshloc
=
meshloc
,
rc
=
localrc
)
_
MOSSCO_LOG_AND_FINALIZE_ON_ERROR_
(
rc_
)
#if ESMF_VERSION_MAJOR < 8
#if ESMF_VERSION_MAJOR < 8
|| (ESMF_VERSION_MAJOR == 8 && ESMF_VERSION_MINOR == 0)
write
(
geomname
,
'(A)'
)
'mesh'
#else
call
ESMF_MeshGet
(
mesh
,
name
=
geomName
,
rc
=
localrc
)
...
...
@@ -2846,11 +2846,12 @@ module mossco_netcdf
if
(
present
(
rc
))
rc
=
rc_
if
(
present
(
owner
))
call
MOSSCO_StringCopy
(
owner_
,
owner
)
!!@todo get the name by ESMF_MeshGet once this is implemented by ESMF
!call ESMF_MeshGet(mesh, name=geomName, rc=localrc)
localrc
=
ESMF_SUCCESS
write
(
geomname
,
'(A)'
)
'mesh'
_
MOSSCO_LOG_AND_FINALIZE_ON_ERROR_
(
rc_
)
#if ESMF_VERSION_MAJOR < 8 || (ESMF_VERSION_MAJOR == 8 && ESMF_VERSION_MINOR == 0)
write
(
geomname
,
'(A)'
)
'mesh'
#else
call
ESMF_MeshGet
(
mesh
,
name
=
geomName
,
rc
=
localrc
)
_
MOSSCO_LOG_AND_FINALIZE_ON_ERROR_
(
rc_
)
#endif
allocate
(
dimids
(
2
))
dimids
(
2
)
=
self
%
timeDimId
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment