-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update .gitignore * Adding new runid Changed the id and path of the output to match the way SpeedyWeather does it Matching the upstream repo * add Manifest.toml to .gitignore * Fixing the output function on main Just correcting the error with path versus outpath, restoring the name initpath in Parameters, all else the same * adding what's needed to move everything to a single structure Modified everything so that only a single structure is needed * removing redundant functions * removing /my_scripts from gitignore * removing the checkpointed time integration for now * re-added a function definition * Update ghost_points.jl * removing manifest file * minor changes based on comments * Found one place where I used `T` and should have used `Tprog` * Reverting the changes to default parameters, leaving the addition of some adjoint/checkpointing stuff. I can maybe delete this later if needed --------- Co-authored-by: Milan Klöwer <milankloewer@gmx.de>
- Loading branch information
1 parent
cd0cb6a
commit 033239f
Showing
10 changed files
with
214 additions
and
89 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
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
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
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
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
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,6 +1,30 @@ | ||
struct ModelSetup{T<:AbstractFloat,Tprog<:AbstractFloat} | ||
mutable struct PrognosticVars{T<:AbstractFloat} | ||
u::Array{T,2} # u-velocity | ||
v::Array{T,2} # v-velocity | ||
η::Array{T,2} # sea surface height / interface displacement | ||
sst::Array{T,2} # tracer / sea surface temperature | ||
end | ||
|
||
struct DiagnosticVars{T,Tprog} | ||
RungeKutta::RungeKuttaVars{Tprog} | ||
Tendencies::TendencyVars{Tprog} | ||
VolumeFluxes::VolumeFluxVars{T} | ||
Vorticity::VorticityVars{T} | ||
Bernoulli::BernoulliVars{T} | ||
Bottomdrag::BottomdragVars{T} | ||
ArakawaHsu::ArakawaHsuVars{T} | ||
Laplace::LaplaceVars{T} | ||
Smagorinsky::SmagorinskyVars{T} | ||
SemiLagrange::SemiLagrangeVars{T} | ||
PrognosticVarsRHS::PrognosticVars{T} # low precision version | ||
end | ||
|
||
mutable struct ModelSetup{T<:AbstractFloat,Tprog<:AbstractFloat} | ||
parameters::Parameter | ||
grid::Grid{T,Tprog} | ||
constants::Constants{T,Tprog} | ||
forcing::Forcing{T} | ||
end | ||
Prog::PrognosticVars{Tprog} | ||
Diag::DiagnosticVars{T, Tprog} | ||
t::Int # SW: I believe this has something to do with Checkpointing, need to verify | ||
end |
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
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
Oops, something went wrong.