source: issm/trunk/src/m/classes/model/planet.m@ 13395

Last change on this file since 13395 was 13395, checked in by Mathieu Morlighem, 12 years ago

merged trunk-jpl and trunk for revision 13393

File size: 2.0 KB
Line 
1%PLANET class definition
2%
3% Usage:
4% md = planet(varargin)
5
6classdef 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 if ismumps(),
41 md.solver = addoptions(md.solver,DiagnosticVertAnalysisEnum(),mumpsoptions());
42 else
43 md.solver = addoptions(md.solver,DiagnosticVertAnalysisEnum(),iluasmoptions());
44 end
45 md.cluster = generic();
46 md.balancethickness = balancethickness();
47 md.diagnostic = diagnostic();
48 md.hydrology = hydrology();
49 md.prognostic = prognostic();
50 md.thermal = thermal();
51 md.steadystate = steadystate();
52 md.transient = transient();
53 md.autodiff = autodiff();
54 md.flaim = flaim();
55 md.inversion = inversion();
56 md.qmu = qmu();
57 md.radaroverlay = radaroverlay();
58 md.results = struct();
59 md.miscellaneous = miscellaneous();
60 md.private = private();
61 end
62 %}}}
63 end
64 end
Note: See TracBrowser for help on using the repository browser.