Skip to content
Snippets Groups Projects
Commit 09d007c4 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Dmitri Naumov
Browse files

[NL/DOF] Constify node_adjacency_table.

Remove no longer required default constructor.
parent 299e7b2d
No related branches found
No related tags found
No related merge requests found
......@@ -32,10 +32,7 @@ namespace MeshLib
class
NodeAdjacencyTable
{
public:
NodeAdjacencyTable() = default;
explicit
NodeAdjacencyTable(std::vector<Node*> const& nodes)
{
......
......@@ -36,8 +36,7 @@ GlobalSparsityPattern computeSparsityPatternPETSc(
GlobalSparsityPattern computeSparsityPatternNonPETSc(
NumLib::LocalToGlobalIndexMap const& dof_table, MeshLib::Mesh const& mesh)
{
MeshLib::NodeAdjacencyTable node_adjacency_table;
node_adjacency_table.createTable(mesh.getNodes());
MeshLib::NodeAdjacencyTable const node_adjacency_table(mesh.getNodes());
// A mapping mesh node id -> global indices
// It acts as a cache for dof table queries.
......
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