@@ -3677,6 +3677,33 @@ subroutine wrap_hydraulics_drive(this, bounds_clump, &
3677
3677
return
3678
3678
end subroutine wrap_hydraulics_drive
3679
3679
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
+
3680
3707
! ======================================================================================
3681
3708
3682
3709
subroutine hlm_bounds_to_fates_bounds (hlm , fates )
@@ -3947,30 +3974,4 @@ subroutine GetLandusePFTData(bounds, landuse_pft_file, landuse_pft_map, landuse_
3947
3974
3948
3975
end subroutine GetLandusePFTData
3949
3976
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
-
3976
3977
end module ELMFatesInterfaceMod
0 commit comments