Clean-up
This commit is contained in:
parent
4bb1a7676e
commit
71b947c1db
1 changed files with 12 additions and 9 deletions
|
@ -165,6 +165,14 @@ int main(int argc, char *argv[])
|
|||
# include "setRootCase.H"
|
||||
# include "createTime.H"
|
||||
|
||||
if (args.options().empty())
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
<< "No options supplied, please use one or more of "
|
||||
"-translate, -rotate, -scale, or -cylToCart options."
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
word regionName = polyMesh::defaultRegion;
|
||||
fileName meshDir;
|
||||
|
||||
|
@ -191,14 +199,7 @@ int main(int argc, char *argv[])
|
|||
)
|
||||
);
|
||||
|
||||
|
||||
if (args.options().empty())
|
||||
{
|
||||
FatalErrorIn(args.executable())
|
||||
<< "No options supplied, please use one or more of "
|
||||
"-translate, -rotate, -scale, or -cylToCart options."
|
||||
<< exit(FatalError);
|
||||
}
|
||||
// Translation options
|
||||
|
||||
if (args.optionFound("translate"))
|
||||
{
|
||||
|
@ -209,6 +210,8 @@ int main(int argc, char *argv[])
|
|||
points += transVector;
|
||||
}
|
||||
|
||||
// Rotation options
|
||||
|
||||
if (args.optionFound("rotate"))
|
||||
{
|
||||
Pair<vector> n1n2(args.optionLookup("rotate")());
|
||||
|
@ -298,7 +301,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
// Scale options
|
||||
|
||||
if (args.optionFound("scale"))
|
||||
{
|
||||
|
|
Reference in a new issue