diff --git a/src/rodassembler.cc b/src/rodassembler.cc index ba24ea452e7b5548c6ffed336da29babd196afef..aac12b13ab71cd0dc2fc9413fac7ff691fabd19a 100644 --- a/src/rodassembler.cc +++ b/src/rodassembler.cc @@ -140,6 +140,11 @@ getFirstDerivativesOfDirectors(const Quaternion<double>& q, dd_dvj[2][j] *= 2; } + + // Check: The derivatives of the directors must be orthogonal to the directors + for (int i=0; i<3; i++) + for (int j=0; j<3; j++) + assert (std::abs(q.director(i) * dd_dvj[i][j]) < 1e-7); }