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

AquaCrop: bump to newest API version

parent ef6e1c5a
No related tags found
No related merge requests found
......@@ -15,13 +15,17 @@ mutable struct AquaCropState
cropstate::AquaCrop.AquaCropField
function AquaCropState(croptype::AquaCropType, height::Length{Float64}=0.0cm)
ac_parentdir = AquaCrop.test_toml_dir # TODO: hardcoded croptype
ac_runtype = :Toml
cropstate, allok = AquaCrop.initialize_cropfield(; parentdir=ac_parentdir, runtype=ac_runtype)
if ! allok.logi
error("AquaCrop.initialize_cropfield() failed, status = $allok")
runtype = AquaCrop.TomlFileRun()
parentdir = AquaCrop.test_toml_dir # TODO: hardcoded croptype
ac_cropfield, all_ok = AquaCrop.start_cropfield(; parentdir, runtype)
if ! all_ok.logi
error("AquaCrop.start_cropfield() failed, status = $all_ok")
end
return new(croptype, height, cropstate)
AquaCrop.setup_cropfield!(ac_cropfield, all_ok; runtype=runtype)
if ! all_ok.logi
error("AquaCrop.setup_cropfield!() failed, status = $all_ok")
end
return new(croptype, height, ac_cropfield)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment