From ad5aee09e69d951579eb2e8d17a9971d604d2867 Mon Sep 17 00:00:00 2001 From: akva Date: Mon, 19 Dec 2011 15:52:31 +0000 Subject: [PATCH] fixed: quell compiler warning emitted if compiling without petsc git-svn-id: http://svn.sintef.no/trondheim/IFEM/trunk@1352 e10b68d5-8a6e-419e-a041-bce267b0401d --- src/LinAlg/LinSolParams.C | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/LinAlg/LinSolParams.C b/src/LinAlg/LinSolParams.C index 561a121f..5c804495 100644 --- a/src/LinAlg/LinSolParams.C +++ b/src/LinAlg/LinSolParams.C @@ -149,11 +149,15 @@ bool LinSolParams::read (std::istream& is, int nparam) return true; } + +#ifdef HAS_PETSC static bool IsOK(const TiXmlElement* child, const char* value) { return !strcasecmp(child->Value(),value) && child->FirstChild() && child->FirstChild()->Value(); } +#endif + bool LinSolParams::read (const TiXmlElement* elem) {