From 71b947c1db86dfbc3a94853ea2244e7d28ecc9bf Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Mon, 14 Mar 2016 11:21:32 +0000 Subject: [PATCH] Clean-up --- .../transformPoints/transformPoints.C | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C b/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C index 43ae87179..3937fb5e2 100644 --- a/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C +++ b/applications/utilities/mesh/manipulation/transformPoints/transformPoints.C @@ -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 n1n2(args.optionLookup("rotate")()); @@ -298,7 +301,7 @@ int main(int argc, char *argv[]) } } - + // Scale options if (args.optionFound("scale")) {