This commit is contained in:
Hrvoje Jasak 2016-03-14 11:21:32 +00:00
parent 4bb1a7676e
commit 71b947c1db

View file

@ -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"))
{