Skip to content

Commit 054405b

Browse files
author
Gautam Bisht
committed
Minor changes to compile code with gcc-5
1 parent af49fac commit 054405b

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

src/betr/betr_main/BetrBGCMod.F90

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,8 +1247,9 @@ subroutine do_tracer_gw_diffusion(bounds, lbj, ubj, jtops, num_soilc, filter_soi
12471247
diff_surf(c,k) * dtime_loc(c)
12481248
endif
12491249
else
1250-
write(msg,*) 'mass bal error dif '//trim(tracernames(trcid))//new_line('A'), 'mass 0/1',mass0, mass1,'col=',c, &
1251-
new_line('A')//'err=', err_tracer(c,k), 'dmass=',dmass(c,k), ' dif=', diff_surf(c,k)*dtime_loc(c), &
1250+
write(msg,*) 'mass bal error dif '//trim(tracernames(trcid))//new_line('A'), 'mass 0/1',mass0, &
1251+
mass1,'col=',c, &
1252+
new_line('A')//'err=', err_tracer(c,k), 'dmass=',dmass(c,k), ' dif=', diff_surf(c,k)*dtime_loc(c), &
12521253
' prod=',dot_sum(x=local_source(c,jtops(c):ubj,k),y=dz(c,jtops(c):ubj),bstatus=bstatus)*dtime_loc(c)
12531254

12541255
if(bstatus%check_status())return

src/driver/shared/BeTRSimulation.F90

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)