Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Jan 22, 2024
1 parent 2b66474 commit 5e45e7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base/NCIO.F90
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,8 @@ subroutine MAPL_VarWriteNCpar_R4_3d(formatter, name, A, ARRDES, oClients, RC)
integer :: i1, j1, in, jn, global_dim(3)
type(ArrayReference) :: ref

if (present(oClients)) then
if (present(arrdes)) then
if (present(oClients)) then
_ASSERT(present(oClients), "output server is needed")
call MAPL_GridGet(arrdes%grid,globalCellCountPerDim=global_dim,rc=status)
_VERIFY(status)
Expand Down Expand Up @@ -3298,6 +3299,9 @@ subroutine MAPL_BundleWriteNCPar(Bundle, arrdes, CLOCK, filename, oClients, rc)
logical :: is_stretched
character(len=ESMF_MAXSTR) :: positive
type(StringVector) :: flip_vars
logical :: have_oclients

have_oclients = present(oClients)

call ESMF_FieldBundleGet(Bundle,FieldCount=nVars, name=BundleName, rc=STATUS)
_VERIFY(STATUS)
Expand Down

0 comments on commit 5e45e7f

Please sign in to comment.