From 6afae953ea644bbd9b493d0b952a1931c388e9ee Mon Sep 17 00:00:00 2001 From: Christoph Lehmann <christoph.lehmann@ufz.de> Date: Sat, 16 Jul 2016 12:25:14 +0200 Subject: [PATCH] [T] removed some todo notes, fixed some dims --- Tests/NumLib/TestCoordinatesMapping.cpp | 20 ++++++++++---------- Tests/NumLib/TestFunctionInterpolation.cpp | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Tests/NumLib/TestCoordinatesMapping.cpp b/Tests/NumLib/TestCoordinatesMapping.cpp index cced072d9ed..167f6c3fe1b 100644 --- a/Tests/NumLib/TestCoordinatesMapping.cpp +++ b/Tests/NumLib/TestCoordinatesMapping.cpp @@ -106,7 +106,7 @@ TYPED_TEST(NumLibFemNaturalCoordinatesMappingTest, CheckFieldSpecification_N) ShapeMatricesType shape(this->dim, this->global_dim, this->e_nnodes); //only N - NaturalCoordsMappingType::template computeShapeMatrices<ShapeMatrixType::N>(*this->naturalEle, this->r, shape, this->dim); // TODO check dim + NaturalCoordsMappingType::template computeShapeMatrices<ShapeMatrixType::N>(*this->naturalEle, this->r, shape, this->global_dim); ASSERT_FALSE(shape.N.isZero()); ASSERT_TRUE(shape.dNdr.isZero()); ASSERT_TRUE(shape.J.isZero()); @@ -122,7 +122,7 @@ TYPED_TEST(NumLibFemNaturalCoordinatesMappingTest, CheckFieldSpecification_DNDR) ShapeMatricesType shape(this->dim, this->global_dim, this->e_nnodes); // dNdr - NaturalCoordsMappingType::template computeShapeMatrices<ShapeMatrixType::DNDR>(*this->naturalEle, this->r, shape, this->dim); // TODO check dim + NaturalCoordsMappingType::template computeShapeMatrices<ShapeMatrixType::DNDR>(*this->naturalEle, this->r, shape, this->global_dim); ASSERT_TRUE(shape.N.isZero()); ASSERT_FALSE(shape.dNdr.isZero()); ASSERT_TRUE(shape.J.isZero()); @@ -139,7 +139,7 @@ TYPED_TEST(NumLibFemNaturalCoordinatesMappingTest, CheckFieldSpecification_N_J) // N_J shape.setZero(); - NaturalCoordsMappingType::template computeShapeMatrices<ShapeMatrixType::N_J>(*this->naturalEle, this->r, shape, this->dim); // TODO check dim + NaturalCoordsMappingType::template computeShapeMatrices<ShapeMatrixType::N_J>(*this->naturalEle, this->r, shape, this->global_dim); ASSERT_FALSE(shape.N.isZero()); ASSERT_FALSE(shape.dNdr.isZero()); ASSERT_FALSE(shape.J.isZero()); @@ -155,7 +155,7 @@ TYPED_TEST(NumLibFemNaturalCoordinatesMappingTest, CheckFieldSpecification_DNDR_ ShapeMatricesType shape(this->dim, this->global_dim, this->e_nnodes); // dNdr, J - NaturalCoordsMappingType::template computeShapeMatrices<ShapeMatrixType::DNDR_J>(*this->naturalEle, this->r, shape, this->dim); // TODO check dim + NaturalCoordsMappingType::template computeShapeMatrices<ShapeMatrixType::DNDR_J>(*this->naturalEle, this->r, shape, this->global_dim); ASSERT_TRUE(shape.N.isZero()); ASSERT_FALSE(shape.dNdr.isZero()); ASSERT_FALSE(shape.J.isZero()); @@ -174,7 +174,7 @@ TYPED_TEST(NumLibFemNaturalCoordinatesMappingTest, CheckFieldSpecification_DNDX) shape.setZero(); NaturalCoordsMappingType::template computeShapeMatrices< ShapeMatrixType::DNDX>(*this->naturalEle, this->r, shape, - this->dim); // TODO check dim + this->dim); ASSERT_TRUE(shape.N.isZero()); ASSERT_FALSE(shape.dNdr.isZero()); ASSERT_FALSE(shape.J.isZero()); @@ -191,7 +191,7 @@ TYPED_TEST(NumLibFemNaturalCoordinatesMappingTest, CheckFieldSpecification_ALL) // ALL shape.setZero(); - NaturalCoordsMappingType::computeShapeMatrices(*this->naturalEle, this->r, shape, this->dim); // TODO check dim + NaturalCoordsMappingType::computeShapeMatrices(*this->naturalEle, this->r, shape, this->global_dim); ASSERT_FALSE(shape.N.isZero()); ASSERT_FALSE(shape.dNdr.isZero()); ASSERT_FALSE(shape.J.isZero()); @@ -207,7 +207,7 @@ TYPED_TEST(NumLibFemNaturalCoordinatesMappingTest, CheckNaturalShape) // identical to natural coordinates ShapeMatricesType shape(this->dim, this->global_dim, this->e_nnodes); - NaturalCoordsMappingType::computeShapeMatrices(*this->naturalEle, this->r, shape, this->dim); // TODO check dim + NaturalCoordsMappingType::computeShapeMatrices(*this->naturalEle, this->r, shape, this->global_dim); double exp_J[TestFixture::dim*TestFixture::dim]= {0.0}; for (unsigned i=0; i<this->dim; i++) exp_J[i+this->dim*i] = 1.0; @@ -227,7 +227,7 @@ TYPED_TEST(NumLibFemNaturalCoordinatesMappingTest, CheckIrregularShape) // irregular shape ShapeMatricesType shape(this->dim, this->global_dim, this->e_nnodes); - NaturalCoordsMappingType::computeShapeMatrices(*this->irregularEle, this->r, shape, this->dim); // TODO check dim + NaturalCoordsMappingType::computeShapeMatrices(*this->irregularEle, this->r, shape, this->global_dim); //std::cout << std::setprecision(16) << shape; ASSERT_ARRAY_NEAR(this->nat_exp_N, shape.N.data(), shape.N.size(), this->eps); @@ -245,7 +245,7 @@ TYPED_TEST(NumLibFemNaturalCoordinatesMappingTest, CheckClockwise) // clockwise node ordering, which is invalid) ShapeMatricesType shape(this->dim, this->global_dim, this->e_nnodes); - NaturalCoordsMappingType::computeShapeMatrices(*this->clockwiseEle, this->r, shape, this->dim); // TODO check dim + NaturalCoordsMappingType::computeShapeMatrices(*this->clockwiseEle, this->r, shape, this->global_dim); //std::cout << std::setprecision(16) << shape; // Inverse of the Jacobian matrix doesn't exist double exp_invJ[TestFixture::dim*TestFixture::dim]= {0.0}; @@ -266,7 +266,7 @@ TYPED_TEST(NumLibFemNaturalCoordinatesMappingTest, CheckZeroVolume) ShapeMatricesType shape(this->dim, this->global_dim, this->e_nnodes); NaturalCoordsMappingType::computeShapeMatrices( - *this->zeroVolumeEle, this->r, shape, this->dim); // TODO check dim + *this->zeroVolumeEle, this->r, shape, this->global_dim); // std::cout << std::setprecision(16) << shape; // Inverse of the Jacobian matrix doesn't exist double exp_invJ[TestFixture::dim*TestFixture::dim]= {0.0}; diff --git a/Tests/NumLib/TestFunctionInterpolation.cpp b/Tests/NumLib/TestFunctionInterpolation.cpp index f8012ebda9e..7e507407f80 100644 --- a/Tests/NumLib/TestFunctionInterpolation.cpp +++ b/Tests/NumLib/TestFunctionInterpolation.cpp @@ -71,7 +71,7 @@ TEST(NumLibFunctionInterpolationTest, Linear1DElement) finite_element.computeShapeFunctions( integration_method.getWeightedPoint(0).getCoords(), - shape_matrix, ShapeFunction::DIM); // TODO check DIM + shape_matrix, ShapeFunction::DIM); ASSERT_EQ(2, shape_matrix.N.size()); // actual test -- GitLab