Bugfix: additionaArgs is no longer a reference
This commit is contained in:
parent
1c6c10d84a
commit
a9ed8c0a8f
6 changed files with 8 additions and 14 deletions
|
@ -68,7 +68,6 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
argList args(argc, argv);
|
argList args(argc, argv);
|
||||||
Time runTime(args.rootPath(), args.caseName());
|
Time runTime(args.rootPath(), args.caseName());
|
||||||
stringList const& params = args.additionalArgs();
|
|
||||||
|
|
||||||
// default rescale from [mm] to [m]
|
// default rescale from [mm] to [m]
|
||||||
scalar scaleFactor = 0.001;
|
scalar scaleFactor = 0.001;
|
||||||
|
@ -97,7 +96,7 @@ int main(int argc, char *argv[])
|
||||||
IOstream::defaultPrecision(10);
|
IOstream::defaultPrecision(10);
|
||||||
|
|
||||||
// remove extensions and/or trailing '.'
|
// remove extensions and/or trailing '.'
|
||||||
fileName prefix = fileName(params[0]).lessExt();
|
fileName prefix = fileName(args.additionalArgs()[0]).lessExt();
|
||||||
|
|
||||||
meshReaders::STARCD reader(prefix, runTime, scaleFactor);
|
meshReaders::STARCD reader(prefix, runTime, scaleFactor);
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ int main(int argc, char *argv[])
|
||||||
argList::validOptions.insert("group", "");
|
argList::validOptions.insert("group", "");
|
||||||
|
|
||||||
argList args(argc, argv);
|
argList args(argc, argv);
|
||||||
const stringList& params = args.additionalArgs();
|
const stringList params = args.additionalArgs();
|
||||||
|
|
||||||
fileName importName(params[0]);
|
fileName importName(params[0]);
|
||||||
fileName exportName(params[1]);
|
fileName exportName(params[1]);
|
||||||
|
|
|
@ -81,10 +81,9 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
argList args(argc, argv);
|
argList args(argc, argv);
|
||||||
Time runTime(args.rootPath(), args.caseName());
|
Time runTime(args.rootPath(), args.caseName());
|
||||||
const stringList& params = args.additionalArgs();
|
|
||||||
|
|
||||||
fileName importName(params[0]);
|
fileName importName(args.additionalArgs()[0]);
|
||||||
fileName exportName(params[1]);
|
fileName exportName(args.additionalArgs()[1]);
|
||||||
|
|
||||||
// disable inplace editing
|
// disable inplace editing
|
||||||
if (importName == exportName)
|
if (importName == exportName)
|
||||||
|
|
|
@ -83,13 +83,12 @@ int main(int argc, char *argv[])
|
||||||
argList::validOptions.insert("unsorted", "");
|
argList::validOptions.insert("unsorted", "");
|
||||||
argList::validOptions.insert("triFace", "");
|
argList::validOptions.insert("triFace", "");
|
||||||
# include "setRootCase.H"
|
# include "setRootCase.H"
|
||||||
const stringList& params = args.additionalArgs();
|
|
||||||
|
|
||||||
scalar scaleFactor = 0;
|
scalar scaleFactor = 0;
|
||||||
args.optionReadIfPresent("scale", scaleFactor);
|
args.optionReadIfPresent("scale", scaleFactor);
|
||||||
|
|
||||||
fileName importName(params[0]);
|
fileName importName(args.additionalArgs()[0]);
|
||||||
fileName exportName(params[1]);
|
fileName exportName(args.additionalArgs()[1]);
|
||||||
|
|
||||||
if (importName == exportName)
|
if (importName == exportName)
|
||||||
{
|
{
|
||||||
|
|
|
@ -85,9 +85,8 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
argList args(argc, argv);
|
argList args(argc, argv);
|
||||||
Time runTime(args.rootPath(), args.caseName());
|
Time runTime(args.rootPath(), args.caseName());
|
||||||
const stringList& params = args.additionalArgs();
|
|
||||||
|
|
||||||
fileName exportName(params[0]);
|
fileName exportName(args.additionalArgs()[0]);
|
||||||
word importName("default");
|
word importName("default");
|
||||||
args.optionReadIfPresent("name", importName);
|
args.optionReadIfPresent("name", importName);
|
||||||
|
|
||||||
|
|
|
@ -86,8 +86,6 @@ int main(int argc, char *argv[])
|
||||||
# include "setRootCase.H"
|
# include "setRootCase.H"
|
||||||
# include "createTime.H"
|
# include "createTime.H"
|
||||||
|
|
||||||
const stringList& params = args.additionalArgs();
|
|
||||||
|
|
||||||
// try for the latestTime, but create "constant" as needed
|
// try for the latestTime, but create "constant" as needed
|
||||||
instantList Times = runTime.times();
|
instantList Times = runTime.times();
|
||||||
if (Times.size())
|
if (Times.size())
|
||||||
|
@ -101,7 +99,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fileName importName(params[0]);
|
fileName importName(args.additionalArgs()[0]);
|
||||||
word exportName("default");
|
word exportName("default");
|
||||||
args.optionReadIfPresent("name", exportName);
|
args.optionReadIfPresent("name", exportName);
|
||||||
|
|
||||||
|
|
Reference in a new issue