mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
adjust solvers and utilities to use new argList methods
- also drop various unused time options from src/OpenFOAM/include
This commit is contained in:
@ -24,20 +24,7 @@
|
||||
Info<< "Source: " << rootDirSource << " " << caseDirSource << nl
|
||||
<< "Target: " << rootDirTarget << " " << caseDirTarget << endl;
|
||||
|
||||
bool parallelSource = false;
|
||||
if (args.options().found("parallelSource"))
|
||||
{
|
||||
parallelSource = true;
|
||||
}
|
||||
bool parallelSource = args.optionFound("parallelSource");
|
||||
bool parallelTarget = args.optionFound("parallelTarget");
|
||||
bool consistent = args.optionFound("consistent");
|
||||
|
||||
bool parallelTarget = false;
|
||||
if (args.options().found("parallelTarget"))
|
||||
{
|
||||
parallelTarget = true;
|
||||
}
|
||||
|
||||
bool consistent = false;
|
||||
if (args.options().found("consistent"))
|
||||
{
|
||||
consistent = true;
|
||||
}
|
||||
|
||||
@ -1,15 +1,14 @@
|
||||
instantList sourceTimes = runTimeSource.times();
|
||||
label sourceTimeIndex = runTimeSource.timeIndex();
|
||||
if (args.options().found("sourceTime"))
|
||||
if (args.optionFound("sourceTime"))
|
||||
{
|
||||
if ((args.options()["sourceTime"]) == "latestTime")
|
||||
if (args.option("sourceTime") == "latestTime")
|
||||
{
|
||||
sourceTimeIndex = sourceTimes.size() - 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
scalar sourceTime =
|
||||
readScalar(IStringStream(args.options()["sourceTime"])());
|
||||
scalar sourceTime = args.optionRead<scalar>("sourceTime");
|
||||
sourceTimeIndex = getTimeIndex(sourceTimes, sourceTime);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user