Changeset 26728
- Timestamp:
- 12/09/21 11:10:33 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/jl/usr/classes.jl
r26727 r26728 1 1 using Printf 2 2 3 #Model fields 4 #Mesh {{{ 3 5 abstract type AbstractMesh end 4 6 mutable struct Mesh2dTriangle <: AbstractMesh … … 31 33 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)) 32 34 end# }}} 33 35 #}}} 36 #Geometry{{{ 34 37 mutable struct Geometry 35 38 surface::Vector{Float64} … … 41 44 return Geometry( Vector{Float64}(undef,0), Vector{Float64}(undef,0), Vector{Float64}(undef,0), Vector{Float64}(undef,0)) 42 45 end# }}} 43 46 function Base.show(io::IO, this::Geometry)# {{{ 47 IssmStructDisp(io, this) 48 end# }}} 49 #}}} 50 #Mask {{{ 44 51 mutable struct Mask 45 52 ocean_levelset::Vector{Float64} … … 52 59 IssmStructDisp(io, this) 53 60 end# }}} 54 61 #}}} 62 #Initialization{{{ 55 63 mutable struct Initialization 56 64 vx::Vector{Float64} … … 60 68 return Initialization( Vector{Float64}(undef,0), Vector{Float64}(undef,0)) 61 69 end# }}} 62 70 function Base.show(io::IO, this::Initialization)# {{{ 71 IssmStructDisp(io, this) 72 end# }}} 73 #}}} 74 #Stressbalance {{{ 63 75 mutable struct Stressbalance 64 76 spcvx::Vector{Float64} … … 75 87 IssmStructDisp(io, this) 76 88 end# }}} 77 89 #}}} 90 #Constants{{{ 78 91 mutable struct Constants 79 92 g::Float64 … … 83 96 return Constants( 9.81, 365*24*3600.) 84 97 end# }}} 85 98 function Base.show(io::IO, this::Constants)# {{{ 99 IssmStructDisp(io, this) 100 end# }}} 101 # }}} 102 #Materials {{{ 86 103 mutable struct Materials 87 104 rho_ice::Float64 … … 105 122 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") 106 123 end# }}} 107 124 function Base.show(io::IO, this::Materials)# {{{ 125 IssmStructDisp(io, this) 126 end# }}} 127 # }}} 128 #Friction {{{ 108 129 abstract type AbstractFriction end 109 130 mutable struct BuddFriction <: AbstractFriction … … 120 141 m::Vector{Float64} 121 142 end 122 143 # }}} 144 145 #Model structure 123 146 mutable struct model 124 147 mesh::AbstractMesh … … 200 223 201 224 end# }}} 225 226
Note:
See TracChangeset
for help on using the changeset viewer.