Commit 5a12edc3 authored by Henry's avatar Henry
Browse files

reconstructParMesh: Enable -constant and -zeroTime options

parent f5bb9449
......@@ -97,8 +97,8 @@ autoPtr<faceCoupleInfo> determineCoupledFaces
(
masterMesh,
meshToAdd,
mergeDist, // absolute merging distance
true // matching faces identical
mergeDist, // Absolute merging distance
true // Matching faces identical
)
);
}
......@@ -196,9 +196,9 @@ autoPtr<faceCoupleInfo> determineCoupledFaces
masterFaces,
meshToAdd,
addFaces,
mergeDist, // absolute merging distance
true, // matching faces identical?
false, // if perfectmatch are faces already ordered
mergeDist, // Absolute merging distance
true, // Matching faces identical?
false, // If perfect match are faces already ordered
// (e.g. processor patches)
false // are faces each on separate patch?
)
......@@ -431,6 +431,9 @@ int main(int argc, char *argv[])
"reconstruct a mesh using geometric information only"
);
// Enable -constant ... if someone really wants it
// Enable -zeroTime to prevent accidentally trashing the initial fields
timeSelector::addOptions(true, true);
argList::noParallel();
argList::addOption
(
......@@ -562,7 +565,7 @@ int main(int argc, char *argv[])
}
// use the times list from the master processor
// Use the times list from the master processor
// and select a subset based on the command-line options
instantList Times = timeSelector::select
(
......@@ -570,7 +573,7 @@ int main(int argc, char *argv[])
args
);
// set startTime and endTime depending on -time and -latestTime options
// Set startTime and endTime depending on -time and -latestTime options
#include "checkTimeOptions.H"
if (Times.empty())
......@@ -628,6 +631,7 @@ int main(int argc, char *argv[])
// Internal faces on the final reconstructed mesh
label masterInternalFaces;
// Owner addressing on the final reconstructed mesh
labelList masterOwner;
......@@ -786,7 +790,7 @@ int main(int argc, char *argv[])
procMesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false // do not register
false // Do not register
),
pointProcAddressing[procI]
).write();
......@@ -810,7 +814,7 @@ int main(int argc, char *argv[])
procMesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false // do not register
false // Do not register
),
faceProcAddressing[procI]
);
......@@ -873,7 +877,7 @@ int main(int argc, char *argv[])
procMesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false // do not register
false // Do not register
),
cellProcAddressing[procI]
).write();
......@@ -898,7 +902,7 @@ int main(int argc, char *argv[])
procMesh,
IOobject::NO_READ,
IOobject::NO_WRITE,
false // do not register
false // Do not register
),
boundaryProcAddressing[procI]
).write();
......@@ -908,7 +912,7 @@ int main(int argc, char *argv[])
}
Info<< "\nEnd\n" << endl;
Info<< "End.\n" << endl;
return 0;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment