mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: use gcc pragma's to suppress strict-aliasing warning
we don't care
This commit is contained in:
parent
e14823c6d8
commit
c5fcbb8f3d
@ -289,7 +289,10 @@ testPrecRepeating(const Opm::PropertyTree& prm, const std::string& matrix_filena
|
|||||||
throw std::runtime_error("Could not read matrix file");
|
throw std::runtime_error("Could not read matrix file");
|
||||||
}
|
}
|
||||||
using M = Dune::BCRSMatrix<Dune::FieldMatrix<double, bz, bz>>;
|
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
|
readMatrixMarket(reinterpret_cast<M&>(matrix), mfile); // Hack to avoid hassle
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
}
|
}
|
||||||
Vector rhs;
|
Vector rhs;
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user