Skip to content
Snippets Groups Projects
Commit d60dc6d6 authored by Tom Fischer's avatar Tom Fischer
Browse files

[NL/DOF] Init MeshComponentMap::nop in the class declaration

parent c8bf20e3
No related branches found
No related tags found
No related merge requests found
...@@ -24,9 +24,6 @@ namespace NumLib ...@@ -24,9 +24,6 @@ namespace NumLib
{ {
using namespace detail; using namespace detail;
GlobalIndexType const MeshComponentMap::nop =
std::numeric_limits<GlobalIndexType>::max();
#ifdef USE_PETSC #ifdef USE_PETSC
MeshComponentMap::MeshComponentMap( MeshComponentMap::MeshComponentMap(
std::vector<MeshLib::MeshSubset> const& components, ComponentOrder order) std::vector<MeshLib::MeshSubset> const& components, ComponentOrder order)
......
...@@ -137,7 +137,8 @@ public: ...@@ -137,7 +137,8 @@ public:
/// A value returned if no global index was found for the requested /// A value returned if no global index was found for the requested
/// location/component. The value is implementation dependent. /// location/component. The value is implementation dependent.
static NUMLIB_EXPORT GlobalIndexType const nop; static constexpr NUMLIB_EXPORT GlobalIndexType const nop =
std::numeric_limits<GlobalIndexType>::max();
#ifndef NDEBUG #ifndef NDEBUG
const detail::ComponentGlobalIndexDict& getDictionary() const const detail::ComponentGlobalIndexDict& getDictionary() const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment