changed: adjust sanity check in ASMxD::updateCoords

for mixed discretizations there are additional fields present.
to avoid failing in this case, accept any vectors of sufficient size
instead of putting a requirement on the exact length.
This commit is contained in:
Arne Morten Kvarving
2019-07-30 14:23:04 +02:00
parent 63c8f976b3
commit e3da110cb9
3 changed files with 3 additions and 3 deletions

View File

@@ -754,7 +754,7 @@ bool ASMs1D::updateCoords (const Vector& displ)
if (!curv) return true; // silently ignore empty patches
if (shareFE) return true;
if (displ.size() != nsd*MLGN.size())
if (displ.size() < nsd*MLGN.size())
{
std::cerr <<" *** ASMs1D::updateCoords: Invalid dimension "
<< displ.size() <<" on displ, should be "

View File

@@ -1364,7 +1364,7 @@ bool ASMs2D::updateCoords (const Vector& displ)
if (!surf) return true; // silently ignore empty patches
if (shareFE) return true;
if (displ.size() != nsd*MLGN.size())
if (displ.size() < nsd*MLGN.size())
{
std::cerr <<" *** ASMs2D::updateCoords: Invalid dimension "
<< displ.size() <<" on displacement vector, should be "

View File

@@ -1653,7 +1653,7 @@ bool ASMs3D::updateCoords (const Vector& displ)
if (!svol) return true; // silently ignore empty patches
if (shareFE) return true;
if (displ.size() != 3*MLGN.size())
if (displ.size() < 3*MLGN.size())
{
std::cerr <<" *** ASMs3D::updateCoords: Invalid dimension "
<< displ.size() <<" on displacement vector, should be "