Changeset 21080


Ignore:
Timestamp:
08/04/16 11:43:08 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: safer gmtmask: we want an error if gmt does not work!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/coordsystems/gmtmask.m

    r20283 r21080  
    4040
    4141        %figure out which vertices are on the ocean, which one on the continent:
    42         system('gmt gmtselect ./all_vertices.txt -h0 -Df -R0/360/-90/90  -A0 -JQ180/200 -Nk/s/s/k/s > ./oce_vertices.txt');
     42        [status,result] = system('gmt gmtselect ./all_vertices.txt -h0 -Df -R0/360/-90/90  -A0 -JQ180/200 -Nk/s/s/k/s > ./oce_vertices.txt');
     43        if status~=0,
     44                error(result);
     45        end
    4346
    4447        %reset DYLD_LIBRARY_PATH to what it was:
Note: See TracChangeset for help on using the changeset viewer.