Skip to content
Snippets Groups Projects
Commit 0d53c302 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[ParL] Coordsys. Debug test of 2D transformation.

parent 4d5fce91
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,15 @@ Eigen::Matrix<double, 2, 2> CoordinateSystem::transformation<2>(
Eigen::Matrix<double, 2, 2> t;
t << e0[0], e1[0], e0[1], e1[1];
#ifndef NDEBUG
if (std::abs(t.determinant() - 1) > std::numeric_limits<double>::epsilon())
{
OGS_FATAL(
"The determinant of the coordinate system transformation matrix is "
"'%g', which is not sufficiently close to unity.",
t.determinant());
}
#endif // NDEBUG
return t;
}
......
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