ENH: topoSet: print type of set

This commit is contained in:
mattijs
2012-02-03 12:45:46 +00:00
parent 99a7669440
commit 4dd7cc3bf5

View File

@ -286,7 +286,8 @@ int main(int argc, char *argv[])
) )
{ {
currentSet = topoSet::New(setType, mesh, setName, 10000); currentSet = topoSet::New(setType, mesh, setName, 10000);
Info<< "Created set " << setName << endl; Info<< "Created " << currentSet().type() << " "
<< setName << endl;
} }
else if (action == topoSetSource::REMOVE) else if (action == topoSetSource::REMOVE)
{ {
@ -301,7 +302,8 @@ int main(int argc, char *argv[])
setName, setName,
IOobject::MUST_READ IOobject::MUST_READ
); );
Info<< "Read set " << setName << " with size " Info<< "Read set " << currentSet().type() << " "
<< setName << " with size "
<< returnReduce(currentSet().size(), sumOp<label>()) << returnReduce(currentSet().size(), sumOp<label>())
<< endl; << endl;
} }
@ -367,19 +369,19 @@ int main(int argc, char *argv[])
break; break;
case topoSetSource::CLEAR: case topoSetSource::CLEAR:
Info<< " Clearing set" << endl; Info<< " Clearing " << currentSet().type() << endl;
currentSet().clear(); currentSet().clear();
currentSet().write(); currentSet().write();
break; break;
case topoSetSource::INVERT: case topoSetSource::INVERT:
Info<< " Inverting set" << endl; Info<< " Inverting " << currentSet().type() << endl;
currentSet().invert(currentSet().maxSize(mesh)); currentSet().invert(currentSet().maxSize(mesh));
currentSet().write(); currentSet().write();
break; break;
case topoSetSource::REMOVE: case topoSetSource::REMOVE:
Info<< " Removing set" << endl; Info<< " Removing " << currentSet().type() << endl;
removeSet(mesh, setType, setName); removeSet(mesh, setType, setName);
break; break;
@ -392,7 +394,8 @@ int main(int argc, char *argv[])
if (currentSet.valid()) if (currentSet.valid())
{ {
Info<< " Set " << currentSet().name() Info<< " " << currentSet().type() << " "
<< currentSet().name()
<< " now size " << " now size "
<< returnReduce(currentSet().size(), sumOp<label>()) << returnReduce(currentSet().size(), sumOp<label>())
<< endl; << endl;