Index: /issm/trunk-jpl/externalpackages/matplotlib/install-macosx64.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/matplotlib/install-macosx64.sh	(revision 16101)
+++ /issm/trunk-jpl/externalpackages/matplotlib/install-macosx64.sh	(revision 16102)
@@ -1,4 +1,6 @@
 #/bin/bash
 set -eu
+
+rm -rf src deps 
 
 export C_INCLUDE_PATH="$C_INCLUDE_PATH:/usr/include/c++/4.2.1"
@@ -23,4 +25,7 @@
 #python -c "import matplotlib; print 'Installed matplotlib', matplotlib.__version__, matplotlib.__file__"
 
+#comments: try exporting this first before calling python setup.py build
+CFLAGS=-mmacosx-version-min=10.7 
+
 #to be tried:  first get freetype and zlib and libpng installed in sudo mode
 python setup.py build
Index: /issm/trunk-jpl/src/c/classes/Elements/Elements.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/Elements/Elements.cpp	(revision 16101)
+++ /issm/trunk-jpl/src/c/classes/Elements/Elements.cpp	(revision 16102)
@@ -194,5 +194,5 @@
 			element->ListResultsInfo(&resultsenums,&resultssizes,&resultstimes,&resultssteps,&numberofresults);
 		}
-		ISSM_MPI_Bcast(&numberofresults,1,ISSM_MPI_DOUBLE,minrank,IssmComm::GetComm());
+		ISSM_MPI_Bcast(&numberofresults,1,ISSM_MPI_INT,minrank,IssmComm::GetComm());
 
 		/*Get out if there is no results. Otherwise broadcast info*/
Index: /issm/trunk-jpl/src/c/modules/Krigingx/pKrigingx.cpp
===================================================================
--- /issm/trunk-jpl/src/c/modules/Krigingx/pKrigingx.cpp	(revision 16101)
+++ /issm/trunk-jpl/src/c/modules/Krigingx/pKrigingx.cpp	(revision 16102)
@@ -75,6 +75,6 @@
 		double *sumpredictions =xNew<double>(n_interp);
 		double *sumerror       =xNew<double>(n_interp);
-		ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
-		ISSM_MPI_Allreduce(error,sumerror,n_interp,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
+		ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_PDOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
+		ISSM_MPI_Allreduce(error,sumerror,n_interp,ISSM_MPI_PDOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
 		xDelete<double>(error); error=sumerror;
 		xDelete<double>(predictions); predictions=sumpredictions;
@@ -90,5 +90,5 @@
 
 		double *sumpredictions =xNew<double>(n_interp);
-		ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
+		ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_PDOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
 		xDelete<double>(predictions); predictions=sumpredictions;
 	}
@@ -103,5 +103,5 @@
 
 		double *sumpredictions =xNew<double>(n_interp);
-		ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
+		ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_PDOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
 		xDelete<double>(predictions); predictions=sumpredictions;
 	}
@@ -118,5 +118,5 @@
 
 		double *sumpredictions =xNew<double>(n_interp);
-		ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_DOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
+		ISSM_MPI_Allreduce(predictions,sumpredictions,n_interp,ISSM_MPI_PDOUBLE,ISSM_MPI_SUM,IssmComm::GetComm());
 		xDelete<double>(predictions); predictions=sumpredictions;
 	}
Index: /issm/trunk-jpl/src/c/toolkits/petsc/patches/MatToSerial.cpp
===================================================================
--- /issm/trunk-jpl/src/c/toolkits/petsc/patches/MatToSerial.cpp	(revision 16101)
+++ /issm/trunk-jpl/src/c/toolkits/petsc/patches/MatToSerial.cpp	(revision 16102)
@@ -70,9 +70,9 @@
 			buffer[2]=range;
 			ISSM_MPI_Send(buffer,3,ISSM_MPI_INT,0,1,comm);   
-			if (range)ISSM_MPI_Send(local_matrix,N*range,ISSM_MPI_DOUBLE,0,1,comm); 
+			if (range)ISSM_MPI_Send(local_matrix,N*range,ISSM_MPI_PDOUBLE,0,1,comm); 
 		}
 		if (my_rank==0){
 			ISSM_MPI_Recv(buffer,3,ISSM_MPI_INT,i,1,comm,&status); 
-			if (buffer[2])ISSM_MPI_Recv(outmatrix+(buffer[1]*N),N*buffer[2],ISSM_MPI_DOUBLE,i,1,comm,&status);
+			if (buffer[2])ISSM_MPI_Recv(outmatrix+(buffer[1]*N),N*buffer[2],ISSM_MPI_PDOUBLE,i,1,comm,&status);
 		}
 	} 
Index: /issm/trunk-jpl/src/c/toolkits/petsc/patches/VecToMPISerial.cpp
===================================================================
--- /issm/trunk-jpl/src/c/toolkits/petsc/patches/VecToMPISerial.cpp	(revision 16101)
+++ /issm/trunk-jpl/src/c/toolkits/petsc/patches/VecToMPISerial.cpp	(revision 16102)
@@ -70,9 +70,9 @@
 			buffer[2]=range;
 			ISSM_MPI_Send(buffer,3,ISSM_MPI_INT,0,1,comm);  
-			if (range)ISSM_MPI_Send(local_vector,range,ISSM_MPI_DOUBLE,0,1,comm); 
+			if (range)ISSM_MPI_Send(local_vector,range,ISSM_MPI_PDOUBLE,0,1,comm); 
 		}
 		if (my_rank==0){
 			ISSM_MPI_Recv(buffer,3,ISSM_MPI_INT,i,1,comm,&status); 
-			if (buffer[2])ISSM_MPI_Recv(gathered_vector+buffer[1],buffer[2],ISSM_MPI_DOUBLE,i,1,comm,&status);
+			if (buffer[2])ISSM_MPI_Recv(gathered_vector+buffer[1],buffer[2],ISSM_MPI_PDOUBLE,i,1,comm,&status);
 		}
 	}
@@ -84,5 +84,5 @@
 
 	/*Now, broadcast gathered_vector from node 0 to other nodes: */
-	ISSM_MPI_Bcast(gathered_vector,vector_size,ISSM_MPI_DOUBLE,0,comm);
+	ISSM_MPI_Bcast(gathered_vector,vector_size,ISSM_MPI_PDOUBLE,0,comm);
 
 	/*Assign output pointers: */
Index: /issm/trunk-jpl/src/m/exp/expcoarsen.py
===================================================================
--- /issm/trunk-jpl/src/m/exp/expcoarsen.py	(revision 16101)
+++ /issm/trunk-jpl/src/m/exp/expcoarsen.py	(revision 16102)
@@ -46,5 +46,4 @@
 			#see whether we keep this point or not
 			distance=npy.sqrt((x[j]-x[j+1])**2+(y[j]-y[j+1])**2)
-			print j,distance,numpoints
 			if distance<resolution and j<numpoints-2:   #do not remove last point
 				x=npy.delete(x,j+1,0)
Index: /issm/trunk-jpl/startup.py
===================================================================
--- /issm/trunk-jpl/startup.py	(revision 16101)
+++ /issm/trunk-jpl/startup.py	(revision 16102)
@@ -31,3 +31,3 @@
 from plotmodel import plotmodel
 
-#print("\n  To get started with ISSM, type issmdoc at the command prompt.\n\n")
+print("\n  ISSM python modules loaded properly. You are now ready to start using ISSM.\n\n");
