mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: solidBodyFvMotionMesh: added check on points
This commit is contained in:
@ -77,6 +77,18 @@ Foam::solidBodyMotionFvMesh::solidBodyMotionFvMesh(const IOobject& io)
|
||||
zoneID_(-1),
|
||||
pointIDs_()
|
||||
{
|
||||
if (undisplacedPoints_.size() != nPoints())
|
||||
{
|
||||
FatalIOErrorIn
|
||||
(
|
||||
"solidBodyMotionFvMesh::solidBodyMotionFvMesh(const IOobject&)",
|
||||
dynamicMeshCoeffs_
|
||||
) << "Read " << undisplacedPoints_.size()
|
||||
<< " undisplaced points from " << undisplacedPoints_.objectPath()
|
||||
<< " but the current mesh has " << nPoints()
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
word cellZoneName =
|
||||
dynamicMeshCoeffs_.lookupOrDefault<word>("cellZone", "none");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user