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

[PL] Parameter; Add optional coordinate system.

parent 45bf5875
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
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