Skip to content
Snippets Groups Projects
Commit f01a5572 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

added check whether the derivatives of the directors are orthogonal to the directors

[[Imported from SVN: r1089]]
parent 0763e1a1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment