Skip to content

Commit

Permalink
fix corner lat/lon issue, use getLatBu/getLonBu instead of ulon/vlat
Browse files Browse the repository at this point in the history
  • Loading branch information
jiandewang committed Dec 11, 2017
1 parent 4253f8c commit 7872ef1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mom_cap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,12 @@ subroutine InitializeRealize(gcomp, importState, exportState, clock, rc)
enddo
enddo

#ifdef MOM5_CAP
call ocean_model_data_get(Ocean_state, Ocean_sfc, 'ulon', ofld, isc, jsc)
#endif
#ifdef MOM6_CAP
call ocean_model_data_get(Ocean_state, Ocean_sfc, 'geoLonBu', ofld, isc, jsc)
#endif
write(tmpstr,*) subname//' ofld xu = ',minval(ofld),maxval(ofld)
call ESMF_LogWrite(trim(tmpstr), ESMF_LOGMSG_INFO, rc=dbrc)
call mpp_global_field(Ocean_sfc%domain, ofld, gfld)
Expand Down Expand Up @@ -1190,7 +1195,7 @@ subroutine InitializeRealize(gcomp, importState, exportState, clock, rc)
#endif

#ifdef MOM6_CAP
call ocean_model_data_get(Ocean_state, Ocean_sfc, 'vlat', ofld, isc, jsc)
call ocean_model_data_get(Ocean_state, Ocean_sfc, 'geoLatBu', ofld, isc, jsc)
#endif

write(tmpstr,*) subname//' ofld yu = ',minval(ofld),maxval(ofld)
Expand Down

0 comments on commit 7872ef1

Please sign in to comment.