Skip to content

Commit 3a07385

Browse files
committed
run formatter
1 parent ca44fca commit 3a07385

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

src/standalone/Vegetation/canopy_parameterizations.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,10 +1221,7 @@ end
12211221
is taken to be constant (1000.0 kg/m^3). Otherwise we use an EOS to compute the density
12221222
at the given temperature and pressure.
12231223
"""
1224-
function compute_viscosity_ratio(
1225-
T::FT,
1226-
p::FT,
1227-
) where {FT}
1224+
function compute_viscosity_ratio(T::FT, p::FT) where {FT}
12281225
η25 = viscosity_h2o(FT(298.15), FT(101325.0))
12291226
ηstar = viscosity_h2o(T, p) / η25
12301227
return FT(ηstar)

src/standalone/Vegetation/pmodel.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
export PModelParameters,
2-
PModelConstants,
3-
compute_full_pmodel_outputs,
4-
PModel
1+
export PModelParameters, PModelConstants, compute_full_pmodel_outputs, PModel
52

63
"""
74
PModelParameters{FT<:AbstractFloat}
@@ -202,7 +199,7 @@ function compute_full_pmodel_outputs(
202199
ca::FT,
203200
P_air::FT,
204201
VPD::FT,
205-
βm::FT
202+
βm::FT,
206203
) where {FT}
207204
# Unpack parameters
208205
(; cstar, β, ϕc, ϕ0, ϕa0, ϕa1, ϕa2) = parameters

test/standalone/Vegetation/test_pmodel.jl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,20 @@ end
201201
I_abs = FT(inputs["fapar"]) * FT(inputs["ppfd"])
202202
βm =
203203
Bool(inputs["do_soilmstress"]) ?
204-
quadratic_soil_moisture_stress(FT(inputs["soilm"])) : FT(1.0)
204+
quadratic_soil_moisture_stress(FT(inputs["soilm"])) :
205+
FT(1.0)
205206

206207
# Run the model
207-
outputs =
208-
compute_full_pmodel_outputs(parameters, constants,
209-
T_canopy, I_abs, ca, P_air, VPD, βm)
208+
outputs = compute_full_pmodel_outputs(
209+
parameters,
210+
constants,
211+
T_canopy,
212+
I_abs,
213+
ca,
214+
P_air,
215+
VPD,
216+
βm,
217+
)
210218

211219
# Compare each output field
212220
for key in keys(ref_outputs_typed)

0 commit comments

Comments
 (0)