Changeset 24729


Ignore:
Timestamp:
04/23/20 10:47:33 (5 years ago)
Author:
Eric.Larour
Message:

CHG: added a check on the type of mask that should be initialized for an slr solution.

File:
1 edited

Legend:

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

    r24519 r24729  
    101101                                return;
    102102                        end
     103
     104                        %check that the mask is a maskpsl class type, otherwise, we won't be able to run very far
     105                        %with the slr solution:
     106                        if ~strcmpi(class(md.mask),'maskpsl'),
     107                                error('slr error message: model mask should be of the ''maskpsl'' class');
     108                        end
     109
    103110                        md = checkfield(md,'fieldname','slr.deltathickness','NaN',1,'Inf',1,'size',[md.mesh.numberofelements 1]);
    104111                        md = checkfield(md,'fieldname','slr.sealevel','NaN',1,'Inf',1,'size',[md.mesh.numberofvertices 1]);
     
    151158                                end
    152159                        end
    153 
    154160
    155161                end % }}}
Note: See TracChangeset for help on using the changeset viewer.