From 6328ae3cbbd82fd00e88a40eff1520e4245fb0ca Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 3 Sep 2014 16:56:31 +0200 Subject: [PATCH] [PL] Add number of node variables. Element variables are not yet used. --- ProcessLib/GroundwaterFlow.h | 2 +- ProcessLib/Process.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ProcessLib/GroundwaterFlow.h b/ProcessLib/GroundwaterFlow.h index 74ea5853384..5e62a885cf7 100644 --- a/ProcessLib/GroundwaterFlow.h +++ b/ProcessLib/GroundwaterFlow.h @@ -27,7 +27,7 @@ public: GroundwaterFlowProcess(MeshLib::Mesh const& mesh, std::vector<OGS::ProcessVariable> const& variables, ConfigTree const& config) - : Process(mesh) + : Process(mesh, 1) { DBUG("Create GroundwaterFlowProcess."); diff --git a/ProcessLib/Process.h b/ProcessLib/Process.h index ec9596ba7e3..aa8c8ecb76a 100644 --- a/ProcessLib/Process.h +++ b/ProcessLib/Process.h @@ -18,8 +18,8 @@ namespace ProcessLib class Process { public: - Process(MeshLib::Mesh const& mesh) - : _mesh(mesh) + Process(MeshLib::Mesh const& mesh, std::size_t const numberOfNodeVariables) + : _mesh(mesh), _numberNodeDOFs(numberOfNodeVariables) { } virtual ~Process() = default; @@ -28,6 +28,7 @@ public: protected: MeshLib::Mesh const& _mesh; + std::size_t const _numberNodeDOFs; }; } // namespace ProcessLib -- GitLab