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

Avoid using union type for height

parent d86498b9
No related branches found
No related tags found
No related merge requests found
...@@ -14,10 +14,10 @@ cropname(ct::AquaCropType) = ct.name ...@@ -14,10 +14,10 @@ cropname(ct::AquaCropType) = ct.name
mutable struct AquaCropState mutable struct AquaCropState
croptype::AquaCropType croptype::AquaCropType
height::Length{Float64} # TODO: remove height field, supply from cropstate height::Tlength # TODO: remove height field, supply from cropstate
cropstate::AquaCrop.AquaCropField cropstate::AquaCrop.AquaCropField
function AquaCropState(croptype::AquaCropType, height::Length{Float64}=0.0cm) function AquaCropState(croptype::AquaCropType, height::Tlength=0.0cm)
runtype = AquaCrop.TomlFileRun() runtype = AquaCrop.TomlFileRun()
parentdir = AquaCrop.test_toml_dir # TODO: hardcoded croptype parentdir = AquaCrop.test_toml_dir # TODO: hardcoded croptype
ac_cropfield, all_ok = AquaCrop.start_cropfield(; parentdir, runtype) 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