mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: snappyHexMesh with -decomposeParDict option (issue #265)
- only occurs in combination with distributedTriSurfaceMesh in snappy. - workaround similar to that previously used for surfaceRedistributePar (issue #60). Minor adjustment of incompressible motorBike tutorial to detect use of distributedTriSurfaceMesh.
This commit is contained in:
@ -161,7 +161,10 @@ int main(int argc, char *argv[])
|
||||
fileName decompDictFile;
|
||||
args.optionReadIfPresent("decomposeParDict", decompDictFile);
|
||||
|
||||
IOdictionary* dict = new IOdictionary
|
||||
// A demand-driven decompositionMethod can have issues finding
|
||||
// an alternative decomposeParDict location.
|
||||
|
||||
IOdictionary* dictPtr = new IOdictionary
|
||||
(
|
||||
decompositionModel::selectIO
|
||||
(
|
||||
@ -177,11 +180,11 @@ int main(int argc, char *argv[])
|
||||
)
|
||||
);
|
||||
|
||||
// The object must have the expected "decomposeParDict" name.
|
||||
// This also implies that it cannot be changed during the run.
|
||||
dict->rename("decomposeParDict");
|
||||
// Store it on the object registry, but to be found it must also
|
||||
// have the expected "decomposeParDict" name.
|
||||
|
||||
runTime.store(dict);
|
||||
dictPtr->rename("decomposeParDict");
|
||||
runTime.store(dictPtr);
|
||||
}
|
||||
|
||||
// Determine mesh bounding boxes:
|
||||
|
||||
Reference in New Issue
Block a user