Index: /issm/trunk-jpl/src/c/classes/matrix/ElementMatrix.h
===================================================================
--- /issm/trunk-jpl/src/c/classes/matrix/ElementMatrix.h	(revision 12898)
+++ /issm/trunk-jpl/src/c/classes/matrix/ElementMatrix.h	(revision 12899)
@@ -16,4 +16,5 @@
 class Node;
 class Matrix;
+class Parameters;
 /*}}}*/
 
Index: /issm/trunk-jpl/src/c/classes/matrix/ElementVector.h
===================================================================
--- /issm/trunk-jpl/src/c/classes/matrix/ElementVector.h	(revision 12898)
+++ /issm/trunk-jpl/src/c/classes/matrix/ElementVector.h	(revision 12899)
@@ -16,4 +16,5 @@
 class Node;
 class Vector;
+class Parameters;
 /*}}}*/
 
Index: /issm/trunk-jpl/src/c/classes/matrix/Matrix.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/matrix/Matrix.cpp	(revision 12898)
+++ /issm/trunk-jpl/src/c/classes/matrix/Matrix.cpp	(revision 12899)
@@ -26,5 +26,7 @@
 Matrix::Matrix(){
 
-	pmatrix=NULL;
+	#ifdef _HAVE_PETSC_
+	pmatrix=NULL;
+	#endif
 	smatrix=NULL;
 
@@ -39,5 +41,7 @@
 Matrix::Matrix(int M,int N,int in_type){
 
-	pmatrix=NULL;
+	#ifdef _HAVE_PETSC_
+	pmatrix=NULL;
+	#endif
 	smatrix=NULL;
 	type=in_type;
@@ -60,5 +64,7 @@
 Matrix::Matrix(int M,int N,IssmDouble sparsity,int in_type){
 
-	pmatrix=NULL;
+	#ifdef _HAVE_PETSC_
+	pmatrix=NULL;
+	#endif
 	smatrix=NULL;
 	type=in_type;
@@ -80,5 +86,7 @@
 Matrix::Matrix(IssmDouble* serial_mat, int M,int N,IssmDouble sparsity,int in_type){
 
-	pmatrix=NULL;
+	#ifdef _HAVE_PETSC_
+	pmatrix=NULL;
+	#endif
 	smatrix=NULL;
 	type=in_type;
@@ -101,5 +109,7 @@
 Matrix::Matrix(int M,int N,int connectivity,int numberofdofspernode,int in_type){
 
-	pmatrix=NULL;
+	#ifdef _HAVE_PETSC_
+	pmatrix=NULL;
+	#endif
 	smatrix=NULL;
 	type=in_type;
Index: /issm/trunk-jpl/src/c/classes/matrix/Vector.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/matrix/Vector.cpp	(revision 12898)
+++ /issm/trunk-jpl/src/c/classes/matrix/Vector.cpp	(revision 12899)
@@ -25,5 +25,7 @@
 Vector::Vector(){
 
+	#ifdef _HAVE_PETSC_
 	this->pvector=NULL;
+	#endif
 	this->svector=NULL;
 	
@@ -38,5 +40,7 @@
 Vector::Vector(int M,bool fromlocalsize,int in_type){
 	
+	#ifdef _HAVE_PETSC_
 	pvector=NULL;
+	#endif
 	svector=NULL;
 	type=in_type;
@@ -60,5 +64,8 @@
 Vector::Vector(IssmDouble* serial_vec,int M,int in_type){
 
+	#ifdef _HAVE_PETSC_
 	pvector=NULL;
+	#endif
+
 	svector=NULL;
 	type=in_type;
