[issm-svn] r22792 - issm/trunk/src/m/coordsystems

morlighe at issm.ess.uci.edu morlighe at issm.ess.uci.edu
Thu May 17 11:07:37 PDT 2018


Author: morlighe
Date: 2018-05-17 11:07:37 -0700 (Thu, 17 May 2018)
New Revision: 22792

Modified:
   issm/trunk/src/m/coordsystems/gmtmask.m
   issm/trunk/src/m/coordsystems/gmtmaskparallel.m
Log:
CHG: better error message if gmt is not found

Modified: issm/trunk/src/m/coordsystems/gmtmask.m
===================================================================
--- issm/trunk/src/m/coordsystems/gmtmask.m	2018-05-17 05:51:47 UTC (rev 22791)
+++ issm/trunk/src/m/coordsystems/gmtmask.m	2018-05-17 18:07:37 UTC (rev 22792)
@@ -40,7 +40,7 @@
 		setenv('DYLD_LIBRARY_PATH',[ issmdir '/externalpackages/curl/install/lib:' issmdir '/externalpackages/hdf5/install/lib:' issmdir '/externalpackages/netcdf/install/lib' ]);
 	end
 
-   %Find path to gmt
+	%Find path to gmt, list all possible known paths to gmt (you may need to add yours to the list)
    paths = {[issmdir() '/bin/gmt'],[issmdir() '/externalpackages/gmt/install/bin/gmt'],'/Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt'};
    gmtpath = '';
    for i=paths
@@ -50,7 +50,7 @@
       end
    end
    if isempty(gmtpath),
-      error('gmt not found, make sure it is properly installed');
+      error('gmt not found, make sure it is properly installed, or add its path to this file (line 44)');
    end
    
 	%figure out which vertices are on the ocean, which one on the continent:

Modified: issm/trunk/src/m/coordsystems/gmtmaskparallel.m
===================================================================
--- issm/trunk/src/m/coordsystems/gmtmaskparallel.m	2018-05-17 05:51:47 UTC (rev 22791)
+++ issm/trunk/src/m/coordsystems/gmtmaskparallel.m	2018-05-17 18:07:37 UTC (rev 22792)
@@ -22,7 +22,7 @@
 		setenv('DYLD_LIBRARY_PATH',[ issmdir '/externalpackages/curl/install/lib:' issmdir '/externalpackages/hdf5/install/lib:' issmdir '/externalpackages/netcdf/install/lib' ]);
 	end
 
-   %Find path to gmt
+	%Find path to gmt, list all possible known paths to gmt (you may need to add yours to the list)
    paths = {[issmdir() '/bin/gmt'],[issmdir() '/externalpackages/gmt/install/bin/gmt'],'/Applications/GMT-5.4.3.app/Contents/Resources/bin/gmt'};
    gmtpath = '';
    for i=paths
@@ -32,7 +32,7 @@
       end
    end
    if isempty(gmtpath),
-      error('gmt not found, make sure it is properly installed');
+		error('gmt not found, make sure it is properly installed, or add its path to this file (line 26)');
    end
 
 	%Build xjobs script:



More information about the issm-svn mailing list