@@ -830,11 +830,12 @@ subroutine ED_Norman_Radiation (nsites, sites, bc_in, bc_out )
830830 endif
831831 enddo
832832 enddo
833+
833834 if (lai_change(1 ,2 ,1 ).gt. 0.0 .and. lai_change(1 ,2 ,2 ).gt. 0.0 )then
834- ! write(fates_log(),*) 'lai_change(1,2,12)',lai_change(1,2,1:4)
835+ ! write(fates_log(),*) 'lai_change(1,2,12)',lai_change(1,2,1:4)
835836 endif
836837 if (lai_change(1 ,2 ,2 ).gt. 0.0 .and. lai_change(1 ,2 ,3 ).gt. 0.0 )then
837- ! write(fates_log(),*) ' lai_change (1,2,23)',lai_change(1,2,1:4)
838+ ! write(fates_log(),*) ' lai_change (1,2,23)',lai_change(1,2,1:4)
838839 endif
839840 if (lai_change(1 ,1 ,3 ).gt. 0.0 .and. lai_change(1 ,1 ,2 ).gt. 0.0 )then
840841 ! NO-OP
@@ -846,7 +847,7 @@ subroutine ED_Norman_Radiation (nsites, sites, bc_in, bc_out )
846847 endif
847848 if (lai_change(1 ,1 ,4 ).gt. 0.0 .and. lai_change(1 ,1 ,5 ).gt. 0.0 )then
848849 ! NO-OP
849- ! write(fates_log(),*) 'first layer of lai_change 4 5',lai_change(1,1,1:5)
850+ ! write(fates_log(),*) 'first layer of lai_change 4 5',lai_change(1,1,1:5)
850851 endif
851852
852853 if (radtype == 1 )then
@@ -865,10 +866,10 @@ subroutine ED_Norman_Radiation (nsites, sites, bc_in, bc_out )
865866 write (fates_log(),* ) ' Large Dir Radn consvn error' ,error ,ifp,ib
866867 write (fates_log(),* ) ' diags' , bc_out(s)% albd_parb(ifp,ib), bc_out(s)% ftdd_parb(ifp,ib), &
867868 bc_out(s)% ftid_parb(ifp,ib), bc_out(s)% fabd_parb(ifp,ib)
868- write (fates_log(),* ) ' lai_change' ,lai_change(currentpatch% ncl_p,1 :2 ,1 :4 )
869- write (fates_log(),* ) ' elai' ,currentpatch% elai_profile(currentpatch% ncl_p,1 :2 ,1 :4 )
870- write (fates_log(),* ) ' esai' ,currentpatch% esai_profile(currentpatch% ncl_p,1 :2 ,1 :4 )
871- write (fates_log(),* ) ' ftweight' ,ftweight(1 ,1 :2 ,1 :4 )
869+ write (fates_log(),* ) ' lai_change' ,lai_change(currentpatch% ncl_p,1 :numpft_ed ,1 :4 )
870+ write (fates_log(),* ) ' elai' ,currentpatch% elai_profile(currentpatch% ncl_p,1 :numpft_ed ,1 :4 )
871+ write (fates_log(),* ) ' esai' ,currentpatch% esai_profile(currentpatch% ncl_p,1 :numpft_ed ,1 :4 )
872+ write (fates_log(),* ) ' ftweight' ,ftweight(1 ,1 :numpft_ed ,1 :4 )
872873 write (fates_log(),* ) ' cp' ,currentPatch% area, currentPatch% patchno
873874 write (fates_log(),* ) ' bc_in(s)%albgr_dir_rb(ib)' ,bc_in(s)% albgr_dir_rb(ib)
874875
@@ -884,16 +885,16 @@ subroutine ED_Norman_Radiation (nsites, sites, bc_in, bc_out )
884885 write (fates_log(),* ) ' >5% Dif Radn consvn error' ,error ,ifp,ib
885886 write (fates_log(),* ) ' diags' , bc_out(s)% albi_parb(ifp,ib), bc_out(s)% ftii_parb(ifp,ib), &
886887 bc_out(s)% fabi_parb(ifp,ib)
887- write (fates_log(),* ) ' lai_change' ,lai_change(currentpatch% ncl_p,1 :2 ,1 :4 )
888- write (fates_log(),* ) ' elai' ,currentpatch% elai_profile(currentpatch% ncl_p,1 :2 ,1 :4 )
889- write (fates_log(),* ) ' esai' ,currentpatch% esai_profile(currentpatch% ncl_p,1 :2 ,1 :4 )
890- write (fates_log(),* ) ' ftweight' ,ftweight(currentpatch% ncl_p,1 :2 ,1 :4 )
888+ write (fates_log(),* ) ' lai_change' ,lai_change(currentpatch% ncl_p,1 :numpft_ed ,1 :4 )
889+ write (fates_log(),* ) ' elai' ,currentpatch% elai_profile(currentpatch% ncl_p,1 :numpft_ed ,1 :4 )
890+ write (fates_log(),* ) ' esai' ,currentpatch% esai_profile(currentpatch% ncl_p,1 :numpft_ed ,1 :4 )
891+ write (fates_log(),* ) ' ftweight' ,ftweight(currentpatch% ncl_p,1 :numpft_ed ,1 :4 )
891892 write (fates_log(),* ) ' cp' ,currentPatch% area, currentPatch% patchno
892893 write (fates_log(),* ) ' bc_in(s)%albgr_dif_rb(ib)' ,bc_in(s)% albgr_dif_rb(ib)
893- write (fates_log(),* ) ' rhol' ,rhol(1 :2 ,:)
894- write (fates_log(),* ) ' ftw' ,sum (ftweight(1 ,:,1 )),ftweight(1 ,1 :2 ,1 )
895- write (fates_log(),* ) ' present' ,currentPatch% present (1 ,1 :2 )
896- write (fates_log(),* ) ' CAP' ,currentPatch% canopy_area_profile(1 ,1 :2 ,1 )
894+ write (fates_log(),* ) ' rhol' ,rhol(1 :numpft_ed ,:)
895+ write (fates_log(),* ) ' ftw' ,sum (ftweight(1 ,:,1 )),ftweight(1 ,1 :numpft_ed ,1 )
896+ write (fates_log(),* ) ' present' ,currentPatch% present (1 ,1 :numpft_ed )
897+ write (fates_log(),* ) ' CAP' ,currentPatch% canopy_area_profile(1 ,1 :numpft_ed ,1 )
897898
898899 bc_out(s)% albi_parb(ifp,ib) = bc_out(s)% albi_parb(ifp,ib) + error
899900 end if
0 commit comments