mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
Merge pull request #394 from akva2/c++20_stuff
Mark comparison operator const and avoid arithmetics using enums
This commit is contained in:
commit
fa782c05f9
@ -479,7 +479,7 @@ namespace Opm {
|
||||
/// @param [in] m
|
||||
/// Assignment right hand side.
|
||||
template <template<typename> class OtherSP, class OtherOP>
|
||||
bool operator==(const FullMatrix<T, OtherSP, OtherOP>& m)
|
||||
bool operator==(const FullMatrix<T, OtherSP, OtherOP>& m) const
|
||||
{
|
||||
if (numRows() != m.numRows() || numCols() != m.numCols()) {
|
||||
return false;
|
||||
|
@ -85,7 +85,7 @@ namespace Opm {
|
||||
public:
|
||||
/// @brief
|
||||
/// The number of space dimensions.
|
||||
enum { dim = GridInterface::Dimension };
|
||||
static constexpr int dim = GridInterface::Dimension;
|
||||
/// @brief
|
||||
/// The iterator type for iterating over grid cells.
|
||||
typedef typename GridInterface::CellIterator CellIter;
|
||||
|
@ -86,7 +86,7 @@ namespace Opm {
|
||||
public:
|
||||
/// @brief
|
||||
/// The number of space dimensions.
|
||||
enum { dim = GridInterface::Dimension };
|
||||
static constexpr int dim = GridInterface::Dimension;
|
||||
/// @brief
|
||||
/// The iterator type for iterating over grid cells.
|
||||
typedef typename GridInterface::CellIterator CellIter;
|
||||
|
Loading…
Reference in New Issue
Block a user