Skip to content

Commit

Permalink
modified: config/default_configs/default_config.yml
Browse files Browse the repository at this point in the history
	modified:   config/model_configs/sphere_baroclinic_wave_rhoe_equilmoist.yml
	modified:   examples/Manifest.toml
	modified:   src/prognostic_equations/implicit/implicit_tendency.jl
	modified:   src/utils/abbreviations.jl
  • Loading branch information
akshaysridhar committed Dec 17, 2024
1 parent 89047eb commit 779fe9a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/default_configs/default_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ viscous_sponge:
help: "Viscous sponge [`true`, `false` (default)]"
value: false
tracer_upwinding:
help: "Tracer upwinding mode [`none` (default), `first_order` , `third_order`, `boris_book`, `zalesak`]"
help: "Tracer upwinding mode [`none` (default), `first_order` , `third_order`, `boris_book`, `zalesak`, `vanleer_limiter`]"
value: none
energy_upwinding:
help: "Energy upwinding mode [`none` (default), `first_order` , `third_order`, `boris_book`, `zalesak`]"
help: "Energy upwinding mode [`none` (default), `first_order` , `third_order`, `boris_book`, `zalesak`, `vanleer_limiter`]"
value: none
orographic_gravity_wave:
help: "Orographic drag on horizontal mean flow [`nothing` (default), `gfdl_restart`, `raw_topo`]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ initial_condition: "MoistBaroclinicWave"
dt: "450secs"
t_end: "10days"
moist: "equil"
tracer_upwinding: vanleer_limiter
energy_upwinding: vanleer_limiter
diagnostics:
- short_name: [pfull, wa, va, rv, hus, ke]
period: 1days
8 changes: 5 additions & 3 deletions examples/Manifest.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is machine-generated - editing it directly is not advised

julia_version = "1.10.7"
julia_version = "1.10.4"
manifest_format = "2.0"
project_hash = "13bc74579bbfd1b4bab2e5d6cddd05f9a01dba06"

Expand Down Expand Up @@ -353,7 +353,9 @@ weakdeps = ["CUDA", "MPI"]

[[deps.ClimaCore]]
deps = ["Adapt", "BandedMatrices", "BlockArrays", "ClimaComms", "CubedSphere", "DataStructures", "ForwardDiff", "GaussQuadrature", "GilbertCurves", "HDF5", "InteractiveUtils", "IntervalSets", "KrylovKit", "LinearAlgebra", "MultiBroadcastFusion", "NVTX", "PkgVersion", "RecursiveArrayTools", "RootSolvers", "SparseArrays", "StaticArrays", "Statistics", "Unrolled"]
git-tree-sha1 = "7632911d7b09fb3e067984626b07b3eb1113e55e"
git-tree-sha1 = "a5ec4373072c912adc7e5c6f6a570268adf7a8bf"
repo-rev = "as/limiter-template"
repo-url = "https://github.com/CliMA/ClimaCore.jl.git"
uuid = "d414da3d-4745-48bb-8d80-42e94e092884"
version = "0.14.20"
weakdeps = ["CUDA", "Krylov"]
Expand Down Expand Up @@ -2654,7 +2656,7 @@ version = "0.15.2+0"
[[deps.libblastrampoline_jll]]
deps = ["Artifacts", "Libdl"]
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
version = "5.11.0+0"
version = "5.8.0+1"

[[deps.libfdk_aac_jll]]
deps = ["Artifacts", "JLLWrappers", "Libdl"]
Expand Down
11 changes: 11 additions & 0 deletions src/prognostic_equations/implicit/implicit_tendency.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ vertical_transport!(
::Val{:first_order},
ᶜdivᵥ,
) = @. ᶜρχₜ += -coeff * (ᶜdivᵥ(ᶠwinterp(ᶜJ, ᶜρ) * ᶠupwind1(ᶠu³, ᶜχ)))
vertical_transport!(
coeff,
ᶜρχₜ,
ᶜJ,
ᶜρ,
ᶠu³,
ᶜχ,
dt,
::Val{:vanleer_limiter},
ᶜdivᵥ,
) = @. ᶜρχₜ += -coeff * (ᶜdivᵥ(ᶠwinterp(ᶜJ, ᶜρ) * ᶠlin_vanleer(ᶠu³, ᶜχ, dt)))
vertical_transport!(
coeff,
ᶜρχₜ,
Expand Down
5 changes: 5 additions & 0 deletions src/utils/abbreviations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ const ᶠfct_zalesak = Operators.FCTZalesak(
bottom = Operators.FirstOrderOneSided(),
top = Operators.FirstOrderOneSided(),
)
const ᶠlin_vanleer = Operators.LinVanLeerC2F(
bottom = Operators.FirstOrderOneSided(),
top = Operators.FirstOrderOneSided(),
method = Operators.Mono5(),
)

const ᶜinterp_matrix = MatrixFields.operator_matrix(ᶜinterp)
const ᶜleft_bias_matrix = MatrixFields.operator_matrix(ᶜleft_bias)
Expand Down

0 comments on commit 779fe9a

Please sign in to comment.