Skip to content

Commit 3c6eac1

Browse files
authored
Merge pull request #3952 from CliMA/zs/get_wstar
remove get_wstar function
2 parents 979e1f5 + a5aa690 commit 3c6eac1

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

src/ClimaAtmos.jl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ include(joinpath("cache", "cloud_fraction.jl"))
4545
include(joinpath("cache", "surface_albedo.jl"))
4646

4747
include(joinpath("initial_conditions", "InitialConditions.jl"))
48-
include(
49-
joinpath(
50-
"parameterized_tendencies",
51-
"turbulence_convection",
52-
"tc_functions.jl",
53-
),
54-
)
5548
include(joinpath("surface_conditions", "SurfaceConditions.jl"))
5649
include(joinpath("utils", "discrete_hydrostatic_balance.jl"))
5750

src/parameterized_tendencies/turbulence_convection/tc_functions.jl

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/surface_conditions/SurfaceConditions.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import ..gcm_driven_timeseries
1313

1414
import ..CT1, ..CT2, ..C12, ..CT12, ..C3
1515
import ..unit_basis_vector_data, ..projected_vector_data
16-
import ..get_wstar
1716

1817
import ClimaCore: DataLayouts, Geometry, Fields
1918
import ClimaCore.Geometry:

src/surface_conditions/surface_conditions.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,11 @@ function surface_state_to_conditions(
309309
ts,
310310
SF.PointValueScheme(),
311311
)
312-
gustiness = get_wstar(buoyancy_flux)
313312
# TODO: We are assuming that the average mixed layer depth is
314313
# always 1000 meters. This needs to be adjusted for deep
315314
# convective cases like TRMM.
315+
zi = FT(1000)
316+
gustiness = cbrt(max(buoyancy_flux * zi, 0))
316317
else
317318
gustiness = surf_state.gustiness
318319
end

0 commit comments

Comments
 (0)