Skip to content
Snippets Groups Projects
Commit e5e3a07a authored by Marco Matthies's avatar Marco Matthies
Browse files

Avoid using union type for height

parent 0a196ddf
No related branches found
No related tags found
No related merge requests found
......@@ -14,10 +14,10 @@ cropname(ct::AquaCropType) = ct.name
mutable struct AquaCropState
croptype::AquaCropType
height::Length{Float64} # TODO: remove height field, supply from cropstate
height::Tlength # TODO: remove height field, supply from cropstate
cropstate::AquaCrop.AquaCropField
function AquaCropState(croptype::AquaCropType, height::Length{Float64}=0.0cm)
function AquaCropState(croptype::AquaCropType, height::Tlength=0.0cm)
runtype = AquaCrop.TomlFileRun()
parentdir = AquaCrop.test_toml_dir # TODO: hardcoded croptype
ac_cropfield, all_ok = AquaCrop.start_cropfield(; parentdir, runtype)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment