From a30fa6bc959a9c7cc7060532b7e5a9c561c23424 Mon Sep 17 00:00:00 2001 From: Hugo Talbot Date: Wed, 28 Feb 2024 12:22:58 +0100 Subject: [PATCH] remove unused result warning --- .../component/forcefield/PREquivalentStiffnessForceField.inl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();