-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor sea ice model #32
Conversation
I was thinking to convert also |
src/SeaIceThermodynamics/HeatBoundaryConditions/bottom_heat_boundary_conditions.jl
Outdated
Show resolved
Hide resolved
##### A bit of thermodynamics to start the day | ||
##### | ||
|
||
abstract type AbstractSeaIceThermodynamics end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need an abstract type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not necessary at the moment that we have only one thermodynamical model. I can remove it now and we can reintroduce it when we have more models
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also we only need an abstract type if we use it for dispatch somehow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this addressed?
src/SeaIceThermodynamics/SlabThermodynamics/SlabThermodynamics.jl
Outdated
Show resolved
Hide resolved
src/sea_ice_model.jl
Outdated
ice_thickness :: IT | ||
ice_concentration :: IC | ||
# Thermodynamics | ||
sea_ice_thermodynamics :: TD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pick ice
or sea_ice
. now we have ice_thickness
but sea_ice_thermodynamics
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may make sense to use sea_ice
to refer to ice that is a mixture of brine and pure ice (eg with a salinity) and then to reserve ice
for pure ice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simone-silvestri did you address this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep
|
||
# TODO: Fix this after this PR | ||
# include("EnthalpyMethodThermodynamics.jl") | ||
include("SlabThermodynamics/SlabThermodynamics.jl") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest using a flatter structure rather than another submodule here
src/SeaIceThermodynamics/SlabThermodynamics/slab_thermodynamics_tendencies.jl
Outdated
Show resolved
Hide resolved
Comments should be addressed and this should be ready to merge if it were not for these docs... @navidcy can you help me out a second? Seems like I am missing something. |
This shoud be ready to merge |
This PR is an attempt to refactor the ClimaSeaIce package following #31 to have a
SeaIceModel
that contains athermodynamics
anddynamics
fieldThis is necessary before starting to include a dynamics module.
cc @glwagner