Skip to content
Snippets Groups Projects
Commit 85867eff authored by mattijs's avatar mattijs
Browse files

ENH: Added check for size of points.

Useful for in parallel if it cannot find processor*/constant/polyMesh/points
and decides to read undecomposed constant/polyMesh/points...
parent eb2cf750
Branches
Tags
No related merge requests found
......@@ -151,6 +151,34 @@ displacementComponentLaplacianFvMotionSolver
: -1
)
{
if (points0_.size() != mesh.nPoints())
{
FatalErrorIn
(
"displacementComponentLaplacianFvMotionSolver::"
"displacementComponentLaplacianFvMotionSolver\n"
"(\n"
" const polyMesh&,\n"
" Istream&\n"
")"
) << "Number of points in mesh " << mesh.nPoints()
<< " differs from number of points " << points0_.size()
<< " read from file "
<<
IOobject
(
"points",
mesh.time().constant(),
polyMesh::meshSubDir,
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
).filePath()
<< exit(FatalError);
}
IOobject io
(
"pointLocation",
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment