Index: /issm/trunk-jpl/src/m/utils/OS/ismumps.py
===================================================================
--- /issm/trunk-jpl/src/m/utils/OS/ismumps.py	(revision 12758)
+++ /issm/trunk-jpl/src/m/utils/OS/ismumps.py	(revision 12758)
@@ -0,0 +1,39 @@
+"""
+%ISMUMPS - figure out if MUMPS package was compiled with ISSM
+%
+%   Usage:
+%       flag=ismumps();
+"""
+
+import os
+from issmdir import *
+from MatlabFuncs import *
+
+def ismumps():
+
+	configfile=os.path.join(issmdir(),'bin','config.h')    #should find it in the install target
+	if not os.path.exists(configfile):
+		raise RuntimeError("File '%s' not found. ISSM has not been configured yet!" % configfile)
+
+	#go through the file, and recover the line we want
+	flag=2
+	try:
+		fid=open(configfile,'r')
+	except IOError as e:
+		print "could not open file: '%s'" % configfile
+		raise IOError(e)
+
+	for tline in fid:
+		if strncmp(tline,'/* #undef _HAVE_MUMPS_ */',25):
+			flag=0
+			break
+		if  strncmp(tline,'#define _HAVE_MUMPS_',20):
+			flag=1
+			break
+
+	fid.close()
+	if flag==2:
+		raise RuntimeError("could not determine whether MUMPS was or was not compiled.")
+
+	return flag
+
