diff --git a/src/SoftRobots/component/forcefield/PREquivalentStiffnessForceField.inl b/src/SoftRobots/component/forcefield/PREquivalentStiffnessForceField.inl index 1a213964..a0ee6031 100644 --- a/src/SoftRobots/component/forcefield/PREquivalentStiffnessForceField.inl +++ b/src/SoftRobots/component/forcefield/PREquivalentStiffnessForceField.inl @@ -116,7 +116,9 @@ void PREquivalentStiffnessForceField::init() } else { - m_CInv[n].invert(m_complianceMat[n]); + bool invert = m_CInv[n].invert(m_complianceMat[n]); + if(!invert) + msg_error() << "Unable to invert compliance matrix at init"; } } filebuffer.close();