mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
reconstructParMesh: Enable -constant and -zeroTime options
This commit is contained in:
@ -97,8 +97,8 @@ autoPtr<faceCoupleInfo> determineCoupledFaces
|
|||||||
(
|
(
|
||||||
masterMesh,
|
masterMesh,
|
||||||
meshToAdd,
|
meshToAdd,
|
||||||
mergeDist, // absolute merging distance
|
mergeDist, // Absolute merging distance
|
||||||
true // matching faces identical
|
true // Matching faces identical
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -196,9 +196,9 @@ autoPtr<faceCoupleInfo> determineCoupledFaces
|
|||||||
masterFaces,
|
masterFaces,
|
||||||
meshToAdd,
|
meshToAdd,
|
||||||
addFaces,
|
addFaces,
|
||||||
mergeDist, // absolute merging distance
|
mergeDist, // Absolute merging distance
|
||||||
true, // matching faces identical?
|
true, // Matching faces identical?
|
||||||
false, // if perfectmatch are faces already ordered
|
false, // If perfect match are faces already ordered
|
||||||
// (e.g. processor patches)
|
// (e.g. processor patches)
|
||||||
false // are faces each on separate patch?
|
false // are faces each on separate patch?
|
||||||
)
|
)
|
||||||
@ -431,6 +431,9 @@ int main(int argc, char *argv[])
|
|||||||
"reconstruct a mesh using geometric information only"
|
"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::noParallel();
|
||||||
argList::addOption
|
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
|
// and select a subset based on the command-line options
|
||||||
instantList Times = timeSelector::select
|
instantList Times = timeSelector::select
|
||||||
(
|
(
|
||||||
@ -570,7 +573,7 @@ int main(int argc, char *argv[])
|
|||||||
args
|
args
|
||||||
);
|
);
|
||||||
|
|
||||||
// set startTime and endTime depending on -time and -latestTime options
|
// Set startTime and endTime depending on -time and -latestTime options
|
||||||
#include "checkTimeOptions.H"
|
#include "checkTimeOptions.H"
|
||||||
|
|
||||||
if (Times.empty())
|
if (Times.empty())
|
||||||
@ -628,6 +631,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// Internal faces on the final reconstructed mesh
|
// Internal faces on the final reconstructed mesh
|
||||||
label masterInternalFaces;
|
label masterInternalFaces;
|
||||||
|
|
||||||
// Owner addressing on the final reconstructed mesh
|
// Owner addressing on the final reconstructed mesh
|
||||||
labelList masterOwner;
|
labelList masterOwner;
|
||||||
|
|
||||||
@ -786,7 +790,7 @@ int main(int argc, char *argv[])
|
|||||||
procMesh,
|
procMesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false // do not register
|
false // Do not register
|
||||||
),
|
),
|
||||||
pointProcAddressing[procI]
|
pointProcAddressing[procI]
|
||||||
).write();
|
).write();
|
||||||
@ -810,7 +814,7 @@ int main(int argc, char *argv[])
|
|||||||
procMesh,
|
procMesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false // do not register
|
false // Do not register
|
||||||
),
|
),
|
||||||
faceProcAddressing[procI]
|
faceProcAddressing[procI]
|
||||||
);
|
);
|
||||||
@ -873,7 +877,7 @@ int main(int argc, char *argv[])
|
|||||||
procMesh,
|
procMesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false // do not register
|
false // Do not register
|
||||||
),
|
),
|
||||||
cellProcAddressing[procI]
|
cellProcAddressing[procI]
|
||||||
).write();
|
).write();
|
||||||
@ -898,7 +902,7 @@ int main(int argc, char *argv[])
|
|||||||
procMesh,
|
procMesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE,
|
IOobject::NO_WRITE,
|
||||||
false // do not register
|
false // Do not register
|
||||||
),
|
),
|
||||||
boundaryProcAddressing[procI]
|
boundaryProcAddressing[procI]
|
||||||
).write();
|
).write();
|
||||||
@ -908,7 +912,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Info<< "\nEnd\n" << endl;
|
Info<< "End.\n" << endl;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user