mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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...
This commit is contained in:
@ -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",
|
||||
|
||||
Reference in New Issue
Block a user