mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: distributedTriSurfaceMesh: support distributed running
This commit is contained in:
@ -2642,11 +2642,16 @@ Foam::distributedTriSurfaceMesh::distributedTriSurfaceMesh(const IOobject& io)
|
||||
|
||||
bounds().reduce();
|
||||
|
||||
const fileName actualFile(triSurfaceMesh::checkFile(io, true));
|
||||
// Try and find out where the triSurface was loaded from. On slave this
|
||||
// might give empty filename.
|
||||
const fileName actualFile(triSurfaceMesh::findFile(io, true));
|
||||
|
||||
if
|
||||
(
|
||||
actualFile != io.localFilePath(triSurfaceMesh::typeName)
|
||||
(
|
||||
actualFile.empty()
|
||||
|| actualFile != io.localFilePath(triSurfaceMesh::typeName)
|
||||
)
|
||||
&& (distType_ == INDEPENDENT || distType_ == DISTRIBUTED)
|
||||
)
|
||||
{
|
||||
@ -2779,11 +2784,16 @@ Foam::distributedTriSurfaceMesh::distributedTriSurfaceMesh
|
||||
|
||||
bounds().reduce();
|
||||
|
||||
const fileName actualFile(triSurfaceMesh::checkFile(io, dict, true));
|
||||
// Try and find out where the triSurface was loaded from. On slave this
|
||||
// might give empty filename.
|
||||
const fileName actualFile(triSurfaceMesh::findFile(io, dict, true));
|
||||
|
||||
if
|
||||
(
|
||||
actualFile != io.localFilePath(triSurfaceMesh::typeName)
|
||||
(
|
||||
actualFile.empty()
|
||||
|| actualFile != io.localFilePath(triSurfaceMesh::typeName)
|
||||
)
|
||||
&& (distType_ == INDEPENDENT || distType_ == DISTRIBUTED)
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user