33 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
34 void Foam::rawTopoChangerFvMesh::setUnmappedValues
36 GeometricField<Type, PatchField, GeoMesh>&
fld,
37 const bitSet& mappedFace,
38 const GeometricField<Type, PatchField, GeoMesh>& baseFld
45 PatchField<Type>& fvp =
const_cast<PatchField<Type>&
>
47 fld.boundaryField()[patchi]
50 const label start = fvp.patch().start();
53 if (!mappedFace[start+i])
59 fvp[i] = baseFld.boundaryField()[patchi][i];
66 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
67 void Foam::rawTopoChangerFvMesh::zeroUnmappedValues
69 const bitSet& mappedFace
72 typedef GeometricField<Type, PatchField, GeoMesh> FieldType;
74 const wordList fldNames(names(FieldType::typeName));
80 FieldType&
fld = lookupObjectRef<FieldType>(fldNames[i]);
98 dimensioned<Type>(
fld.dimensions(),
Zero)