Skip to content

Commit

Permalink
Add core diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Sep 13, 2023
1 parent 79b78ca commit 023676f
Show file tree
Hide file tree
Showing 2 changed files with 365 additions and 19 deletions.
23 changes: 22 additions & 1 deletion src/diagnostics/Diagnostics.jl
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
Loading

0 comments on commit 023676f

Please sign in to comment.