Changeset 20539


Ignore:
Timestamp:
04/22/16 20:38:37 (9 years ago)
Author:
Eric.Larour
Message:

CHG: added checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/mesh/patchglobe.m

    r20111 r20539  
    66        %recover basic options:
    77        bandwidth=getfieldvalue(options,'bandwidth',100000);
     8
     9        %some checks on the mesh:
     10        if (isempty(mh.x) | isempty(mh.y) | isempty(mh.z) | isempty(mh.lat) | isempty(mh.long) | isempty(mh.r) )
     11                error('patchglobe error message: 3D planet mesh has one of the following empty: ''x'',''y'',''z'',''lat'',''long'' or ''r''');
     12        end
     13        if (isempty(mh2d.x) | isempty(mh2d.y) | isempty(mh2d.lat) | isempty(mh2d.long))
     14                error('patchglobe error message: 3D planet mesh has one of the following empty: ''x'',''y'',''lat'' or ''long''');
     15        end
    816
    917        %give ourselves a unique temporary directory:
Note: See TracChangeset for help on using the changeset viewer.