Skip to content

Commit 492b611

Browse files
committed
Update to CloudMicrophysics v0.23
1 parent d0a51c1 commit 492b611

File tree

6 files changed

+104
-67
lines changed

6 files changed

+104
-67
lines changed

.buildkite/Manifest-v1.11.toml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ version = "0.30.3"
370370

371371
[[deps.ClimaComms]]
372372
deps = ["Adapt", "Logging", "LoggingExtras"]
373-
git-tree-sha1 = "2a96bdd5339bdcd903867a46d1f00110f7b890cc"
373+
git-tree-sha1 = "75b9d1a3b4e3efa2cbbae2eb7b52f14c0b38ccf0"
374374
uuid = "3a4d1b5c-c61d-41fd-a00a-5873ba7a1b0d"
375-
version = "0.6.7"
375+
version = "0.6.8"
376376
weakdeps = ["CUDA", "MPI"]
377377

378378
[deps.ClimaComms.extensions]
@@ -452,9 +452,9 @@ version = "0.1.13"
452452

453453
[[deps.CloudMicrophysics]]
454454
deps = ["ClimaParams", "DocStringExtensions", "ForwardDiff", "HCubature", "LazyArtifacts", "LogExpFunctions", "QuadGK", "RootSolvers", "SpecialFunctions", "Thermodynamics"]
455-
git-tree-sha1 = "8f1965abc1a35d3b08f9d95d19c2a59b647fed9b"
455+
git-tree-sha1 = "a1570cd66f2d389ac02b2451ce2082a4a8e8c0fe"
456456
uuid = "6a9e3e04-43cd-43ba-94b9-e8782df3c71b"
457-
version = "0.22.13"
457+
version = "0.23.0"
458458

459459
[deps.CloudMicrophysics.extensions]
460460
EmulatorModelsExt = ["DataFrames", "MLJ"]
@@ -560,9 +560,9 @@ uuid = "2569d6c7-a4a2-43d3-a901-331e8e4be471"
560560
version = "0.2.3"
561561

562562
[[deps.ConstructionBase]]
563-
git-tree-sha1 = "76219f1ed5771adbb096743bff43fb5fdd4c1157"
563+
git-tree-sha1 = "b4b092499347b18a015186eae3042f72267106cb"
564564
uuid = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
565-
version = "1.5.8"
565+
version = "1.6.0"
566566
weakdeps = ["IntervalSets", "LinearAlgebra", "StaticArrays"]
567567

568568
[deps.ConstructionBase.extensions]
@@ -711,9 +711,9 @@ version = "0.25.120"
711711
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
712712

713713
[[deps.DocStringExtensions]]
714-
git-tree-sha1 = "e7b7e6f178525d17c720ab9c081e4ef04429f860"
714+
git-tree-sha1 = "7442a5dfe1ebb773c29cc2962a8980f47221d76c"
715715
uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
716-
version = "0.9.4"
716+
version = "0.9.5"
717717

718718
[[deps.Downloads]]
719719
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
@@ -949,9 +949,9 @@ version = "0.2.0"
949949

950950
[[deps.GPUCompiler]]
951951
deps = ["ExprTools", "InteractiveUtils", "LLVM", "Libdl", "Logging", "PrecompileTools", "Preferences", "Scratch", "Serialization", "TOML", "Tracy", "UUIDs"]
952-
git-tree-sha1 = "fd1f587ca5dd2d52d990fbd9ff0dded736b51f1d"
952+
git-tree-sha1 = "38e96dd44b8b1db92c81c6eb11ac39d207aa83d5"
953953
uuid = "61eb1bfa-7361-4325-ad38-22787b887f55"
954-
version = "1.5.1"
954+
version = "1.5.2"
955955

956956
[[deps.GPUToolbox]]
957957
git-tree-sha1 = "15d8b0f5a6dca9bf8c02eeaf6687660dafa638d0"
@@ -1302,9 +1302,9 @@ version = "0.4.10"
13021302

13031303
[[deps.KernelAbstractions]]
13041304
deps = ["Adapt", "Atomix", "InteractiveUtils", "MacroTools", "PrecompileTools", "Requires", "StaticArrays", "UUIDs"]
1305-
git-tree-sha1 = "80d268b2f4e396edc5ea004d1e0f569231c71e9e"
1305+
git-tree-sha1 = "602c0e9efadafb8abfe8281c3fbf9cf6f406fc03"
13061306
uuid = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
1307-
version = "0.9.34"
1307+
version = "0.9.35"
13081308
weakdeps = ["EnzymeCore", "LinearAlgebra", "SparseArrays"]
13091309

