@@ -321,6 +321,17 @@ function Base.show(io::IO, this::Frontalforcings)# {{{
321321 IssmStructDisp (io, this)
322322end # }}}
323323# }}}
324+ # Groundingline{{{
325+ mutable struct Groundingline
326+ migration:: String
327+ end
328+ function Groundingline () # {{{
329+ return Groundingline (" None" )
330+ end # }}}
331+ function Base. show (io:: IO , this:: Groundingline )# {{{
332+ IssmStructDisp (io, this)
333+ end # }}}
334+ # }}}
324335
325336# Model structure
326337mutable struct model{Mesh<: AbstractMesh , Friction<: AbstractFriction , Basalforcings<: AbstractBasalforcings , Calving<: AbstractCalving }
@@ -342,20 +353,21 @@ mutable struct model{Mesh<:AbstractMesh, Friction<:AbstractFriction, Basalforcin
342353 calving:: Calving
343354 levelset:: Levelset
344355 frontalforcings:: Frontalforcings
356+ groundingline:: Groundingline
345357end
346358function model () # {{{
347359 return model ( Mesh2dTriangle (), Geometry (), Mask (), Materials (),
348360 Initialization (),Stressbalance (), Constants (), Dict (),
349361 BuddFriction (), DefaultBasalforcings (), SMBforcings (), DefaultTimestepping (),
350362 Masstransport (), Transient (), Inversion (), DefaultCalving (),
351- Levelset (), Frontalforcings ())
363+ Levelset (), Frontalforcings (), Groundingline () )
352364end # }}}
353365function model (md:: model ; mesh:: AbstractMesh = md. mesh, friction:: AbstractFriction = md. friction, calving:: AbstractCalving = md. calving, basalforcings:: AbstractBasalforcings = md. basalforcings) # {{{
354366 return model (mesh, md. geometry, md. mask, md. materials,
355367 md. initialization, md. stressbalance, md. constants, md. results,
356368 friction, basalforcings, md. smb, md. timestepping,
357369 md. masstransport, md. transient, md. inversion, md. calving,
358- md. levelset, md. frontalforcings)
370+ md. levelset, md. frontalforcings, md . groundingline )
359371end # }}}
360372function model (matmd:: Dict ; verbose:: Bool = true , friction:: AbstractFriction = BuddFriction (), basalforcings:: AbstractBasalforcings = DefaultBasalforcings ()) # {{{
361373
@@ -436,6 +448,7 @@ function Base.show(io::IO, md::model)# {{{
436448 @printf " %19s: %-26s -- %s\n " " calving" typeof (md. calving) " parameters for calving"
437449 @printf " %19s: %-26s -- %s\n " " levelset" typeof (md. levelset) " parameters for moving boundaries (level-set method)"
438450 @printf " %19s: %-26s -- %s\n " " frontalforcings" typeof (md. frontalforcings) " parameters for frontalforcings"
451+ @printf " %19s: %-26s -- %s\n " " groundingline" typeof (md. groundingline) " parameters for groundingline"
439452 @printf " %19s: %-26s -- %s\n " " results" typeof (md. results) " model results"
440453
441454end # }}}
0 commit comments