Index: /issm/trunk-jpl/src/c/classes/matrix/Matrix.cpp
===================================================================
--- /issm/trunk-jpl/src/c/classes/matrix/Matrix.cpp	(revision 12986)
+++ /issm/trunk-jpl/src/c/classes/matrix/Matrix.cpp	(revision 12987)
@@ -154,6 +154,4 @@
 		#ifdef _HAVE_PETSC_
 		this->pmatrix->Echo();
-		#else
-		_error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
 		#endif
 	}
@@ -171,6 +169,4 @@
 		#ifdef _HAVE_PETSC_
 		this->pmatrix->Assemble();
-		#else
-		_error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
 		#endif
 	}
@@ -191,6 +187,4 @@
 		#ifdef _HAVE_PETSC_
 		norm=this->pmatrix->Norm(norm_type);
-		#else
-		_error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
 		#endif
 	}
@@ -209,6 +203,4 @@
 		#ifdef _HAVE_PETSC_
 		this->pmatrix->GetSize(pM,pN);
-		#else
-		_error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
 		#endif
 	}
@@ -226,6 +218,4 @@
 		#ifdef _HAVE_PETSC_
 		this->pmatrix->GetLocalSize(pM,pN);
-		#else
-		_error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
 		#endif
 	}
@@ -243,6 +233,4 @@
 		#ifdef _HAVE_PETSC_
 		this->pmatrix->MatMult(X->pvector,AX->pvector);
-		#else
-		_error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
 		#endif
 	}
@@ -264,6 +252,4 @@
 		#ifdef _HAVE_PETSC_
 		output->pmatrix=this->pmatrix->Duplicate();
-		#else
-		_error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
 		#endif
 	}
@@ -284,6 +270,4 @@
 		#ifdef _HAVE_PETSC_
 		output=this->pmatrix->ToSerial();
-		#else
-		_error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
 		#endif
 	}
@@ -303,6 +287,4 @@
 		#ifdef _HAVE_PETSC_
 		this->pmatrix->SetValues(m,idxm,n,idxn,values,mode);
-		#else
-		_error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
 		#endif
 	}
@@ -319,6 +301,4 @@
 		#ifdef _HAVE_PETSC_
 		this->pmatrix->Convert(newtype);
-		#else
-		_error2_("Petsc matrix format not usable, as Petsc has not been compiled!");
 		#endif
 	}
Index: /issm/trunk-jpl/src/c/classes/matrix/Matrix.h
===================================================================
--- /issm/trunk-jpl/src/c/classes/matrix/Matrix.h	(revision 12986)
+++ /issm/trunk-jpl/src/c/classes/matrix/Matrix.h	(revision 12987)
@@ -32,8 +32,15 @@
 		/*Matrix constructors, destructors {{{*/
 		Matrix();
+		#ifdef _HAVE_PETSC_
 		Matrix(int M,int N,int type=PetscMatType);
 		Matrix(int M,int N,IssmDouble sparsity,int type=PetscMatType);
 		Matrix(IssmDouble* serial_mat,int M,int N,IssmDouble sparsity,int type=PetscMatType);
 		Matrix(int M,int N,int connectivity,int numberofdofspernode,int type=PetscMatType);
+		#else
+		Matrix(int M,int N,int type=SeqMatType);
+		Matrix(int M,int N,IssmDouble sparsity,int type=SeqMatType);
+		Matrix(IssmDouble* serial_mat,int M,int N,IssmDouble sparsity,int type=SeqMatType);
+		Matrix(int M,int N,int connectivity,int numberofdofspernode,int type=SeqMatType);
+		#endif
 		~Matrix();
 		/*}}}*/
Index: /issm/trunk-jpl/src/c/classes/matrix/Vector.h
===================================================================
--- /issm/trunk-jpl/src/c/classes/matrix/Vector.h	(revision 12986)
+++ /issm/trunk-jpl/src/c/classes/matrix/Vector.h	(revision 12987)
@@ -34,9 +34,13 @@
 		/*Vector constructors, destructors {{{*/
 		Vector();
+		#ifdef _HAVE_PETSC_
+		Vector(Vec petsc_vector);
 		Vector(int M,bool fromlocalsize=false,int type=PetscVecType);
 		Vector(IssmDouble* serial_vec,int pM,int type=PetscVecType);
-		#ifdef _HAVE_PETSC_
-		Vector(Vec petsc_vector);
+		#else
+		Vector(int M,bool fromlocalsize=false,int type=SeqVecType);
+		Vector(IssmDouble* serial_vec,int pM,int type=SeqVecType);
 		#endif
+
 		~Vector();
 		/*}}}*/
