#4669 Add more gradient tests and use transposed of Jacobian

This commit is contained in:
Gaute Lindkvist authored and Kristian Bendiksen committed 2020-02-05 09:55:44 +01:00
1 parent 967d8b9bd4
commit 311c03139f
2 files changed
+174 -50

No files matched your search

@@ -53,7 +53,7 @@ std::array<cvf::Vec3d, 8> RigHexGradientTools::gradients( const std::array<cvf::
{
bool isInvertPossible = false;
cvf::Mat3d jacobian = caf::HexInterpolator::jacobi( hexCorners, NC[i] );
// jacobian.transpose();
jacobian.transpose();
gradientsXYZ[i] = gradientsUVW[i].getTransformedVector( jacobian.getInverted( &isInvertPossible ) );
}