From f7a9b60524951500411171f9e20777a62f718061 Mon Sep 17 00:00:00 2001 From: Julia Sloan Date: Wed, 6 Mar 2024 09:57:56 -0800 Subject: [PATCH] add SYPD calculation [skip ci] --- experiments/AMIP/coupler_driver.jl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/experiments/AMIP/coupler_driver.jl b/experiments/AMIP/coupler_driver.jl index 15301cae09..a4aea6f38f 100644 --- a/experiments/AMIP/coupler_driver.jl +++ b/experiments/AMIP/coupler_driver.jl @@ -678,7 +678,7 @@ function solve_coupler!(cs) end @show walltime - return cs + return walltime end ## exit if running performance anaysis #hide @@ -687,7 +687,11 @@ if haskey(ENV, "CI_PERF_SKIP_COUPLED_RUN") #hide end #hide ## run the coupled simulation -solve_coupler!(cs); +walltime = solve_coupler!(cs); + +# Show the simulated years per day of the simulation +es = CA.EfficiencyStats(tspan, walltime) +@info "SYPD: $(CA.simulated_years_per_day(es))" #= ## Postprocessing