[25947] | 1 | %OFFLINESOLIDEARTHSOLUTION class definition
|
---|
| 2 | %
|
---|
| 3 | % Usage:
|
---|
| 4 | % addsol=offlinesolidearthsolution();
|
---|
| 5 |
|
---|
| 6 | classdef offlinesolidearthsolution < solidearthsolution
|
---|
| 7 | properties (SetAccess=public)
|
---|
| 8 | end
|
---|
| 9 | methods
|
---|
| 10 | function self = offlinesolidearthsolution(varargin) % {{{
|
---|
| 11 | switch nargin
|
---|
| 12 | case 0
|
---|
| 13 | self=setdefaultparameters(self);
|
---|
| 14 | otherwise
|
---|
| 15 | error('constructor not supported');
|
---|
| 16 | end
|
---|
| 17 | end % }}}
|
---|
| 18 | function self = setdefaultparameters(self) % {{{
|
---|
| 19 | self.setdefaultparameters@solidearthsolution();
|
---|
| 20 | end % }}}
|
---|
| 21 | function md = checkconsistency(self,md,solution,analyses) % {{{
|
---|
| 22 |
|
---|
[25956] | 23 | if ~ismember('SealevelchangeAnalysis',analyses) | (strcmp(solution,'TransientSolution') & md.solidearth.settings.isgrd==1),
|
---|
[26352] | 24 | error('offlinesolidearthsolution.m::checkconsistency: trying to run GRD patterns while supplying an offline solution for those patterns!');
|
---|
[25947] | 25 | end
|
---|
| 26 | self.checkconsistency@solidearthsolution(md,solution,analyses);
|
---|
| 27 |
|
---|
| 28 | end % }}}
|
---|
| 29 | function disp(self) % {{{
|
---|
| 30 | disp(sprintf(' external: offlinesolidearth solution:'));
|
---|
| 31 | self.disp@solidearthsolution();
|
---|
| 32 | end % }}}
|
---|
| 33 | function marshall(self,prefix,md,fid) % {{{
|
---|
| 34 | disp(sprintf(' external (offlinesolidearthsolution) solution:'));
|
---|
[26231] | 35 | WriteData(fid,prefix,'data',2,'name','md.solidearth.external.nature','format','Integer'); %code 2 for offlinesolidearthsolution class
|
---|
[25947] | 36 | self.marshall@solidearthsolution(prefix,md,fid);
|
---|
| 37 | end % }}}
|
---|
| 38 | function savemodeljs(self,fid,modelname) % {{{
|
---|
| 39 | self.savemodeljs@solidearthsolution(fid,modelname);
|
---|
| 40 | end % }}}
|
---|
| 41 | function self = extrude(self,md) % {{{
|
---|
| 42 | end % }}}
|
---|
| 43 | end
|
---|
| 44 | end
|
---|