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
|
---|
10 | function md = planet(varargin) % {{{
|
---|
11 |
|
---|
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) % {{{
|
---|
21 |
|
---|
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();
|
---|
42 | md.stressbalance = stressbalance();
|
---|
43 | md.hydrology = hydrology();
|
---|
44 | md.masstransport = masstransport();
|
---|
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 | %}}}
|
---|
58 | end
|
---|
59 | end
|
---|