Skip to content

Commit 80743e6

Browse files
Adding river runoff (from Jiande)
Squashed commit of the following: commit 8aa45c6 Author: jiandewang <jiande.wang@noaa.gov> Date: Mon Sep 23 22:45:46 2019 -0400 fix typo in cap commit ad85f5a Merge: 4f71b04 c7d2a71 Author: jiandewang <jiande.wang@noaa.gov> Date: Mon Sep 23 13:48:07 2019 -0400 solve conflict in mom cap commit 4f71b04 Author: jiandewang <jiande.wang@noaa.gov> Date: Sat Aug 17 21:08:44 2019 -0400 add ifndef CESMCOUPLED in cap for EMC runoff commit 258a19c Author: jiandewang <jiande.wang@noaa.gov> Date: Sun Aug 4 19:30:08 2019 -0400 add runoff in mom_cap.F90
1 parent 5b994f3 commit 80743e6

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

config_src/nuopc_driver/mom_cap.F90

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@
313313
!> This module contains a set of subroutines that are required by NUOPC.
314314
module MOM_cap_mod
315315
use constants_mod, only: constants_init
316+
use data_override_mod, only: data_override_init, data_override
316317
use diag_manager_mod, only: diag_manager_init, diag_manager_end
317318
use field_manager_mod, only: field_manager_init, field_manager_end
318319
use fms_mod, only: fms_init, fms_end, open_namelist_file, check_nml_error
@@ -976,6 +977,11 @@ subroutine InitializeAdvertise(gcomp, importState, exportState, clock, rc)
976977
call ocean_model_init(ocean_public, ocean_state, Time, Time)
977978
endif
978979

980+
#ifndef CESMCOUPLED
981+
! for runoff in EMC
982+
call data_override_init(Ocean_domain_in = Ocean_public%domain)
983+
#endif
984+
979985
call ocean_model_init_sfc(ocean_state, ocean_public)
980986

981987
call mpp_get_compute_domain(ocean_public%domain, isc, iec, jsc, jec)
@@ -1922,6 +1928,8 @@ subroutine ModelAdvance(gcomp, rc)
19221928
file=__FILE__)) &
19231929
return ! bail out
19241930

1931+
call ice_ocn_bnd_from_data(Ice_ocean_boundary, Time, Time_step_coupled) ! for runoff
1932+
19251933
!---------------
19261934
! Update MOM6
19271935
!---------------
@@ -2525,4 +2533,18 @@ subroutine shr_file_getLogUnit(nunit)
25252533
end subroutine shr_file_getLogUnit
25262534
#endif
25272535

2528-
end module MOM_cap_mod
2536+
subroutine ice_ocn_bnd_from_data(x, Time, Time_step_coupled)
2537+
! get forcing data from data_overide
2538+
type (ice_ocean_boundary_type) :: x
2539+
type(Time_type), intent(in) :: Time, Time_step_coupled
2540+
2541+
type(Time_type) :: Time_next
2542+
character(len=*),parameter :: subname='(mom_cap:ice_ocn_bnd_from_data)'
2543+
2544+
Time_next = Time + Time_step_coupled
2545+
! call data_override('OCN', 'runoff', x%runoff , Time_next)
2546+
call data_override('OCN', 'runoff', x%rofl_flux , Time_next)
2547+
2548+
end subroutine ice_ocn_bnd_from_data
2549+
2550+
end module mom_cap_mod

0 commit comments

Comments
 (0)