From 2fec8952c9df11d01a22484760232e4c089b8671 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Fri, 12 Feb 2016 18:01:06 +0100 Subject: [PATCH] [PL] Make ProcessVar::_mesh non const for prop's. Adding new mesh properties reqiure non-const access. --- ProcessLib/ProcessVariable.cpp | 2 +- ProcessLib/ProcessVariable.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ProcessLib/ProcessVariable.cpp b/ProcessLib/ProcessVariable.cpp index 2f4bfaf0d0a..3f9d64a5eb8 100644 --- a/ProcessLib/ProcessVariable.cpp +++ b/ProcessLib/ProcessVariable.cpp @@ -19,7 +19,7 @@ namespace ProcessLib { ProcessVariable::ProcessVariable(BaseLib::ConfigTree const& config, - MeshLib::Mesh const& mesh, + MeshLib::Mesh& mesh, GeoLib::GEOObjects const& geometries) : _name(config.getConfParam<std::string>("name")), _mesh(mesh), diff --git a/ProcessLib/ProcessVariable.h b/ProcessLib/ProcessVariable.h index 8268035611c..3efe3671772 100644 --- a/ProcessLib/ProcessVariable.h +++ b/ProcessLib/ProcessVariable.h @@ -47,7 +47,7 @@ namespace ProcessLib class ProcessVariable { public: - ProcessVariable(BaseLib::ConfigTree const& config, MeshLib::Mesh const& mesh, + ProcessVariable(BaseLib::ConfigTree const& config, MeshLib::Mesh& mesh, GeoLib::GEOObjects const& geometries); ProcessVariable(ProcessVariable&&); @@ -98,7 +98,7 @@ public: private: std::string const _name; - MeshLib::Mesh const& _mesh; + MeshLib::Mesh& _mesh; int _tuple_size; std::unique_ptr<InitialCondition> _initial_condition; std::vector<std::unique_ptr<UniformDirichletBoundaryCondition>> -- GitLab