Skip to content

Commit

Permalink
ENH: topoSet: print type of set
Browse files Browse the repository at this point in the history
  • Loading branch information
mattijs committed Feb 3, 2012
1 parent e8ca073 commit 217dad1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions applications/utilities/mesh/manipulation/topoSet/topoSet.C
Expand Up @@ -286,7 +286,8 @@ int main(int argc, char *argv[])
)
{
currentSet = topoSet::New(setType, mesh, setName, 10000);
Info<< "Created set " << setName << endl;
Info<< "Created " << currentSet().type() << " "
<< setName << endl;
}
else if (action == topoSetSource::REMOVE)
{
Expand All @@ -301,7 +302,8 @@ int main(int argc, char *argv[])
setName,
IOobject::MUST_READ
);
Info<< "Read set " << setName << " with size "
Info<< "Read set " << currentSet().type() << " "
<< setName << " with size "
<< returnReduce(currentSet().size(), sumOp<label>())
<< endl;
}
Expand Down Expand Up @@ -367,19 +369,19 @@ int main(int argc, char *argv[])
break;

case topoSetSource::CLEAR:
Info<< " Clearing set" << endl;
Info<< " Clearing " << currentSet().type() << endl;
currentSet().clear();
currentSet().write();
break;

case topoSetSource::INVERT:
Info<< " Inverting set" << endl;
Info<< " Inverting " << currentSet().type() << endl;
currentSet().invert(currentSet().maxSize(mesh));
currentSet().write();
break;

case topoSetSource::REMOVE:
Info<< " Removing set" << endl;
Info<< " Removing " << currentSet().type() << endl;
removeSet(mesh, setType, setName);
break;

Expand All @@ -392,7 +394,8 @@ int main(int argc, char *argv[])

if (currentSet.valid())
{
Info<< " Set " << currentSet().name()
Info<< " " << currentSet().type() << " "
<< currentSet().name()
<< " now size "
<< returnReduce(currentSet().size(), sumOp<label>())
<< endl;
Expand Down

0 comments on commit 217dad1

Please sign in to comment.