##### Unitfulerrors.jl

```
julia> sol = solve(prob, FunctionMap(scale_by_time = true)); nothing
ERROR: UndefVarError: photosynthesize not defined
Stacktrace:
[1] assimilation!(::DynamicEnergyBudgets.Organ{DynamicEnergyBudgets.StatePVMCNE{Unitful.Quantity{Float64,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)},Unitful.FreeUnits{(Unitful.Unit{:Mole,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}(0, 1//1),),Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}}},DynamicEnergyBudgets.Params{Unitful.Quantity{Float64,Unitful.Dimensions{(Unitful.Dimension{:Amount
}(-1//1), Unitful.Dimension{:Mass}(1//1))},Unitful.FreeUnits{(Unitful.Unit{:Gram,Unitful.Dimensions{(Unitful.Dimension{:Mass}(1//1),)}}(0, 1//1), Unitful.Unit{:Mole,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}(0, -1//1)),Unitful.Dimensions{(Unitful.Dimension{:Amount}(-1//1), Unitful.Dimension{:Mass}(1//1))}}},DynamicEnergyBudgets.Autophagy{Unitful.Quantity{Float64,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)},Unitful.FreeUnits{(Unitful.Unit{:Mole,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}(0, 1//1),),Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}}},DynamicEnergyBudgets.C3Photosynthesis{Photosynthesis.EnergyBalance{Photosynthesis.FvCBPhoto{Photosynthesis.BallBerryModel{Photosynthesis.BallBerryStomatalConductance
{Unitful.Quantity{Float64,Unitful.Dimensions{()},Unitful.FreeUnits{(Unitful.Unit{:Mole,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}(-6, 1//1), Unitful.Unit{:Mole,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}(0, -1//1)),Unitful.Dimensions{()}}},Float64},Photosynthesis.PotentialSoilMethod{Photosynthesis.PotentialSoilData{Float64}},Unitful.Quantity{Float64,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1), Unitful.Dimension{:Length}(-2//1), Unitful.Dimension{:Time}(-1//1))},Unitful.
FreeUnits{(Unitful.Unit{:Meter,Unitful.Dimensions{(Unitful.Dimension{:Length}(1//1),)}}(0, -2//1), Unitful.Unit{:Mole,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}(0, 1//1), Unitful.Unit{:Second,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}(0, -1//1)),Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1), Unitful.Dimension{:Length}(-2//1), Unitful.Dimension{:Time}(-1//1))}}}},Photosynthesis.VcJmax{Photosynthesis.Jmax{Unitful.Quantity{Float64,Unitful.Dimensions{(Unitful.Dimension{:Amount
}(1//1), Unitful.Dimension{:Length}(-2//1), Unitful.Dimension{:Time}(-1//1))},Unitful
.FreeUnits{(Unitful.Unit{:Meter,Unitful.Dimensions{(Unitful.Dimension{:Length}(1//1),)}}(0, -2//1), Unitful.Unit{:Mole,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}(-6, 1//1), Unitful.Unit{:Second,Unitful.Dimensions{(Unitful.Dimension{:Time}(1//1),)}}(0, -1//1)),Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1), Unitful.Dimension{:Length}(-2//1), Unitful.Dimension{:Time}(-1//1))}}},Unitful.Quantity{Float64,Unitful.Dimensions{(Unitful.Dimension{:Amount}(-1//1), Unitful.Dimension{:Length}(2//1), Unitful.Dimension{:Mass}(1//1), Unitful.Dimension{:Temperature}(-1//1), Unitful.Dimension{:Time}(-2//1))},Unitful.FreeUnits{(Unitful.Unit{:Joule,Unitful.Dimensions{(Unitful.Dimension{:Length}(2//1), Unitful.Dimension{:Mass}(1//1), Unitful.Dimension{:Time}(-2//1))}}(0, 1//1), Unitful.Unit{:Kelvin,Unitful.Dimensions{(Unitful.Dimension{:Temperature}(1//1),)}}(0, -1//1), Unitful.Unit{:Mole,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}(0, -1//1)),Unitful.Dimensions{(Unitful.Dimension{:Amount}(-1//1), Unitful.Dimension{:Length}(2//1), Unitful.Dimension{:Mass}(1//1), Unitful.Dimension{:Temperature}(-1//1), Unitful.Dimension{:Time}(-2//1))}}},Unitful.Quantity{Float64,Unitful.Dimensions{(Unitful.Dimension{:Amount}(-1//1), Unitful.Dimension{:Length}(2
//1), Unitful.Dimension{:Mass}(1//1), Unitful.Dimension{:Time}(-2//1))},Unitful.FreeUnits{(Unitful.Unit{:Joule,Unitful.Dimensions{(Unitful.Dimension{:Length}(2//1), Unitful.Dimension{:Mass}(1//1), Unitful.Dimension{:Time}(-2//1))}}(0, 1//1), Unitful.Unit{:Mole,Unitful.Dimensions{(Unitful.Dimension{:Amount}(1//1),)}}(0, -1//1)),Unitful.Dimensions{(Unitful.Dimension{:Amount}(-1//1), Unitful.Dimension{:Length}(2//1), Unitful.Dimension{:Mass}(1//1), Unitful.Dimension{:Time}(-2//1))}}}},Photosynthesis.OptimumVcmax{Unitful.Quantity{Float64,Unitful.Dimensions{(Unitful.Dimension{:Amount}(-1//1),
```

This file has been truncated. show original