Skip to content

Commit

Permalink
add ifndef CESMCOUPLED in cap for EMC runoff
Browse files Browse the repository at this point in the history
  • Loading branch information
jiandewang committed Aug 18, 2019
1 parent 258a19c commit 4f71b04
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config_src/nuopc_driver/mom_cap.F90
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,10 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)
call ocean_model_init(ocean_public, ocean_state, Time, Time)
endif

call data_override_init(Ocean_domain_in = Ocean_public%domain) ! for runoff
#ifndef CESMCOUPLED
! for runoff in EMC
call data_override_init(Ocean_domain_in = Ocean_public%domain)
#endif

call ocean_model_init_sfc(ocean_state, ocean_public)

Expand Down Expand Up @@ -2535,9 +2538,8 @@ subroutine shr_file_getLogUnit(nunit)
end subroutine shr_file_getLogUnit
#endif

! get forcing data from data_overide
subroutine ice_ocn_bnd_from_data(x, Time, Time_step_coupled)

! get forcing data from data_overide
type (ice_ocean_boundary_type) :: x
type(Time_type), intent(in) :: Time, Time_step_coupled

Expand All @@ -2546,7 +2548,7 @@ subroutine ice_ocn_bnd_from_data(x, Time, Time_step_coupled)

Time_next = Time + Time_step_coupled
! call data_override('OCN', 'runoff', x%runoff , Time_next)
call data_override('OCN', 'runoff', x%rofl_flux , Time_next) !JW
call data_override('OCN', 'runoff', x%rofl_flux , Time_next)

end subroutine ice_ocn_bnd_from_data

Expand Down

0 comments on commit 4f71b04

Please sign in to comment.