39 template<
class FromPatch,
class ToPatch>
47 if (pf.size() != fromPatch_.nPoints())
50 <<
"given field does not correspond to patch. Patch size: "
51 << fromPatch_.nPoints() <<
" field size: " << pf.size()
63 fromPatch_.localFaces();
73 if (addr[pointi] > -1)
76 fromPatchLocalFaces[addr[pointi]];
80 result[pointi] += curWeights[wI]*pf[hitFacePoints[wI]];
89 template<
class FromPatch,
class ToPatch>
103 template<
class FromPatch,
class ToPatch>
111 if (
ff.size() != fromPatch_.size())
114 <<
"given field does not correspond to patch. Patch size: "
115 << fromPatch_.size() <<
" field size: " <<
ff.size()
126 const labelListList& fromPatchFaceFaces = fromPatch_.faceFaces();
136 if (addr[facei] > -1)
139 fromPatchFaceFaces[addr[facei]];
142 result[facei] +=
ff[addr[facei]]*curWeights[0];
144 for (label wI = 1; wI < curWeights.size(); wI++)
146 result[facei] +=
ff[hitFaceFaces[wI - 1]]*curWeights[wI];
155 template<
class FromPatch,
class ToPatch>