From a86a85aa8e1035326569fbefa382df84d4918e89 Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Fri, 13 Sep 2024 14:44:48 -0700 Subject: [PATCH] move ode algo out --- experiments/standalone/Vegetation/timestep_test.jl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/experiments/standalone/Vegetation/timestep_test.jl b/experiments/standalone/Vegetation/timestep_test.jl index b70984be64..8c321de09a 100644 --- a/experiments/standalone/Vegetation/timestep_test.jl +++ b/experiments/standalone/Vegetation/timestep_test.jl @@ -154,6 +154,7 @@ set_initial_cache! = make_set_initial_cache(canopy) exp_tendency! = make_exp_tendency(canopy) drivers = ClimaLand.get_drivers(canopy) + # imp_tendency! = make_imp_tendency(canopy) # jacobian! = make_jacobian(canopy); # jac_kwargs = @@ -168,6 +169,9 @@ savedir = joinpath(pkgdir(ClimaLand), "experiments/standalone/Vegetation"); ref_dt = 0.001 +timestepper = CTS.RK4(); +ode_algo = CTS.ExplicitAlgorithm(timestepper) + ############ Initial setup for ref solution # Y, p, coords = ClimaLand.initialize(canopy) @@ -201,8 +205,7 @@ ref_dt = 0.001 # # update_j = CTS.UpdateEvery(CTS.NewNewtonIteration), # # ), # # ); -# timestepper = CTS.RK4(); -# ode_algo = CTS.ExplicitAlgorithm(timestepper) + # prob = SciMLBase.ODEProblem( # CTS.ClimaODEFunction(T_exp! = exp_tendency!, dss! = ClimaLand.dss!),