Changeset 22792


Ignore:
Timestamp:
05/17/18 11:07:37 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: better error message if gmt is not found

Location:
issm/trunk/src/m/coordsystems
Files:
2 edited

Legend:

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

    r22790 r22792  
    4141        end
    4242
    43    %Find path to gmt
     43        %Find path to gmt, list all possible known paths to gmt (you may need to add yours to the list)
    4444   paths = {[issmdir() '/bin/gmt'],[issmdir() '/externalpackages/gmt/install/bin/gmt'],'/Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt'};
    4545   gmtpath = '';
     
    5151   end
    5252   if isempty(gmtpath),
    53       error('gmt not found, make sure it is properly installed');
     53      error('gmt not found, make sure it is properly installed, or add its path to this file (line 44)');
    5454   end
    5555   
  • issm/trunk/src/m/coordsystems/gmtmaskparallel.m

    r22790 r22792  
    2323        end
    2424
    25    %Find path to gmt
     25        %Find path to gmt, list all possible known paths to gmt (you may need to add yours to the list)
    2626   paths = {[issmdir() '/bin/gmt'],[issmdir() '/externalpackages/gmt/install/bin/gmt'],'/Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt'};
    2727   gmtpath = '';
     
    3333   end
    3434   if isempty(gmtpath),
    35       error('gmt not found, make sure it is properly installed');
     35                error('gmt not found, make sure it is properly installed, or add its path to this file (line 26)');
    3636   end
    3737
Note: See TracChangeset for help on using the changeset viewer.