Skip to content

Commit

Permalink
Merge branch 'dev/ufs-weather-model' into feature/addflds4schism
Browse files Browse the repository at this point in the history
  • Loading branch information
DeniseWorthen committed Aug 10, 2024
2 parents 19f7a27 + 7f548c7 commit cb2e58b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions model/src/wav_import_export.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ subroutine SetScalarField(field, flds_scalar_name, flds_scalar_num, rc)
! local variables
type(ESMF_Distgrid) :: distgrid
type(ESMF_Grid) :: grid
real(ESMF_KIND_R8), pointer :: fldptr2d(:,:)
character(len=*), parameter :: subname='(wav_import_export:SetScalarField)'
! ----------------------------------------------

Expand All @@ -1074,6 +1075,11 @@ subroutine SetScalarField(field, flds_scalar_name, flds_scalar_num, rc)
ungriddedLBound=(/1/), ungriddedUBound=(/flds_scalar_num/), gridToFieldMap=(/2/), rc=rc) ! num of scalar values
if (ESMF_LogFoundError(rcToCheck=rc, msg=ESMF_LOGERR_PASSTHRU, line=__LINE__, file=u_FILE_u)) return

! initialize fldptr to zero
call ESMF_FieldGet(field, farrayPtr=fldptr2d, rc=rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
fldptr2d(:,:) = 0.0

end subroutine SetScalarField

end subroutine fldlist_realize
Expand Down

0 comments on commit cb2e58b

Please sign in to comment.