[kernel] avoid trouble when the nsds is empty
@@ -378,7 +378,6 @@ bool GlobalFrictionContact::preCompute(double time)
_w->resize(_sizeOutput);
_w->zero();
}
-
if(_globalVelocities->size() != _sizeGlobalOutput)
{
_globalVelocities->resize(_sizeGlobalOutput);
@@ -399,9 +398,12 @@ int GlobalFrictionContact::compute(double time)
return info;
updateMu();
// --- Call Numerics solver ---
+ if(_sizeGlobalOutput != 0)
+ {
info= solve();
DEBUG_EXPR(display(););
postCompute();
+ }
return info;
}
