BUG: redistributePar: remove inconsistent *ProcAddressing. Fixes #351.

This commit is contained in:
mattijs
2016-12-19 12:58:49 +00:00
parent 1422c1aa3a
commit 23a6cadfa6
3 changed files with 56 additions and 10 deletions

View File

@ -1111,6 +1111,11 @@ int main(int argc, char *argv[])
cellProcAddressing.writeOpt() = IOobject::NO_WRITE;
}
}
else
{
cellProcAddressing.writeOpt() = IOobject::NO_WRITE;
}
if (faceProcAddressing.headerOk())
{
if (faceProcAddressing.size() == mesh.nFaces())
@ -1146,6 +1151,11 @@ int main(int argc, char *argv[])
faceProcAddressing.writeOpt() = IOobject::NO_WRITE;
}
}
else
{
faceProcAddressing.writeOpt() = IOobject::NO_WRITE;
}
if (pointProcAddressing.headerOk())
{
if (pointProcAddressing.size() == mesh.nPoints())
@ -1160,20 +1170,30 @@ int main(int argc, char *argv[])
}
else
{
Info<< "Not writing consistent processor point decomposition"
Info<< "Not writing inconsistent processor point decomposition"
<< " map " << pointProcAddressing.filePath() << endl;
pointProcAddressing.writeOpt() = IOobject::NO_WRITE;
}
}
else
{
pointProcAddressing.writeOpt() = IOobject::NO_WRITE;
}
if (boundaryProcAddressing.headerOk())
{
if (boundaryProcAddressing.size() != mesh.boundaryMesh().size())
{
Info<< "Not writing consistent processor patch decomposition"
Info<< "Not writing inconsistent processor patch decomposition"
<< " map " << boundaryProcAddressing.filePath() << endl;
boundaryProcAddressing.writeOpt() = IOobject::NO_WRITE;
}
}
else
{
boundaryProcAddressing.writeOpt() = IOobject::NO_WRITE;
}

View File

@ -16,7 +16,7 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Write maps from renumbered back to original mesh
writeMaps true;
writeMaps false;
// Optional entry: sort cells on coupled boundaries to last for use with
// e.g. nonBlockingGaussSeidel.