mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -78,10 +78,8 @@ SourceFiles
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
typedef treeDataPrimitivePatch<face, List, const pointField, point>
|
||||
treeDataBPatch;
|
||||
|
||||
typedef PrimitivePatch<face, List, const pointField, point> bPatch;
|
||||
typedef treeDataPrimitivePatch<bPatch> treeDataBPatch;
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class backgroundMeshDecomposition Declaration
|
||||
|
||||
@ -1018,6 +1018,11 @@ int main(int argc, char *argv[])
|
||||
|
||||
// Update proc maps
|
||||
if (cellProcAddressing.headerOk())
|
||||
if
|
||||
(
|
||||
cellProcAddressing.headerOk()
|
||||
&& cellProcAddressing.size() == mesh.nCells()
|
||||
)
|
||||
{
|
||||
Info<< "Renumbering processor cell decomposition map "
|
||||
<< cellProcAddressing.name() << endl;
|
||||
@ -1028,6 +1033,11 @@ int main(int argc, char *argv[])
|
||||
);
|
||||
}
|
||||
if (faceProcAddressing.headerOk())
|
||||
if
|
||||
(
|
||||
faceProcAddressing.headerOk()
|
||||
&& faceProcAddressing.size() == mesh.nFaces()
|
||||
)
|
||||
{
|
||||
Info<< "Renumbering processor face decomposition map "
|
||||
<< faceProcAddressing.name() << endl;
|
||||
@ -1054,6 +1064,11 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
if (pointProcAddressing.headerOk())
|
||||
if
|
||||
(
|
||||
pointProcAddressing.headerOk()
|
||||
&& pointProcAddressing.size() == mesh.nPoints()
|
||||
)
|
||||
{
|
||||
Info<< "Renumbering processor point decomposition map "
|
||||
<< pointProcAddressing.name() << endl;
|
||||
@ -1173,21 +1188,41 @@ int main(int argc, char *argv[])
|
||||
|
||||
mesh.write();
|
||||
if (cellProcAddressing.headerOk())
|
||||
if
|
||||
(
|
||||
cellProcAddressing.headerOk()
|
||||
&& cellProcAddressing.size() == mesh.nCells()
|
||||
)
|
||||
{
|
||||
cellProcAddressing.instance() = mesh.facesInstance();
|
||||
cellProcAddressing.write();
|
||||
}
|
||||
if (faceProcAddressing.headerOk())
|
||||
if
|
||||
(
|
||||
faceProcAddressing.headerOk()
|
||||
&& faceProcAddressing.size() == mesh.nFaces()
|
||||
)
|
||||
{
|
||||
faceProcAddressing.instance() = mesh.facesInstance();
|
||||
faceProcAddressing.write();
|
||||
}
|
||||
if (pointProcAddressing.headerOk())
|
||||
if
|
||||
(
|
||||
pointProcAddressing.headerOk()
|
||||
&& pointProcAddressing.size() == mesh.nPoints()
|
||||
)
|
||||
{
|
||||
pointProcAddressing.instance() = mesh.facesInstance();
|
||||
pointProcAddressing.write();
|
||||
}
|
||||
if (boundaryProcAddressing.headerOk())
|
||||
if
|
||||
(
|
||||
boundaryProcAddressing.headerOk()
|
||||
&& boundaryProcAddressing.size() == mesh.boundaryMesh().size()
|
||||
)
|
||||
{
|
||||
boundaryProcAddressing.instance() = mesh.facesInstance();
|
||||
boundaryProcAddressing.write();
|
||||
|
||||
@ -92,7 +92,15 @@ bool setCellFieldType
|
||||
field.boundaryField()[patchi].patchInternalField();
|
||||
}
|
||||
|
||||
field.write();
|
||||
if (!field.write())
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void setCellFieldType"
|
||||
"(const fvMesh& mesh, const labelList& selectedCells,"
|
||||
"Istream& fieldValueStream)"
|
||||
) << "Failed writing field " << fieldName << endl;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -260,7 +268,15 @@ bool setFaceFieldType
|
||||
}
|
||||
}
|
||||
|
||||
field.write();
|
||||
if (!field.write())
|
||||
{
|
||||
FatalErrorIn
|
||||
(
|
||||
"void setFaceFieldType"
|
||||
"(const fvMesh& mesh, const labelList& selectedFaces,"
|
||||
"Istream& fieldValueStream)"
|
||||
) << "Failed writing field " << field.name() << exit(FatalError);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user