Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused ref state properties #376

Merged
merged 1 commit into from
Oct 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/ReferenceState.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@
param_set::PS,
Stats::NetCDFIO_Stats;
Pg::FT,
Tg::FT,
qtg::FT
) where {FT}

The reference profiles, given
- `grid` the grid
- `param_set` the parameter set
- `Stats` the NC file handler struct
- `Pg` pressure at the ground
- `Tg` temperature at the ground
- `qtg` total specific humidity at the ground
"""
struct ReferenceState{PS, A1}
param_set::PS
Expand All @@ -29,8 +25,6 @@ struct ReferenceState{PS, A1}
rho0::A1
rho0_half::A1
Pg::Float64
Tg::Float64
qtg::Float64
end

function ReferenceState(grid::Grid, param_set::PS, Stats::NetCDFIO_Stats; Pg::FT, Tg::FT, qtg::FT) where {PS, FT}
Expand Down Expand Up @@ -84,6 +78,6 @@ function ReferenceState(grid::Grid, param_set::PS, Stats::NetCDFIO_Stats; Pg::FT
rho0 = 1 ./ alpha0
rho0_half = 1 ./ alpha0_half

args = (param_set, p0, p0_half, alpha0, alpha0_half, rho0, rho0_half, Pg, Tg, qtg)
args = (param_set, p0, p0_half, alpha0, alpha0_half, rho0, rho0_half, Pg)
return ReferenceState{PS, typeof(p0)}(args...)
end