Skip to content

Commit d310690

Browse files
committed
update and move the WrapTransferBC call with new type
1 parent 580ac66 commit d310690

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

components/elm/src/main/elmfates_interfaceMod.F90

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3677,6 +3677,33 @@ subroutine wrap_hydraulics_drive(this, bounds_clump, &
36773677
return
36783678
end subroutine wrap_hydraulics_drive
36793679

3680+
! ======================================================================================
3681+
3682+
subroutine WrapTransferBC(this, nc)
3683+
3684+
! !DESCRIPTION:
3685+
! ---------------------------------------------------------------------------------
3686+
! This call passes the HLM inputs to FATES patch-level boundary conditions
3687+
! ---------------------------------------------------------------------------------
3688+
3689+
! !USES:
3690+
!
3691+
! !ARGUMENTS:
3692+
class(hlm_fates_interface_type), intent(inout) :: this
3693+
integer, intent(in) :: nc
3694+
3695+
! !LOCAL:
3696+
integer :: s, ivar ! indices and loop counters
3697+
3698+
do s = 1, this%fates(nc)%nsites
3699+
do ivar = 1,this%num_hlmvar
3700+
call this%fates(nc)%sites(s)%TransferBCIn(this%api_str(ivar), &
3701+
this%hlm_var_2darray(ivar)%hlm_var)
3702+
end do
3703+
end do
3704+
3705+
end subroutine WrapTransferBC
3706+
36803707
! ======================================================================================
36813708

36823709
subroutine hlm_bounds_to_fates_bounds(hlm, fates)
@@ -3947,30 +3974,4 @@ subroutine GetLandusePFTData(bounds, landuse_pft_file, landuse_pft_map, landuse_
39473974

39483975
end subroutine GetLandusePFTData
39493976

3950-
! ======================================================================================
3951-
3952-
subroutine WrapTransferBC(this, nc)
3953-
3954-
! !DESCRIPTION:
3955-
! ---------------------------------------------------------------------------------
3956-
! This call updates the HLM inputs to FATES using the
3957-
! ---------------------------------------------------------------------------------
3958-
3959-
! !USES:
3960-
!
3961-
! !ARGUMENTS:
3962-
class(hlm_fates_interface_type), intent(inout) :: this
3963-
integer, intent(in) :: nc
3964-
3965-
! !LOCAL:
3966-
integer :: s, ivar ! indices and loop counters
3967-
3968-
do s = 1, this%fates(nc)%nsites
3969-
do ivar = 1,this%num_hlmvar
3970-
call this%fates(nc)%sites(s)%TransferBC(this%api_str(ivar), this%hlm_var(ivar))
3971-
end do
3972-
end do
3973-
3974-
end subroutine WrapTransferBC
3975-
39763977
end module ELMFatesInterfaceMod

0 commit comments

Comments
 (0)