13101310
[deps.KernelAbstractions.extensions]
@@ -2162,9 +2162,9 @@ version = "0.1.0"
21622162

21632163
[[deps.SciMLBase]]
21642164
deps = ["ADTypes", "Accessors", "Adapt", "ArrayInterface", "CommonSolve", "ConstructionBase", "Distributed", "DocStringExtensions", "EnumX", "FunctionWrappersWrappers", "IteratorInterfaceExtensions", "LinearAlgebra", "Logging", "Markdown", "Moshi", "PrecompileTools", "Preferences", "Printf", "RecipesBase", "RecursiveArrayTools", "Reexport", "RuntimeGeneratedFunctions", "SciMLOperators", "SciMLStructures", "StaticArraysCore", "Statistics", "SymbolicIndexingInterface"]
2165-
git-tree-sha1 = "ce947672206f6a3a2bee1017c690cfd5fd82d897"
2165+
git-tree-sha1 = "d7bef263e23c7f5392071e4538b1949cee7ae458"
21662166
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
2167-
version = "2.96.0"
2167+
version = "2.99.0"
21682168

21692169
[deps.SciMLBase.extensions]
21702170
SciMLBaseChainRulesCoreExt = "ChainRulesCore"
@@ -2468,9 +2468,9 @@ version = "1.0.1"
24682468

24692469
[[deps.Tables]]
24702470
deps = ["DataAPI", "DataValueInterfaces", "IteratorInterfaceExtensions", "OrderedCollections", "TableTraits"]
2471-
git-tree-sha1 = "598cd7c1f68d1e205689b1c2fe65a9f85846f297"
2471+
git-tree-sha1 = "f2c1efbc8f3a609aadf318094f8fc5204bdaf344"
24722472
uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
2473-
version = "1.12.0"
2473+
version = "1.12.1"
24742474

24752475
[[deps.Tar]]
24762476
deps = ["ArgTools", "SHA"]
@@ -2529,10 +2529,10 @@ uuid = "8290d209-cae3-49c0-8002-c8c24d57dab5"
25292529
version = "0.5.4"
25302530

25312531
[[deps.TiffImages]]
2532-
deps = ["ColorTypes", "DataStructures", "DocStringExtensions", "FileIO", "FixedPointNumbers", "IndirectArrays", "Inflate", "Mmap", "OffsetArrays", "PkgVersion", "ProgressMeter", "SIMD", "UUIDs"]
2533-
git-tree-sha1 = "f21231b166166bebc73b99cea236071eb047525b"
2532+
deps = ["ColorTypes", "DataStructures", "DocStringExtensions", "FileIO", "FixedPointNumbers", "IndirectArrays", "Inflate", "Mmap", "OffsetArrays", "PkgVersion", "PrecompileTools", "ProgressMeter", "SIMD", "UUIDs"]
2533+
git-tree-sha1 = "02aca429c9885d1109e58f400c333521c13d48a0"
25342534
uuid = "731e570b-9d59-4bfa-96dc-6df516fadf69"
2535-
version = "0.11.3"
2535+
version = "0.11.4"
25362536

25372537
[[deps.TimerOutputs]]
25382538
deps = ["ExprTools", "Printf"]
@@ -2594,14 +2594,16 @@ version = "0.4.1"
25942594

25952595
[[deps.Unitful]]
25962596
deps = ["Dates", "LinearAlgebra", "Random"]
2597-
git-tree-sha1 = "d62610ec45e4efeabf7032d67de2ffdea8344bed"
2597+
git-tree-sha1 = "d2282232f8a4d71f79e85dc4dd45e5b12a6297fb"
25982598
uuid = "1986cc42-f94f-5a68-af5c-568840ba703d"
2599-
version = "1.22.1"
2600-
weakdeps = ["ConstructionBase", "InverseFunctions"]
2599+
version = "1.23.1"
2600+
weakdeps = ["ConstructionBase", "ForwardDiff", "InverseFunctions", "Printf"]
26012601

26022602
[deps.Unitful.extensions]
26032603
ConstructionBaseUnitfulExt = "ConstructionBase"
2604+
ForwardDiffExt = "ForwardDiff"
26042605
InverseFunctionsUnitfulExt = "InverseFunctions"
2606+
PrintfExt = "Printf"
26052607

