Skip to content

Commit

Permalink
only temperature for dry model
Browse files Browse the repository at this point in the history
  • Loading branch information
milankl committed Dec 6, 2024
1 parent 6dc6bcf commit d88349f
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/physics/convection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ function (SP::NoSurfacePerturbation)(
return temp[nlayers], humid[nlayers]
end

# only return temperature for primitive dry model
function (SP::NoSurfacePerturbation)(
column::ColumnVariables,
model::PrimitiveDry,
)
(; temp, nlayers) = column
return temp[nlayers]
end

abstract type AbstractConvection <: AbstractParameterization end

export NoConvection
Expand Down Expand Up @@ -343,8 +352,8 @@ function convection!(
temp_ref_profile = column.a # temperature [K] reference profile to adjust to

# CONVECTIVE CRITERIA AND FIRST GUESS RELAXATION
# force conversion to NF here
temp_parcel = convert.(NF, DBM.surface_temp(column, model))
# force conversion to NF here, add "," to ignore additional returns like humidity
temp_parcel, = convert.(NF, DBM.surface_temp(column, model))
level_zero_buoyancy = dry_adiabat!(temp_ref_profile,
temp,
temp_parcel,
Expand Down

0 comments on commit d88349f

Please sign in to comment.