Index: /issm/trunk-jpl/src/m/mesh/bamg.m
===================================================================
--- /issm/trunk-jpl/src/m/mesh/bamg.m	(revision 21451)
+++ /issm/trunk-jpl/src/m/mesh/bamg.m	(revision 21452)
@@ -122,8 +122,12 @@
 		%Check that file exists
 		riftfile=getfieldvalue(options,'rifts');
+		[pathr,namer,extr]=fileparts(riftfile);
 		if ~exist(riftfile,'file')
 			error(['bamg error message: file ' riftfile ' not found ']);
-		end
-		rift=expread(riftfile);
+		elseif strcmp(extr,'.exp'),
+			rift=expread(riftfile);
+		elseif strcmp(extr,'.shp'),
+			rift=shpread(riftfile);
+		end
 
 		for i=1:length(rift),
Index: /issm/trunk-jpl/src/m/mesh/rifts/rifttipsonmesh.m
===================================================================
--- /issm/trunk-jpl/src/m/mesh/rifts/rifttipsonmesh.m	(revision 21451)
+++ /issm/trunk-jpl/src/m/mesh/rifts/rifttipsonmesh.m	(revision 21452)
@@ -4,5 +4,11 @@
 
 %read rifts from outline file
-rifts=expread(riftoutline);
+%rifts=expread(riftoutline);
+[pathr,namer,extr]=fileparts(riftoutline);
+if strcmp(extr,'.exp'),
+	rifts=expread(riftoutline);
+elseif strcmp(extr,'.shp'),
+	rifts=shpread(riftoutline);
+end
 
 tips=[];
