Changeset 26728


Ignore:
Timestamp:
12/09/21 11:10:33 (3 years ago)
Author:
Mathieu Morlighem
Message:

CHG: some reorg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/jl/usr/classes.jl

    r26727 r26728  
    11using Printf
    22
     3#Model fields
     4#Mesh {{{
    35abstract type AbstractMesh end
    46mutable struct Mesh2dTriangle <: AbstractMesh
     
    3133        return Mesh3dPrism( 0, 0, 0, Vector{Float64}(undef,0), Vector{Float64}(undef,0), Vector{Float64}(undef,0), Matrix{Int64}(undef, 0, 0), Matrix{Int64}(undef, 0, 0), Vector{Bool}(undef,0))
    3234end# }}}
    33 
     35#}}}
     36#Geometry{{{
    3437mutable struct Geometry
    3538        surface::Vector{Float64}
     
    4144        return Geometry( Vector{Float64}(undef,0), Vector{Float64}(undef,0), Vector{Float64}(undef,0), Vector{Float64}(undef,0))
    4245end# }}}
    43 
     46function Base.show(io::IO, this::Geometry)# {{{
     47        IssmStructDisp(io, this)
     48end# }}}
     49#}}}
     50#Mask {{{
    4451mutable struct Mask
    4552        ocean_levelset::Vector{Float64}
     
    5259        IssmStructDisp(io, this)
    5360end# }}}
    54 
     61#}}}
     62#Initialization{{{
    5563mutable struct Initialization
    5664        vx::Vector{Float64}
     
    6068        return Initialization( Vector{Float64}(undef,0), Vector{Float64}(undef,0))
    6169end# }}}
    62 
     70function Base.show(io::IO, this::Initialization)# {{{
     71        IssmStructDisp(io, this)
     72end# }}}
     73#}}}
     74#Stressbalance {{{
    6375mutable struct Stressbalance
    6476        spcvx::Vector{Float64}
     
    7587        IssmStructDisp(io, this)
    7688end# }}}
    77 
     89#}}}
     90#Constants{{{
    7891mutable struct Constants
    7992        g::Float64
     
    8396        return Constants( 9.81,  365*24*3600.)
    8497end# }}}
    85 
     98function Base.show(io::IO, this::Constants)# {{{
     99        IssmStructDisp(io, this)
     100end# }}}
     101# }}}
     102#Materials {{{
    86103mutable struct Materials
    87104        rho_ice::Float64
     
    105122        return Materials(917., 1023., 1000., 0.001787, 2093., 3.34*10^5, 2.4, .24, 1, 273.15, 9.8*10^-8, 3974., 1.00*10^-4, Vector{Float64}(undef,0), Vector{Float64}(undef,0), "Cuffey")
    106123end# }}}
    107 
     124function Base.show(io::IO, this::Materials)# {{{
     125        IssmStructDisp(io, this)
     126end# }}}
     127# }}}
     128#Friction {{{
    108129abstract type AbstractFriction end
    109130mutable struct BuddFriction <: AbstractFriction
     
    120141        m::Vector{Float64}
    121142end
    122 
     143# }}}
     144
     145#Model structure
    123146mutable struct model
    124147        mesh::AbstractMesh
     
    200223
    201224end# }}}
     225
     226
Note: See TracChangeset for help on using the changeset viewer.