Skip to content

Commit

Permalink
Simplify equation based on Erik's review
Browse files Browse the repository at this point in the history
  • Loading branch information
slevis-lmwg committed Dec 24, 2024
1 parent c3d9ecc commit a73a961
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/biogeochem/CNFUNMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1718,9 +1718,9 @@ real(r8) function fun_cost_fix_Bytnerowicz_noAcc(fixer,nfix_tmin,nfix_topt,nfix_
real(r8), intent(in) :: tc_soisno ! soil temperature (degrees Celsius)

if (fixer == 1 .and. crootfr > 1.e-6_r8 .and. tc_soisno > nfix_tmin .and. tc_soisno < nfix_tmax) then
fun_cost_fix_Bytnerowicz_noAcc = (-1*s_fix) * 1._r8 / ( ((nfix_tmax-tc_soisno)/(nfix_tmax-nfix_topt))*&
( ((tc_soisno-nfix_tmin)/(nfix_topt-nfix_tmin))**&
((nfix_topt- nfix_tmin)/(nfix_tmax-nfix_topt)) ) )
fun_cost_fix_Bytnerowicz_noAcc = (-s_fix) / ( ((nfix_tmax-tc_soisno)/(nfix_tmax-nfix_topt))*&
( ((tc_soisno-nfix_tmin)/(nfix_topt-nfix_tmin))**&
((nfix_topt- nfix_tmin)/(nfix_tmax-nfix_topt)) ) )
fun_cost_fix_Bytnerowicz_noAcc = min(fun_cost_fix_Bytnerowicz_noAcc,big_cost)
else
fun_cost_fix_Bytnerowicz_noAcc = big_cost
Expand Down

0 comments on commit a73a961

Please sign in to comment.