Skip to content

Commit

Permalink
Revert rework of crop allocation variable init and reversion of CropP…
Browse files Browse the repository at this point in the history
…hase changes.

Got some weird errors. A new commit chain fixes them.

This reverts commits c98f2c0, 387190a, 12a1a12, and 2646ead.
  • Loading branch information
samsrabin committed Apr 21, 2023
1 parent c98f2c0 commit aab6793
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/biogeochem/CNAllocationMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -393,20 +393,7 @@ subroutine calc_crop_allocation_fractions(bounds, num_pcropp, filter_pcropp, &
end do
arepr(p,nrepr) = 1._r8 - aroot(p) - astem(p) - aleaf(p)

else if (crop_phase(p) == cphase_planted) then
! pre emergence
! allocation coefficients should be irrelevant because crops have no
! live carbon pools
aleaf(p) = 1._r8
aleafi(p) = 1._r8
astem(p) = 0._r8
astemi(p) = 0._r8
aroot(p) = 0._r8
do k = 1, nrepr
arepr(p,k) = 0._r8
end do

else
else if (crop_phase(p) /= cphase_planted)
write(iulog,*) "ERROR in " // subname // ": unexpected crop_phase: ", crop_phase(p)
call endrun(msg="ERROR: unexpected crop_phase "//errmsg(sourcefile, __LINE__))
end if
Expand Down

0 comments on commit aab6793

Please sign in to comment.