Skip to content

Commit cacf9d7

Browse files
authored
Merge pull request #3692 from CliMA/aj/precip_cleanup
Move precipitation cache to precomputed quantities
2 parents 09770a4 + 8800997 commit cacf9d7

File tree

12 files changed

+418
-427
lines changed

12 files changed

+418
-427
lines changed

.buildkite/Manifest-v1.11.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ version = "0.5.13"
350350
deps = ["Adapt", "ArgParse", "Artifacts", "AtmosphericProfilesLibrary", "ClimaComms", "ClimaCore", "ClimaDiagnostics", "ClimaParams", "ClimaTimeSteppers", "ClimaUtilities", "CloudMicrophysics", "Dates", "DiffEqBase", "FastGaussQuadrature", "Insolation", "Interpolations", "LazyArtifacts", "LazyBroadcast", "LinearAlgebra", "Logging", "NCDatasets", "NVTX", "NullBroadcasts", "RRTMGP", "Random", "SciMLBase", "StaticArrays", "Statistics", "SurfaceFluxes", "Thermodynamics", "UnrolledUtilities", "YAML"]
351351
path = ".."
352352
uuid = "b2c96348-7fb7-4fe0-8da9-78d88439e717"
353-
version = "0.28.6"
353+
version = "0.29.0"
354354

355355
[[deps.ClimaComms]]
356356
deps = ["Adapt", "Logging", "LoggingExtras"]

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ ClimaAtmos.jl Release Notes
44
main
55
-------
66

7+
v0.29.0
8+
-------
9+
10+
### Remove precipitation from cache
11+
And move all the fields into precomputed
712

813
v0.28.6
914
-------

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClimaAtmos"
22
uuid = "b2c96348-7fb7-4fe0-8da9-78d88439e717"
33
authors = ["Climate Modeling Alliance"]
4-
version = "0.28.6"
4+
version = "0.29.0"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/cache/cache.jl

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ struct AtmosCache{
99
PREC,
1010
SCRA,
1111
HYPE,
12-
PR,
1312
EXTFORCING,
1413
NONGW,
1514
ORGW,
@@ -52,7 +51,6 @@ struct AtmosCache{
5251
hyperdiff::HYPE
5352

5453
"""Additional parameters used by the various tendencies"""
55-
precipitation::PR
5654
external_forcing::EXTFORCING
5755
non_orographic_gravity_wave::NONGW
5856
orographic_gravity_wave::ORGW
@@ -147,8 +145,16 @@ function build_cache(
147145
scratch = temporary_quantities(Y, atmos)
148146

149147
precomputed = precomputed_quantities(Y, atmos)
150-
precomputing_arguments =
151-
(; atmos, core, params, sfc_setup, precomputed, scratch, dt)
148+
precomputing_arguments = (;
149+
atmos,
150+
core,
151+
params,
152+
sfc_setup,
153+
precomputed,
154+
scratch,
155+
dt,
156+
conservation_check,
157+
)
152158

153159
# Coupler compatibility
154160
isnothing(precomputing_arguments.sfc_setup) &&
@@ -168,7 +174,6 @@ function build_cache(
168174
) : ()
169175

170176
hyperdiff = hyperdiffusion_cache(Y, atmos)
171-
precipitation = precipitation_cache(Y, atmos)
172177
external_forcing = external_forcing_cache(Y, atmos, params)
173178
non_orographic_gravity_wave = non_orographic_gravity_wave_cache(Y, atmos)
174179
orographic_gravity_wave = orographic_gravity_wave_cache(Y, atmos)
@@ -186,7 +191,6 @@ function build_cache(
186191
precomputed,
187192
scratch,
188193
hyperdiff,
189-
precipitation,
190194
external_forcing,
191195
non_orographic_gravity_wave,
192196
orographic_gravity_wave,

0 commit comments

Comments
 (0)