Skip to content
Snippets Groups Projects
Commit f86c730b authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[elementsolution] introduce /= operator

this will be necessary in the grid data transfer for adaptive 2p models
parent 350bd384
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!542Feature/adpativity next
...@@ -103,6 +103,14 @@ public: ...@@ -103,6 +103,14 @@ public:
PrimaryVariables& operator [](IndexType i) PrimaryVariables& operator [](IndexType i)
{ return priVars_[i]; } { return priVars_[i]; }
//! \brief vector space division by scalar
template <typename FieldType>
BoxElementSolution& operator/= (const FieldType& k)
{
priVars_ /= k;
return *this;
}
private: private:
Dune::BlockVector<PrimaryVariables> priVars_; Dune::BlockVector<PrimaryVariables> priVars_;
}; };
......
...@@ -94,6 +94,14 @@ public: ...@@ -94,6 +94,14 @@ public:
return priVars_; return priVars_;
} }
//! \brief vector space division by scalar
template <typename FieldType>
CCElementSolution& operator/= (const FieldType& k)
{
priVars_ /= k;
return *this;
}
private: private:
PrimaryVariables priVars_; PrimaryVariables priVars_;
}; };
......
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