diff --git a/Tests/MeshLib/TestMapBulkElementPoint.cpp b/Tests/MeshLib/TestMapBulkElementPoint.cpp index aa4909f022fcd5915cece8b2bd8f3bb491327991..f00e72052a93773ebdbf75d1c545a1f2f739d0b2 100644 --- a/Tests/MeshLib/TestMapBulkElementPoint.cpp +++ b/Tests/MeshLib/TestMapBulkElementPoint.cpp @@ -79,9 +79,8 @@ static Eigen::MatrixXd getSelectedNodes(Coords const& natural_coordss, static Eigen::MatrixXd appendNode(Eigen::MatrixXd const& mat, MathLib::Point3d const& pt) { - Eigen::Map<const Eigen::Vector3d> col(pt.data()); Eigen::MatrixXd nodes(mat.rows(), mat.cols() + 1); - nodes << mat, col; + nodes << mat, pt.asEigenVector3d(); return nodes; }