adjust solvers and utilities to use new argList methods

- also drop various unused time options from src/OpenFOAM/include
This commit is contained in:
Mark Olesen
2009-05-19 20:21:50 +02:00
parent 724b034cc7
commit d1295da31f
96 changed files with 344 additions and 513 deletions

View File

@ -59,8 +59,8 @@ int main(int argc, char *argv[])
fileName inFileName2(args.additionalArgs()[1]);
fileName outFileName(args.additionalArgs()[2]);
bool addPoint = args.options().found("points");
bool mergeRegions = args.options().found("mergeRegions");
bool addPoint = args.optionFound("points");
bool mergeRegions = args.optionFound("mergeRegions");
if (addPoint)
{
@ -69,7 +69,7 @@ int main(int argc, char *argv[])
<< nl << endl;
Info<< "Surface : " << inFileName1<< nl
<< "Points : " << args.options()["points"] << nl
<< "Points : " << args.option("points") << nl
<< "Writing : " << outFileName << nl << endl;
}
else
@ -111,8 +111,8 @@ int main(int argc, char *argv[])
if (addPoint)
{
IFstream pointStr(args.options()["points"]);
pointField extraPoints(pointStr);
IFstream pointsFile(args.option("points"));
pointField extraPoints(pointsFile);
Info<< "Additional Points:" << extraPoints.size() << endl;
@ -252,7 +252,7 @@ int main(int argc, char *argv[])
newPatches[newPatchI++] = surface2.patches()[ patchI];
}
}
Info<< "New patches:" << nl;
forAll(newPatches, patchI)