-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
365 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,40 @@ | ||
module Diagnostics | ||
|
||
import ClimaCore: Fields, Geometry, InputOutput, Meshes, Spaces | ||
import LinearAlgebra: dot | ||
|
||
import ClimaCore: Fields, Geometry, InputOutput, Meshes, Spaces, Operators | ||
import ClimaCore.Utilities: half | ||
import Thermodynamics as TD | ||
|
||
import ..AtmosModel | ||
import ..call_every_n_steps | ||
import ..Parameters as CAP | ||
|
||
import ..unit_basis_vector_data | ||
|
||
# moisture_model | ||
import ..DryModel | ||
import ..EquilMoistModel | ||
import ..NonEquilMoistModel | ||
|
||
# energy_form | ||
import ..TotalEnergy | ||
|
||
# turbconv_model | ||
import ..EDMFX | ||
import ..DiagnosticEDMFX | ||
|
||
# Abbreviations (following utils/abbreviations.jl) | ||
const curlₕ = Operators.Curl() | ||
const CT3 = Geometry.Contravariant3Vector | ||
const ᶜinterp = Operators.InterpolateF2C() | ||
# TODO: Implement proper extrapolation instead of simply reusing the first | ||
# interior value at the surface. | ||
const ᶠinterp = Operators.InterpolateC2F( | ||
bottom = Operators.Extrapolate(), | ||
top = Operators.Extrapolate(), | ||
) | ||
|
||
include("diagnostics.jl") | ||
include("writers.jl") | ||
end |
Oops, something went wrong.