37 template<
class FromPatch,
class ToPatch>
45 if (pf.size() != fromPatch_.nPoints())
48 <<
"given field does not correspond to patch. Patch size: "
49 << fromPatch_.nPoints() <<
" field size: " << pf.size()
65 fromPatch_.localFaces();
75 if (addr[pointI] > -1)
78 fromPatchLocalFaces[addr[pointI]];
82 result[pointI] += curWeights[wI]*pf[hitFacePoints[wI]];
91 template<
class FromPatch,
class ToPatch>
106 template<
class FromPatch,
class ToPatch>
114 if (
ff.size() != fromPatch_.size())
117 <<
"given field does not correspond to patch. Patch size: "
118 << fromPatch_.size() <<
" field size: " <<
ff.size()
133 const labelListList& fromPatchFaceFaces = fromPatch_.faceFaces();
143 if (addr[faceI] > -1)
146 fromPatchFaceFaces[addr[faceI]];
149 result[faceI] +=
ff[addr[faceI]]*curWeights[0];
151 for (
label wI = 1; wI < curWeights.size(); wI++)
153 result[faceI] +=
ff[hitFaceFaces[wI - 1]]*curWeights[wI];
162 template<
class FromPatch,
class ToPatch>