mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: access transformedElements by reference, not copy
- better code style and seems to avoid triggering a gcc warning about possibly uninitialized values COMP: JSONformatter writeEntry missing a return value STYLE: accept 'json' for checkMesh write format - consistent with caseInfo functionObject
This commit is contained in:
@ -8,6 +8,7 @@ const Enum<writeChecksFormatType> writeChecksFormatTypeNames
|
||||
{
|
||||
{ writeChecksFormatType::none, "none" },
|
||||
{ writeChecksFormatType::dictionary, "dictionary" },
|
||||
{ writeChecksFormatType::JSON, "json" },
|
||||
{ writeChecksFormatType::JSON, "JSON" },
|
||||
};
|
||||
|
||||
@ -15,7 +16,7 @@ writeChecksFormatType writeChecksFormat(writeChecksFormatType::none);
|
||||
|
||||
auto writeMeshChecks = [](const fvMesh& mesh, const writeChecksFormatType fmt)
|
||||
{
|
||||
if (Pstream::master())
|
||||
if (UPstream::master())
|
||||
{
|
||||
switch (fmt)
|
||||
{
|
||||
@ -33,15 +34,14 @@ auto writeMeshChecks = [](const fvMesh& mesh, const writeChecksFormatType fmt)
|
||||
)
|
||||
);
|
||||
|
||||
Info<< "Writing mesh data to " << os.name() << nl << endl;
|
||||
|
||||
data.writeHeader(os);
|
||||
|
||||
mesh.data().meshDict().write(os, false);
|
||||
|
||||
IOobject::writeEndDivider(os);
|
||||
|
||||
Info<< "Writing mesh data to " << data.objectPath()
|
||||
<< nl << endl;
|
||||
|
||||
break;
|
||||
}
|
||||
case writeChecksFormatType::JSON:
|
||||
|
||||
Reference in New Issue
Block a user