Ignore:
Timestamp:
10/30/19 09:01:20 (5 years ago)
Author:
jdquinn
Message:

CHG: Added check of stressbalance.vertex_pairing field to MATLAB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/masstransport.m

    r24192 r24292  
    55
    66classdef masstransport
    7         properties (SetAccess=public) 
     7        properties (SetAccess=public)
    88                 spcthickness           = NaN;
    99                 isfreesurface          = 0;
     
    9595                        md = checkfield(md,'fieldname','masstransport.min_thickness','>',0);
    9696                        md = checkfield(md,'fieldname','masstransport.requested_outputs','stringrow',1);
    97 
     97                        if ~any(isnan(md.stressbalance.vertex_pairing)),
     98                                md = checkfield(md,'fieldname','stressbalance.vertex_pairing','>',0);
     99                        end
    98100                end % }}}
    99101                function disp(self) % {{{
     
    122124                        WriteData(fid,prefix,'object',self,'fieldname','vertex_pairing','format','DoubleMat','mattype',3);
    123125                        WriteData(fid,prefix,'object',self,'fieldname','penalty_factor','format','Double');
    124                        
     126
    125127                        %process requested outputs
    126128                        outputs = self.requested_outputs;
     
    133135                end % }}}
    134136                function savemodeljs(self,fid,modelname) % {{{
    135                
     137
    136138                        writejs1Darray(fid,[modelname '.masstransport.spcthickness'],self.spcthickness);
    137139                        writejsdouble(fid,[modelname '.masstransport.isfreesurface'],self.isfreesurface);
Note: See TracChangeset for help on using the changeset viewer.