@@ -37,15 +37,17 @@ function compute_rsd!(
37
37
axes (state. f),
38
38
),
39
39
)
40
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
40
+ radiation_mode. deep_atmosphere &&
41
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
41
42
return out
42
43
else
43
44
out .= Fields. array2field (
44
45
cache. radiation. rrtmgp_model. face_sw_flux_dn,
45
46
axes (state. f),
46
47
)
47
48
@assert out != = nothing " Output field 'out' must not be `nothing` in this branch"
48
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
49
+ radiation_mode. deep_atmosphere &&
50
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
49
51
end
50
52
end
51
53
@@ -87,7 +89,8 @@ function compute_rsdt!(
87
89
nlevels + half,
88
90
),
89
91
)
90
- apply_geometric_scaling! (out, z_max, planet_radius, FT)
92
+ radiation_mode. deep_atmosphere &&
93
+ apply_geometric_scaling! (out, z_max, planet_radius, FT)
91
94
return out
92
95
else
93
96
out .= Fields. level (
@@ -97,7 +100,8 @@ function compute_rsdt!(
97
100
),
98
101
nlevels + half,
99
102
)
100
- apply_geometric_scaling! (out, z_max, planet_radius, FT)
103
+ radiation_mode. deep_atmosphere &&
104
+ apply_geometric_scaling! (out, z_max, planet_radius, FT)
101
105
end
102
106
end
103
107
@@ -180,14 +184,16 @@ function compute_rsu!(
180
184
axes (state. f),
181
185
),
182
186
)
183
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
187
+ radiation_mode. deep_atmosphere &&
188
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
184
189
return out
185
190
else
186
191
out .= Fields. array2field (
187
192
cache. radiation. rrtmgp_model. face_sw_flux_up,
188
193
axes (state. f),
189
194
)
190
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
195
+ radiation_mode. deep_atmosphere &&
196
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
191
197
end
192
198
end
193
199
@@ -229,7 +235,8 @@ function compute_rsut!(
229
235
nlevels + half,
230
236
),
231
237
)
232
- apply_geometric_scaling! (out, z_max, planet_radius, FT)
238
+ radiation_mode. deep_atmosphere &&
239
+ apply_geometric_scaling! (out, z_max, planet_radius, FT)
233
240
return out
234
241
else
235
242
out .= Fields. level (
@@ -239,7 +246,8 @@ function compute_rsut!(
239
246
),
240
247
nlevels + half,
241
248
)
242
- apply_geometric_scaling! (out, z_max, planet_radius, FT)
249
+ radiation_mode. deep_atmosphere &&
250
+ apply_geometric_scaling! (out, z_max, planet_radius, FT)
243
251
end
244
252
end
245
253
@@ -322,14 +330,16 @@ function compute_rld!(
322
330
axes (state. f),
323
331
),
324
332
)
325
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
333
+ radiation_mode. deep_atmosphere &&
334
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
326
335
return out
327
336
else
328
337
out .= Fields. array2field (
329
338
cache. radiation. rrtmgp_model. face_lw_flux_dn,
330
339
axes (state. f),
331
340
)
332
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
341
+ radiation_mode. deep_atmosphere &&
342
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
333
343
end
334
344
end
335
345
@@ -412,14 +422,16 @@ function compute_rlu!(
412
422
axes (state. f),
413
423
),
414
424
)
415
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
425
+ radiation_mode. deep_atmosphere &&
426
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
416
427
return out
417
428
else
418
429
out .= Fields. array2field (
419
430
cache. radiation. rrtmgp_model. face_lw_flux_up,
420
431
axes (state. f),
421
432
)
422
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
433
+ radiation_mode. deep_atmosphere &&
434
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
423
435
end
424
436
end
425
437
@@ -461,7 +473,8 @@ function compute_rlut!(
461
473
nlevels + half,
462
474
),
463
475
)
464
- apply_geometric_scaling! (out, z_max, planet_radius, FT)
476
+ radiation_mode. deep_atmosphere &&
477
+ apply_geometric_scaling! (out, z_max, planet_radius, FT)
465
478
return out
466
479
else
467
480
out .= Fields. level (
@@ -471,7 +484,8 @@ function compute_rlut!(
471
484
),
472
485
nlevels + half,
473
486
)
474
- apply_geometric_scaling! (out, z_max, planet_radius, FT)
487
+ radiation_mode. deep_atmosphere &&
488
+ apply_geometric_scaling! (out, z_max, planet_radius, FT)
475
489
end
476
490
end
477
491
@@ -554,14 +568,16 @@ function compute_rsdcs!(
554
568
axes (state. f),
555
569
),
556
570
)
557
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
571
+ radiation_mode. deep_atmosphere &&
572
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
558
573
return out
559
574
else
560
575
out .= Fields. array2field (
561
576
cache. radiation. rrtmgp_model. face_clear_sw_flux_dn,
562
577
axes (state. f),
563
578
)
564
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
579
+ radiation_mode. deep_atmosphere &&
580
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
565
581
end
566
582
end
567
583
@@ -644,14 +660,16 @@ function compute_rsucs!(
644
660
axes (state. f),
645
661
),
646
662
)
647
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
663
+ radiation_mode. deep_atmosphere &&
664
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
648
665
return out
649
666
else
650
667
out .= Fields. array2field (
651
668
cache. radiation. rrtmgp_model. face_clear_sw_flux_up,
652
669
axes (state. f),
653
670
)
654
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
671
+ radiation_mode. deep_atmosphere &&
672
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
655
673
end
656
674
end
657
675
@@ -693,7 +711,8 @@ function compute_rsutcs!(
693
711
nlevels + half,
694
712
),
695
713
)
696
- apply_geometric_scaling! (out, z_max, planet_radius, FT)
714
+ radiation_mode. deep_atmosphere &&
715
+ apply_geometric_scaling! (out, z_max, planet_radius, FT)
697
716
return out
698
717
else
699
718
out .= Fields. level (
@@ -703,7 +722,8 @@ function compute_rsutcs!(
703
722
),
704
723
nlevels + half,
705
724
)
706
- apply_geometric_scaling! (out, z_max, planet_radius, FT)
725
+ radiation_mode. deep_atmosphere &&
726
+ apply_geometric_scaling! (out, z_max, planet_radius, FT)
707
727
end
708
728
end
709
729
@@ -787,14 +807,16 @@ function compute_rldcs!(
787
807
axes (state. f),
788
808
),
789
809
)
790
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
810
+ radiation_mode. deep_atmosphere &&
811
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
791
812
return out
792
813
else
793
814
out .= Fields. array2field (
794
815
cache. radiation. rrtmgp_model. face_clear_lw_flux_dn,
795
816
axes (state. f),
796
817
)
797
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
818
+ radiation_mode. deep_atmosphere &&
819
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
798
820
end
799
821
end
800
822
@@ -877,14 +899,16 @@ function compute_rlucs!(
877
899
axes (state. f),
878
900
),
879
901
)
880
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
902
+ radiation_mode. deep_atmosphere &&
903
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
881
904
return out
882
905
else
883
906
out .= Fields. array2field (
884
907
cache. radiation. rrtmgp_model. face_clear_lw_flux_up,
885
908
axes (state. f),
886
909
)
887
- apply_geometric_scaling! (out, z_lev, planet_radius, FT)
910
+ radiation_mode. deep_atmosphere &&
911
+ apply_geometric_scaling! (out, z_lev, planet_radius, FT)
888
912
end
889
913
end
890
914
@@ -926,7 +950,8 @@ function compute_rlutcs!(
926
950
nlevels + half,
927
951
),
928
952
)
929
- apply_geometric_scaling! (out, z_max, planet_radius, FT)
953
+ radiation_mode. deep_atmosphere &&
954
+ apply_geometric_scaling! (out, z_max, planet_radius, FT)
930
955
return out
931
956
else
932
957
out .= Fields. level (
@@ -936,7 +961,8 @@ function compute_rlutcs!(
936
961
),
937
962
nlevels + half,
938
963
)
939
- apply_geometric_scaling! (out, z_max, planet_radius, FT)
964
+ radiation_mode. deep_atmosphere &&
965
+ apply_geometric_scaling! (out, z_max, planet_radius, FT)
940
966
end
941
967
end
942
968
0 commit comments