MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / applyToSet

Function applyToSet

src/meshTools/sets/faceSources/boxToFace/boxToFace.C:124–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
123
124void Foam::boxToFace::applyToSet
125(
126 const topoSetSource::setAction action,
127 topoSet& set
128) const
129{
130 if ((action == topoSetSource::NEW) || (action == topoSetSource::ADD))
131 {
132 Info<< " Adding faces with centre within boxes " << bbs_ << endl;
133
134 combine(set, true);
135 }
136 else if (action == topoSetSource::DELETE)
137 {
138 Info<< " Removing faces with centre within boxes " << bbs_ << endl;
139
140 combine(set, false);
141 }
142}
143
144
145// ************************************************************************* //

Callers

nothing calls this directly

Calls 1

combineFunction · 0.70

Tested by

no test coverage detected