include ErrorMacros.hpp to safely make use of OPM_THROW (and not abort)

This commit is contained in:
Markus Blatt 2018-02-07 16:56:12 +01:00
parent f381336dff
commit a82598abe7

View File

@ -21,7 +21,7 @@
#define OPM_PARALLELOVERLAPPINGILU0_HEADER_INCLUDED
#include <opm/common/Exceptions.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <dune/common/version.hh>
#include <dune/istl/preconditioner.hh>
#include <dune/istl/paamg/smoother.hh>
@ -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