mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: sampledTriSurfaceMesh: sampling outside of mesh. Fixes #575.
There are a few issues: - error would only throw exceptions if not parallel - if we change this we also need to make sure the functionObjectList construction is synchronised - bounding box overlap was not returning the correct status so the code to avoid the issue of 'badly formed bounding box' was not triggered.
This commit is contained in:
@ -791,7 +791,9 @@ bool Foam::functionObjectList::read()
|
||||
FatalError.throwExceptions(throwingError);
|
||||
FatalIOError.throwExceptions(throwingIOerr);
|
||||
|
||||
if (foPtr.valid())
|
||||
// If one processor only has thrown an exception (so exited the
|
||||
// constructor) invalidate the whole functionObject
|
||||
if (returnReduce(foPtr.valid(), andOp<bool>()))
|
||||
{
|
||||
objPtr = foPtr.ptr();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user