From 3b2f322d5dbef73cd128ee503b6c9a40034a02e5 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 13 Oct 2009 09:58:46 +0000
Subject: [PATCH] fic comp

---
 Common/Options.cpp    | 2 ++
 Geo/GFaceCompound.cpp | 6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Common/Options.cpp b/Common/Options.cpp
index 8d110b0d49..6743d66f36 100644
--- a/Common/Options.cpp
+++ b/Common/Options.cpp
@@ -798,6 +798,7 @@ void PrintOptionsDoc()
   fprintf(file, "@end ftable\n");
   fclose(file);
 
+#if !defined(HAVE_NO_MESH)
   file = fopen("opt_fields.texi", "w");
   if(!file) {
     Msg::Error("Unable to open file 'opt_fields.texi'");
@@ -828,6 +829,7 @@ void PrintOptionsDoc()
   }
   fprintf(file, "@end ftable\n");
   fclose(file);
+#endif
   
 #endif
 }
diff --git a/Geo/GFaceCompound.cpp b/Geo/GFaceCompound.cpp
index e52b7fb9a4..4677c1a4e0 100644
--- a/Geo/GFaceCompound.cpp
+++ b/Geo/GFaceCompound.cpp
@@ -508,10 +508,10 @@ GFaceCompound::GFaceCompound(GModel *m, int tag, std::list<GFace*> &compound,
 {
 
   if (!_lsys) {
-#if defined(HAVE_PETSC)
-    _lsys = new linearSystemPETSc<double>;
-#elif defined(HAVE_TAUCS)
+#if defined(HAVE_TAUCS)
     _lsys = new linearSystemCSRTaucs<double>;
+#elif defined(HAVE_PETSC)
+    _lsys = new linearSystemPETSc<double>;
 #elif defined(HAVE_GMM)
     linearSystemGmm<double> *_lsysb = new linearSystemGmm<double>;
     _lsysb->setGmres(1);
-- 
GitLab