38 template<
class FromPatch,
class ToPatch>
46 if (pf.size() != fromPatch_.nPoints())
49 <<
"given field does not correspond to patch. Patch size: "
50 << fromPatch_.nPoints() <<
" field size: " << pf.size()
62 fromPatch_.localFaces();
72 if (addr[pointi] > -1)
75 fromPatchLocalFaces[addr[pointi]];
79 result[pointi] += curWeights[wI]*pf[hitFacePoints[wI]];
88 template<
class FromPatch,
class ToPatch>
102 template<
class FromPatch,
class ToPatch>
110 if (
ff.size() != fromPatch_.size())
113 <<
"given field does not correspond to patch. Patch size: "
114 << fromPatch_.size() <<
" field size: " <<
ff.size()
125 const labelListList& fromPatchFaceFaces = fromPatch_.faceFaces();
135 if (addr[facei] > -1)
138 fromPatchFaceFaces[addr[facei]];
141 result[facei] +=
ff[addr[facei]]*curWeights[0];
143 for (
label wI = 1; wI < curWeights.size(); wI++)
145 result[facei] +=
ff[hitFaceFaces[wI - 1]]*curWeights[wI];
154 template<
class FromPatch,
class ToPatch>