Skip to content

Commit

Permalink
make smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck committed Jun 19, 2024
1 parent ac9cca3 commit 0c154f5
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions experiments/benchmarks/land.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 0c154f5

Please sign in to comment.