@@ -275,15 +275,16 @@ subroutine BeTRInit(this, bounds, lun, col, pft, waterstate, namelist_buffer, ba
275275 endif
276276 call this% betr_time% Init(namelist_buffer)
277277 ! allocate memory
278- allocate (this% betr(bounds% begc:bounds% endc), source = create_betr_type() )
279- allocate (this% biophys_forc(bounds% begc:bounds% endc), source = create_betr_biogeophys_input() )
280- allocate (this% biogeo_flux(bounds% begc:bounds% endc), source = create_betr_biogeoFlux() )
281- allocate (this% biogeo_state(bounds% begc:bounds% endc), source = create_betr_biogeo_state() )
282- allocate (this% bstatus(bounds% begc:bounds% endc), source = create_betr_status_type() )
283- allocate (this% betr_col(bounds% begc:bounds% endc), source = create_betr_column_type() )
284- allocate (this% betr_pft(bounds% begc:bounds% endc), source = create_betr_patch_type() )
278+ allocate (this% betr(bounds% begc:bounds% endc))
279+ allocate (this% biophys_forc(bounds% begc:bounds% endc))
280+ allocate (this% biogeo_flux(bounds% begc:bounds% endc))
281+ allocate (this% biogeo_state(bounds% begc:bounds% endc))
282+ allocate (this% bstatus(bounds% begc:bounds% endc))
283+ allocate (this% betr_col(bounds% begc:bounds% endc))
284+ allocate (this% betr_pft(bounds% begc:bounds% endc))
285285 allocate (this% active_col(bounds% begc:bounds% endc))
286- allocate (this% bsimstatus, source = create_betr_status_sim_type())
286+ allocate (this% bsimstatus)
287+
287288 call this% bsimstatus% reset()
288289
289290 ! grid horizontal bounds
@@ -1055,14 +1056,15 @@ subroutine BeTRSimulationPreDiagSoilColWaterFlux(this, num_nolakec, filter_nolak
10551056 end subroutine BeTRSimulationPreDiagSoilColWaterFlux
10561057
10571058 !- -----------------------------------------------------------------------
1058- subroutine BeTRSimulationDiagnoseDtracerFreezeThaw (this , bounds , num_nolakec , filter_nolakec , col )
1059+ subroutine BeTRSimulationDiagnoseDtracerFreezeThaw (this , bounds , num_nolakec , filter_nolakec , col , lun )
10591060 !
10601061 ! DESCRIPTION
10611062 ! aqueous tracer partition based on freeze-thaw
10621063 !
10631064 ! USES
10641065 use ColumnType , only : column_type
10651066 use WaterStateType , only : waterstate_type
1067+ use LandunitType , only : landunit_type
10661068 implicit none
10671069 !
10681070 ! Arguments
@@ -1072,6 +1074,7 @@ subroutine BeTRSimulationDiagnoseDtracerFreezeThaw(this, bounds, num_nolakec, fi
10721074 integer , intent (in ) :: filter_nolakec(:) ! column filter for non-lake points
10731075! type(waterstate_type), intent(in) :: waterstate_vars
10741076 type (column_type) , intent (in ) :: col ! column type
1077+ type (landunit_type) , intent (in ) :: lun
10751078
10761079 ! temporary variables
10771080 type (betr_bounds_type) :: betr_bounds
0 commit comments