From de22c11d91a74b2540354206bbf2e9f4c96d22a5 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Tue, 19 Mar 2013 13:48:02 +0100 Subject: [PATCH] Removed compile time warning. In verbose mode the warning will be issued during runtime. --- opm/core/linalg/LinearSolverIstl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/core/linalg/LinearSolverIstl.cpp b/opm/core/linalg/LinearSolverIstl.cpp index d440e7a6d..8f6fabaf1 100644 --- a/opm/core/linalg/LinearSolverIstl.cpp +++ b/opm/core/linalg/LinearSolverIstl.cpp @@ -188,7 +188,8 @@ namespace Opm #ifdef HAS_DUNE_FAST_AMG res = solveFastAMG(A, x, b, linsolver_residual_tolerance_, maxit, linsolver_verbosity_); #else - #warning "Fast AMG is not available; falling back to CG preconditioned with the normal one" + if(linsolver_verbosity_) + std::cerr<<"Fast AMG is not available; falling back to CG preconditioned with the normal one"< > CriterionBase; #else typedef Dune::Amg::AggregationCriterion > CriterionBase; - #warn "Only symmetric matrices are supported currently. Computing anyway..." #endif typedef Dune::Amg::CoarsenCriterion Criterion;