changed: use gcc pragma's to suppress strict-aliasing warning

we don't care
This commit is contained in:
Arne Morten Kvarving 2022-06-27 14:54:57 +02:00
parent e14823c6d8
commit c5fcbb8f3d

View File

@ -289,7 +289,10 @@ testPrecRepeating(const Opm::PropertyTree& prm, const std::string& matrix_filena
throw std::runtime_error("Could not read matrix file");
}
using M = Dune::BCRSMatrix<Dune::FieldMatrix<double, bz, bz>>;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
readMatrixMarket(reinterpret_cast<M&>(matrix), mfile); // Hack to avoid hassle
#pragma GCC diagnostic pop
}
Vector rhs;
{