70 Info<<
"Backing up " << fromName <<
" into " << toName <<
endl;
72 topoSet backupSet(mesh, toName, fromSet);
88 backup(mesh, fromName, fromSet, toName);
94 int main(
int argc,
char *argv[])
100 Info<<
"Reading cellSetDict\n" <<
endl;
115 word setName(cellSetDict.lookup(
"name"));
117 word actionName(cellSetDict.lookup(
"action"));
125 cellSetDict.lookup(
"topoSetSources"),
138 backup(mesh, setName, setName +
"_old");
165 topoSet& currentSet = currentSetPtr();
168 <<
" Size:" << currentSet.
size()
169 <<
" Action:" << actionName
175 backup(mesh, setName, currentSet, setName +
"_old");
194 forAll(topoSetSources, topoSetSourceI)
197 topoSet oldSet(mesh, currentSet.
name() +
"_old2", currentSet);
201 topoSetSources[topoSetSourceI].applyToSet
208 currentSet.
subset(oldSet);
214 forAll(topoSetSources, topoSetSourceI)
216 topoSetSources[topoSetSourceI].applyToSet(action, currentSet);
226 currentSet.
sync(mesh);
228 Info<<
"Writing " << currentSet.
name()
229 <<
" (size " << currentSet.
size() <<
") to "