Skip to content

Commit

Permalink
add code for dataPtr_area when creating the grid and attaching area t…
Browse files Browse the repository at this point in the history
…o grid
  • Loading branch information
DeniseWorthen committed Feb 26, 2019
1 parent 8447a7d commit 76b0f4d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config_src/nuopc_driver/mom_cap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1513,11 +1513,14 @@ subroutine InitializeRealize(gcomp, importState, exportState, clock, rc)
dataPtr_mask(i1,j1) = ocean_grid%mask2dT(ig,jg)
dataPtr_xcen(i1,j1) = ocean_grid%geolonT(ig,jg)
dataPtr_ycen(i1,j1) = ocean_grid%geolatT(ig,jg)
if(grid_attach_area) then
dataPtr_area(i1,j1) = ocean_grid%areaT(ig,jg)
end if
end do
end do

jlast = jec
if(jec .eq. nyg)jlast = jec+1
jlast = jec
if(jec == nyg)jlast = jec+1

do j = jsc, jlast
j1 = j + lbnd4 - jsc
Expand Down

0 comments on commit 76b0f4d

Please sign in to comment.