Skip to content
Snippets Groups Projects
Commit e0eb0c03 authored by andy's avatar andy
Browse files

ENH: Added reverseDistribute helper to mappedPatchBase

parent 1a54a0c8
Branches
Tags
No related merge requests found
...@@ -339,6 +339,26 @@ public: ...@@ -339,6 +339,26 @@ public:
} }
//- Wrapper around map/interpolate data distribution
template<class Type>
void reverseDistribute(List<Type>& lst) const
{
switch (mode_)
{
case NEARESTPATCHFACEAMI:
{
lst = AMI().interpolateToTarget(Field<Type>(lst.xfer()));
break;
}
default:
{
label cSize = patch_.size();
map().reverseDistribute(cSize, lst);
}
}
}
//- Return reference to the parallel distribution map //- Return reference to the parallel distribution map
const mapDistribute& map() const const mapDistribute& map() const
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment