Skip to content

Commit

Permalink
Merge branch 'feature/wjiang/by_pass_nan_missing' of github.com:GEOS-…
Browse files Browse the repository at this point in the history
…ESM/MAPL into feature/wjiang/by_pass_nan_missing
  • Loading branch information
weiyuan-jiang committed Jun 23, 2022
2 parents 961d4de + 5bd1910 commit d198c08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions griddedio/GriddedIO.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1075,13 +1075,14 @@ subroutine swap_undef_value(this,fname,rc)
logical :: hasDE_in
real(REAL32) :: fill_value

if ( .not. this%current_file_metadata%var_has_missing_value(fname) )
if ( .not. this%current_file_metadata%var_has_missing_value(fname) ) then
_RETURN(_SUCCESS)
endif

fill_value = this%current_file_metadata%var_get_missing_value(fname,_RC)

call ESMF_FieldBundleGet(this%input_bundle,fname,field=field, grid=gridIn, _RC)
call ESMF_FieldBundleGet(this%input_bundle,fname,field=field,_RC)
call ESMF_FieldBundleGet(this%input_bundle,grid=gridIn,_RC)
call ESMF_FieldGet(field,rank=fieldRank,_RC)
hasDE_in = MAPL_GridHasDE(gridIn,_RC)

Expand Down

0 comments on commit d198c08

Please sign in to comment.