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:
@@ -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 "
|
||||
|
||||
@@ -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 "
|
||||
|
||||
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user