mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: faceSource: output on master only
This commit is contained in:
@ -314,6 +314,8 @@ bool Foam::fieldValues::faceSource::writeValues(const word& fieldName)
|
|||||||
combineMeshGeometry(faces, points);
|
combineMeshGeometry(faces, points);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Pstream::master())
|
||||||
|
{
|
||||||
fileName outputDir =
|
fileName outputDir =
|
||||||
baseFileDir()/name_/"surface"/obr_.time().timeName();
|
baseFileDir()/name_/"surface"/obr_.time().timeName();
|
||||||
|
|
||||||
@ -328,6 +330,7 @@ bool Foam::fieldValues::faceSource::writeValues(const word& fieldName)
|
|||||||
false
|
false
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// apply scale factor and weight field
|
// apply scale factor and weight field
|
||||||
values *= scaleFactor_*weightField;
|
values *= scaleFactor_*weightField;
|
||||||
|
|||||||
Reference in New Issue
Block a user