Commit 2fa0a2ea authored by mattijs's avatar mattijs
Browse files

ENH: PatchFunction1: expose variables.

This makes coded versions easier.
parent 2b8af776
......@@ -99,6 +99,20 @@ const Foam::word& Foam::PatchFunction1<Type>::name() const
}
template<class Type>
const Foam::polyPatch& Foam::PatchFunction1<Type>::patch() const
{
return patch_;
}
template<class Type>
bool Foam::PatchFunction1<Type>::faceValues() const
{
return faceValues_;
}
template<class Type>
void Foam::PatchFunction1<Type>::convertTimeBase(const Time&)
{}
......
......@@ -183,6 +183,12 @@ public:
//- Return the name of the entry
const word& name() const;
//- Reference to the patch
const polyPatch& patch() const;
//- Whether to generate face or point values on patch
bool faceValues() const;
// Manipulation
......
Markdown is supported
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