Changeset 16560 for issm/trunk/src/m/classes/transient.m
- Timestamp:
- 10/28/13 14:43:03 (11 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 16138-16453,16455-16554
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/classes/transient.m
r16137 r16560 11 11 isgroundingline = 0; 12 12 isgia = 0; 13 requested_outputs = NaN; 13 isdamage = 0; 14 requested_outputs = {}; 14 15 end 15 16 methods … … 25 26 26 27 %full analysis: Stressbalance, Masstransport and Thermal but no groundingline migration for now 27 obj.ismasstransport=1; 28 obj.isstressbalance=1; 29 obj.isthermal=1; 30 obj.isgroundingline=0; 31 obj.isgia=0; 28 obj.ismasstransport = 1; 29 obj.isstressbalance = 1; 30 obj.isthermal = 1; 31 obj.isgroundingline = 0; 32 obj.isgia = 0; 33 obj.isdamage = 0; 34 35 %default output 36 obj.requested_outputs={'default'}; 37 end % }}} 38 function list = defaultoutputs(self,md) % {{{ 39 40 list = {'SurfaceforcingsMassBalance'}; 32 41 33 42 end % }}} … … 42 51 md = checkfield(md,'transient.isgroundingline','numel',[1],'values',[0 1]); 43 52 md = checkfield(md,'transient.isgia','numel',[1],'values',[0 1]); 44 md = checkfield(md,'transient.requested_outputs','size',[NaN 1]); 53 md = checkfield(md,'transient.isdamage','numel',[1],'values',[0 1]); 54 md = checkfield(md,'transient.requested_outputs','stringrow',1); 45 55 46 56 end % }}} … … 48 58 disp(sprintf(' transient solution parameters:')); 49 59 50 fielddisplay(obj,'ismasstransport','indicates if a masstransport solution is used in the transient'); 51 fielddisplay(obj,'isstressbalance','indicates if a stressbalance solution is used in the transient'); 52 fielddisplay(obj,'isthermal','indicates if a thermal solution is used in the transient'); 53 fielddisplay(obj,'isgroundingline','indicates if a groundingline migration is used in the transient'); 54 fielddisplay(obj,'isgia','indicates if a postglacial rebound model is used in the transient'); 60 fielddisplay(obj,'ismasstransport','indicates whether a masstransport solution is used in the transient'); 61 fielddisplay(obj,'isstressbalance','indicates whether a stressbalance solution is used in the transient'); 62 fielddisplay(obj,'isthermal','indicates whether a thermal solution is used in the transient'); 63 fielddisplay(obj,'isgroundingline','indicates whether a groundingline migration is used in the transient'); 64 fielddisplay(obj,'isgia','indicates whether a postglacial rebound model is used in the transient'); 65 fielddisplay(obj,'isdamage','indicates whether damage evolution is used in the transient'); 55 66 fielddisplay(obj,'requested_outputs','list of additional outputs requested'); 56 67 … … 62 73 WriteData(fid,'object',obj,'fieldname','isgroundingline','format','Boolean'); 63 74 WriteData(fid,'object',obj,'fieldname','isgia','format','Boolean'); 64 WriteData(fid,'object',obj,'fieldname','requested_outputs','format','DoubleMat','mattype',3); 75 WriteData(fid,'object',obj,'fieldname','isdamage','format','Boolean'); 76 77 %process requested outputs 78 outputs = obj.requested_outputs; 79 pos = find(ismember(outputs,'default')); 80 if ~isempty(pos), 81 outputs(pos) = []; %remove 'default' from outputs 82 outputs = [outputs defaultoutputs(obj,md)]; %add defaults 83 end 84 WriteData(fid,'data',outputs,'enum',TransientRequestedOutputsEnum,'format','StringArray'); 65 85 end % }}} 66 86 end
Note:
See TracChangeset
for help on using the changeset viewer.