Index: /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/src/c/modules/Solverx/Solverx.cpp
===================================================================
--- /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/src/c/modules/Solverx/Solverx.cpp	(revision 12899)
+++ /u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/src/c/modules/Solverx/Solverx.cpp	(revision 12900)
@@ -30,12 +30,16 @@
 
 	/*According to matrix type, use specific solvers: */
 	if(Kff->type==PetscMatType){
+		#ifdef _HAVE_PETSC_
 		PetscVec* uf0_vector = NULL;
 		PetscVec* df_vector  = NULL;
 		if(uf0) uf0_vector = uf0->pvector;
 		if(df)  df_vector  = df->pvector;
 
 		SolverxPetsc(&uf->pvector,Kff->pmatrix,pf->pvector,uf0_vector,df_vector,parameters);
+		#else
+		_error_("ISSM should be compiled with Petsc support for this operation!");
+		#endif
 	}
 	else if(Kff->type==SeqMatType){
 		SolverxSeq(&uf->svector,Kff->smatrix,pf->svector);
