[8926] | 1 | %PLANET class definition
|
---|
| 2 | %
|
---|
| 3 | % Usage:
|
---|
| 4 | % md = planet(varargin)
|
---|
| 5 |
|
---|
| 6 | classdef planet < model
|
---|
| 7 | properties (SetAccess=public) %Planet fields
|
---|
| 8 | end
|
---|
| 9 | methods
|
---|
[13395] | 10 | function md = planet(varargin) % {{{
|
---|
[8926] | 11 |
|
---|
[13395] | 12 | switch nargin
|
---|
| 13 | case 0
|
---|
| 14 | md=setdefaultparameters(md);
|
---|
| 15 | otherwise
|
---|
| 16 | error('planet constructor error message: 0 of 1 argument only in input.');
|
---|
| 17 | end
|
---|
| 18 | end
|
---|
| 19 | %}}}
|
---|
| 20 | function md = setdefaultparameters(md) % {{{
|
---|
[8926] | 21 |
|
---|
[13395] | 22 | %initialize subclasses
|
---|
| 23 | md.mesh = planetmesh();
|
---|
| 24 | md.mask = mask();
|
---|
| 25 | md.constants = constants();
|
---|
| 26 | md.geometry = geometry();
|
---|
| 27 | md.initialization = initialization();
|
---|
| 28 | md.surfaceforcings = surfaceforcings();
|
---|
| 29 | md.basalforcings = basalforcings();
|
---|
| 30 | md.friction = friction();
|
---|
| 31 | md.rifts = rifts();
|
---|
| 32 | md.timestepping = timestepping();
|
---|
| 33 | md.groundingline = groundingline();
|
---|
| 34 | md.materials = materials();
|
---|
| 35 | md.flowequation = flowequation();
|
---|
| 36 | md.debug = debug();
|
---|
| 37 | md.verbose = verbose('solution',true,'qmu',true,'control',true);
|
---|
| 38 | md.settings = settings();
|
---|
| 39 | md.solver = solver();
|
---|
| 40 | md.cluster = generic();
|
---|
| 41 | md.balancethickness = balancethickness();
|
---|
[16137] | 42 | md.stressbalance = stressbalance();
|
---|
[13395] | 43 | md.hydrology = hydrology();
|
---|
[16137] | 44 | md.masstransport = masstransport();
|
---|
[13395] | 45 | md.thermal = thermal();
|
---|
| 46 | md.steadystate = steadystate();
|
---|
| 47 | md.transient = transient();
|
---|
| 48 | md.autodiff = autodiff();
|
---|
| 49 | md.flaim = flaim();
|
---|
| 50 | md.inversion = inversion();
|
---|
| 51 | md.qmu = qmu();
|
---|
| 52 | md.radaroverlay = radaroverlay();
|
---|
| 53 | md.results = struct();
|
---|
| 54 | md.miscellaneous = miscellaneous();
|
---|
| 55 | md.private = private();
|
---|
| 56 | end
|
---|
| 57 | %}}}
|
---|
[8926] | 58 | end
|
---|
| 59 | end
|
---|