From a82598abe71bf04375c79b38bc30273506b96dd8 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Wed, 7 Feb 2018 16:56:12 +0100 Subject: [PATCH] include ErrorMacros.hpp to safely make use of OPM_THROW (and not abort) --- opm/autodiff/ParallelOverlappingILU0.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/opm/autodiff/ParallelOverlappingILU0.hpp b/opm/autodiff/ParallelOverlappingILU0.hpp index 8923a9b9a..a542fca11 100644 --- a/opm/autodiff/ParallelOverlappingILU0.hpp +++ b/opm/autodiff/ParallelOverlappingILU0.hpp @@ -21,7 +21,7 @@ #define OPM_PARALLELOVERLAPPINGILU0_HEADER_INCLUDED #include - +#include #include #include #include @@ -355,8 +355,7 @@ public: const size_type lastRow = iEnd - 1; if( iEnd != upper_.rows() ) { - std::abort(); - // OPM_THROW(std::logic_error,"ILU: lower and upper rows must be the same"); + OPM_THROW(std::logic_error,"ILU: number of lower and upper rows must be the same"); } // lower triangular solve