Skip to content

Commit

Permalink
Merge pull request #124 from angus-g/fix-ongrid-interp
Browse files Browse the repository at this point in the history
Fix data read for on-grid interpolation
  • Loading branch information
Hallberg-NOAA authored May 26, 2022
2 parents a965005 + b31ec83 commit af321d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/MOM_horizontal_regridding.F90
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ subroutine horiz_interp_and_extrap_tracer_record(filename, varnam, conversion,
if (is_ongrid) then
start(1) = is+G%HI%idg_offset ; start(2) = js+G%HI%jdg_offset ; start(3) = k
count(1) = ie-is+1 ; count(2) = je-js+1; count(3) = 1; start(4) = 1; count(4) = 1
call MOM_read_data(trim(filename), trim(varnam), tr_in, G%Domain, timelevel=1)
call MOM_read_data(trim(filename), trim(varnam), tr_in, start, count, G%Domain)
do j=js,je
do i=is,ie
if (abs(tr_in(i,j)-missing_val_in) > abs(roundoff*missing_val_in)) then
Expand Down

0 comments on commit af321d6

Please sign in to comment.