From 0c154f5d9dfa30f715a15d430c7513d2f4b440bd Mon Sep 17 00:00:00 2001 From: "Katherine M. Deck" Date: Tue, 18 Jun 2024 17:12:58 -0700 Subject: [PATCH] make smaller --- experiments/benchmarks/land.jl | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/experiments/benchmarks/land.jl b/experiments/benchmarks/land.jl index 5c6495e953..523237ffd8 100644 --- a/experiments/benchmarks/land.jl +++ b/experiments/benchmarks/land.jl @@ -12,7 +12,7 @@ # saved at the bottom of this file # Simulation Setup -# Number of spatial elements: 101 in horizontal, 15 in vertical +# Number of spatial elements: 50 in horizontal, 10 in vertical # Soil depth: 50 m # Simulation duration: 3 minutes # Timestep: 60 s @@ -59,7 +59,7 @@ device_suffix = device isa ClimaComms.CPUSingleThreaded ? "cpu" : "gpu" outdir = "land_benchmark_$(device_suffix)" !ispath(outdir) && mkpath(outdir) -function setup_prob(t0, tf, Δt; nelements = (101, 15)) +function setup_prob(t0, tf, Δt; nelements = (50, 10)) earth_param_set = LP.LandParameters(FT) radius = FT(6378.1e3) @@ -199,13 +199,12 @@ function setup_prob(t0, tf, Δt; nelements = (101, 15)) PrescribedRadiativeFluxes(FT, SW_d, LW_d, ref_time; θs = zenith_angle) soil_params_artifact_path = - ClimaLand.Artifacts.soil_params_artifact_folder_path(; - context, - )extrapolation_bc = ( - Interpolations.Periodic(), - Interpolations.Flat(), - Interpolations.Flat(), - ) + ClimaLand.Artifacts.soil_params_artifact_folder_path(; context) + extrapolation_bc = ( + Interpolations.Periodic(), + Interpolations.Flat(), + Interpolations.Flat(), + ) soil_params_mask = SpaceVaryingInput( joinpath( soil_params_artifact_path, @@ -584,7 +583,7 @@ function setup_and_solve_problem(; greet = false) t0 = 0.0 tf = 3 * 60.0 Δt = 60.0 - nelements = (101, 15) + nelements = (50, 10) if greet @info "Run: Global RichardsModel" @info "Resolution: $nelements"