Skip to content

Commit

Permalink
Merge pull request #86 from gustavo-marques/bug_fix_convert_IOB_to_fo…
Browse files Browse the repository at this point in the history
…rces

Move pointer assignment outside of loop
  • Loading branch information
alperaltuntas authored Dec 12, 2018
2 parents ca03196 + 88fd8c6 commit dd6cb7f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions config_src/mct_driver/MOM_surface_forcing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -599,13 +599,14 @@ subroutine convert_IOB_to_forces(IOB, forces, index_bounds, Time, G, CS)
forces%p_surf(i,j) = forces%p_surf_full(i,j)
endif

if (CS%use_limited_P_SSH) then
forces%p_surf_SSH => forces%p_surf
else
forces%p_surf_SSH => forces%p_surf_full
endif
end if
end do; end do
endif
enddo; enddo

if (CS%use_limited_P_SSH) then
forces%p_surf_SSH => forces%p_surf
else
forces%p_surf_SSH => forces%p_surf_full
endif

! GMM, CIME uses AGRID. All the BGRID_NE code can be cleaned later
wind_stagger = AGRID
Expand Down

0 comments on commit dd6cb7f

Please sign in to comment.