26062608
[[deps.UnrolledUtilities]]
26072609
git-tree-sha1 = "a9ebeb4308eaacfe49f71594c0fe38c0c655734f"

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ClimaDiagnostics = "0.2.12"
4646
ClimaParams = "0.10.31"
4747
ClimaTimeSteppers = "0.8.2"
4848
ClimaUtilities = "0.1.22"
49-
CloudMicrophysics = "0.22.9"
49+
CloudMicrophysics = "0.23.0"
5050
Dates = "1"
5151
Insolation = "0.9.2"
5252
Interpolations = "0.15.1, 0.16"

src/cache/diagnostic_edmf_precomputed_quantities.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,8 @@ NVTX.@annotate function set_diagnostic_edmf_precomputed_quantities_do_integral!(
324324
(; ᶠu³⁰, ᶜK⁰, ᶜtke⁰) = p.precomputed
325325

326326
if precip_model isa Microphysics1Moment
327+
ᶜq_liqʲs = p.precomputed.ᶜq_liqʲs
328+
ᶜq_iceʲs = p.precomputed.ᶜq_iceʲs
327329
q_rai = p.precomputed.ᶜqᵣ
328330
q_sno = p.precomputed.ᶜqₛ
329331
end
@@ -416,6 +418,8 @@ NVTX.@annotate function set_diagnostic_edmf_precomputed_quantities_do_integral!(
416418
ᶜS_e_totʲ = p.precomputed.ᶜSeₜᵖʲs.:($j)
417419
ᶜSᵖ = p.scratch.ᶜtemp_scalar
418420
ᶜSᵖ_snow = p.scratch.ᶜtemp_scalar_2
421+
ᶜq_liqʲ = ᶜq_liqʲs.:($j)
422+
ᶜq_iceʲ = ᶜq_iceʲs.:($j)
419423
end
420424

421425
ρaʲ_level = Fields.field_values(Fields.level(ᶜρaʲ, i))
@@ -467,6 +471,10 @@ NVTX.@annotate function set_diagnostic_edmf_precomputed_quantities_do_integral!(
467471
Sᵖ_prev_level = Fields.field_values(Fields.level(ᶜSᵖ, i - 1))
468472
Sᵖ_snow_prev_level =
469473
Fields.field_values(Fields.level(ᶜSᵖ_snow, i - 1))
474+
q_liqʲ_prev_level =
475+
Fields.field_values(Fields.level(ᶜq_liqʲ, i - 1))
476+
q_iceʲ_prev_level =
477+
Fields.field_values(Fields.level(ᶜq_iceʲ, i - 1))
470478
end
471479

472480
tke_prev_level = Fields.field_values(Fields.level(ᶜtke⁰, i - 1))
@@ -580,6 +588,9 @@ NVTX.@annotate function set_diagnostic_edmf_precomputed_quantities_do_integral!(
580588
S_q_snoʲ_prev_level,
581589
S_e_totʲ_prev_level,
582590
ρʲ_prev_level,
591+
q_totʲ_prev_level,
592+
q_liqʲ_prev_level,
593+
q_iceʲ_prev_level,
583594
q_rai_prev_level,
584595
q_sno_prev_level,
585596
tsʲ_prev_level,

src/cache/precipitation_precomputed_quantities.jl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function set_precipitation_velocities!(
125125
)
126126
@. ᶜwₛ = CM1.terminal_velocity(cm1p.ps, cm1p.tv.snow, Y.c.ρ, q_sno)
127127
# compute sedimentation velocity for cloud condensate [m/s]
128-
# TODO sedimentation velocities of cloud condensates are based
128+
# TODO sedimentation velocities of cloud condensates are based
129129
# on the 1M scheme. Sedimentation velocity of cloud number concentration
130130
# is equal to that of the mass.
131131
@. ᶜwnₗ =
@@ -254,7 +254,7 @@ function set_precipitation_cache!(Y, p, ::Microphysics1Moment, _)
254254
(; ᶜts, ᶜwᵣ, ᶜwₛ, ᶜu) = p.precomputed
255255
(; ᶜSqₗᵖ, ᶜSqᵢᵖ, ᶜSqᵣᵖ, ᶜSqₛᵖ) = p.precomputed
256256

257-
(; q_rai, q_sno) = p.precomputed.ᶜspecific
257+
(; q_tot, q_liq, q_ice, q_rai, q_sno) = p.precomputed.ᶜspecific
258258

259259
ᶜSᵖ = p.scratch.ᶜtemp_scalar
260260
ᶜSᵖ_snow = p.scratch.ᶜtemp_scalar_2
@@ -274,6 +274,9 @@ function set_precipitation_cache!(Y, p, ::Microphysics1Moment, _)
274274
ᶜSqᵣᵖ,
275275
ᶜSqₛᵖ,
276276
Y.c.ρ,
277+
q_tot,
278+
q_liq,
279+
q_ice,
277280
q_rai,
278281
q_sno,
279282
ᶜts,
@@ -288,6 +291,9 @@ function set_precipitation_cache!(Y, p, ::Microphysics1Moment, _)
288291
ᶜSqᵣᵖ,
289292
ᶜSqₛᵖ,
290293
Y.c.ρ,
294+
q_tot,
295+
q_liq,
296+
q_ice,
291297
q_rai,
292298
q_sno,
293299
ᶜts,

src/cache/prognostic_edmf_precomputed_quantities.jl

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ NVTX.@annotate function set_prognostic_edmf_precomputed_quantities_precipitation
606606

607607
(; ᶜSqₗᵖʲs, ᶜSqᵢᵖʲs, ᶜSqᵣᵖʲs, ᶜSqₛᵖʲs, ᶜρʲs, ᶜtsʲs) = p.precomputed
608608
(; ᶜSqₗᵖ⁰, ᶜSqᵢᵖ⁰, ᶜSqᵣᵖ⁰, ᶜSqₛᵖ⁰, ᶜρ⁰, ᶜts⁰) = p.precomputed
609-
(; ᶜq_liq⁰, ᶜq_ice⁰, ᶜq_rai⁰, ᶜq_sno⁰) = p.precomputed
609+
(; ᶜq_tot⁰, ᶜq_liq⁰, ᶜq_ice⁰, ᶜq_rai⁰, ᶜq_sno⁰) = p.precomputed
610610

611611
# TODO - can I re-use them between js and env?
612612
ᶜSᵖ = p.scratch.ᶜtemp_scalar
@@ -624,6 +624,9 @@ NVTX.@annotate function set_prognostic_edmf_precomputed_quantities_precipitation
624624
ᶜSqᵣᵖʲs.:($j),
625625
ᶜSqₛᵖʲs.:($j),
626626
ᶜρʲs.:($j),
627+
Y.c.sgsʲs.:($j).q_tot,
628+
Y.c.sgsʲs.:($j).q_liq,
629+
Y.c.sgsʲs.:($j).q_ice,
627630
Y.c.sgsʲs.:($j).q_rai,
628631
Y.c.sgsʲs.:($j).q_sno,
629632
ᶜtsʲs.:($j),
@@ -636,6 +639,9 @@ NVTX.@annotate function set_prognostic_edmf_precomputed_quantities_precipitation
636639
ᶜSqᵣᵖʲs.:($j),
637640
ᶜSqₛᵖʲs.:($j),
638641
ᶜρʲs.:($j),
642+
Y.c.sgsʲs.:($j).q_tot,
643+
Y.c.sgsʲs.:($j).q_liq,
644+
Y.c.sgsʲs.:($j).q_ice,
639645
Y.c.sgsʲs.:($j).q_rai,
640646
Y.c.sgsʲs.:($j).q_sno,
641647
ᶜtsʲs.:($j),
@@ -669,6 +675,9 @@ NVTX.@annotate function set_prognostic_edmf_precomputed_quantities_precipitation
669675
ᶜSqᵣᵖ⁰,
670676
ᶜSqₛᵖ⁰,
671677
ᶜρ⁰,
678+
ᶜq_tot⁰,
679+
ᶜq_liq⁰,
680+
ᶜq_ice⁰,
672681
ᶜq_rai⁰,
673682
ᶜq_sno⁰,
674683
ᶜts⁰,
@@ -681,6 +690,9 @@ NVTX.@annotate function set_prognostic_edmf_precomputed_quantities_precipitation
681690
ᶜSqᵣᵖ⁰,
682691
ᶜSqₛᵖ⁰,
683692
ᶜρ⁰,
693+
ᶜq_tot⁰,
694+
ᶜq_liq⁰,
695+
ᶜq_ice⁰,
684696
ᶜq_rai⁰,
685697
ᶜq_sno⁰,
686698
ᶜts⁰,

0 commit comments

Comments
 (0)