splitMeshRegions: Remove surfaceField zero hack

now that fvMeshSubset correctly maps surfaceField boundary patch values
This commit is contained in:
Henry Weller
2021-07-21 17:26:50 +01:00
parent 37108ec2ee
commit 8f76bfcb42

View File

@ -225,17 +225,6 @@ void subsetSurfaceFields
)
);
// Hack: set value to 0 for introduced patches (since don't
// get initialised.
forAll(tSubFld().boundaryField(), patchi)
{
if (addedPatches.found(patchi))
{
tSubFld.ref().boundaryFieldRef()[patchi] ==
typename GeoField::value_type(Zero);
}
}
// Store on subMesh
GeoField* subFld = tSubFld.ptr();
subFld->rename(fld.name());