From 0ee2aa9ed3d49994a36a45c85dc6c604c0c145b9 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 13 Feb 2019 15:20:42 +0100 Subject: [PATCH] [PL] Parameter; Add optional coordinate system. --- ProcessLib/Parameter/Parameter.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ProcessLib/Parameter/Parameter.h b/ProcessLib/Parameter/Parameter.h index 51c71a82d2f..26e676d06da 100644 --- a/ProcessLib/Parameter/Parameter.h +++ b/ProcessLib/Parameter/Parameter.h @@ -15,11 +15,13 @@ #include <vector> #include <Eigen/Dense> +#include <boost/optional.hpp> #include "BaseLib/Error.h" #include "MeshLib/Elements/Element.h" #include "MeshLib/Node.h" +#include "CoordinateSystem.h" #include "SpatialPosition.h" namespace BaseLib @@ -54,6 +56,11 @@ struct ParameterBase virtual bool isTimeDependent() const = 0; + void setCoordinateSystem(CoordinateSystem const& coordinate_system) + { + _coordinate_system = coordinate_system; + } + /// Parameters might depend on each other; this method allows to set up the /// dependencies between parameters after they have been constructed. virtual void initialize( @@ -67,6 +74,8 @@ struct ParameterBase std::string const name; protected: + boost::optional<CoordinateSystem> _coordinate_system; + /// A mesh on which the parameter is defined. Some parameters might be /// mesh-independent. MeshLib::Mesh const* _mesh; -- GitLab