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
......@@ -103,6 +103,14 @@ public:
PrimaryVariables& operator [](IndexType i)
{ return priVars_[i]; }
//! \brief vector space division by scalar
template <typename FieldType>
BoxElementSolution& operator/= (const FieldType& k)
{
priVars_ /= k;
return *this;
}
private:
Dune::BlockVector<PrimaryVariables> priVars_;
};
......
......@@ -94,6 +94,14 @@ public:
return priVars_;
}
//! \brief vector space division by scalar
template <typename FieldType>
CCElementSolution& operator/= (const FieldType& k)
{
priVars_ /= k;
return *this;
}
private:
PrimaryVariables priVars_;
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment