Skip to content
Snippets Groups Projects
Commit 4457278a authored by wenqing's avatar wenqing
Browse files

[utest] Corrected two typos and modified some comments

parent 6f60ec65
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ public:
static const unsigned global_dim = MeshElementType::dimension;
const double perturbation = 0.2;
/// create a mesh element
/// create a 20 node hexahedral element with curved edges
MeshElementType* createMeshElement()
{
auto** nodes = new MeshLib::Node*[e_nnodes];
......@@ -54,7 +54,7 @@ public:
nodes[11] = new MeshLib::Node(perturbation, 0.5, 0.0);
// mid-edge nodes on top
nodes[12] = new MeshLib::Node(0.5, perturbation, 1.0);
nodes[12] = new MeshLib::Node(0.5, perturbation, 1.0);
nodes[13] = new MeshLib::Node(1.0 + perturbation, 0.5, 1.0);
nodes[14] = new MeshLib::Node(0.5, 1.0 + perturbation, 1.0);
nodes[15] = new MeshLib::Node(perturbation, 0.5, 1.0);
......
......@@ -32,7 +32,7 @@ public:
static const unsigned global_dim = MeshElementType::dimension;
const double perturbation = 0.2;
/// create a mesh element
/// create a 15 node prism element with curved edges
MeshElementType* createMeshElement()
{
auto** nodes = new MeshLib::Node*[e_nnodes];
......
......@@ -33,7 +33,7 @@ public:
static const unsigned global_dim = MeshElementType::dimension;
const double perturbation = 0.2;
/// create a mesh element
/// create a 13 node pyramid element with curved edges
MeshElementType* createMeshElement()
{
auto** nodes = new MeshLib::Node*[e_nnodes];
......
......@@ -15,7 +15,7 @@
namespace FeTestData
{
/** Test the eight node iso parameter quadrilateral element
/** Test the eight node iso-parametric quadrilateral element
* Assuming that the edge points are translated outside of the square shape
* element with a distance of b (perturbation) to their owner edges, we can
* obtain the the area of the changed element as
......
......@@ -17,7 +17,7 @@ namespace FeTestData
{
class TestFeQUAD9
{
/** Test the nine node iso parameter quadrilateral element
/** Test the nine node iso-parametric quadrilateral element
* Assuming that the edge points are translated outside of the square shape
* element with a distance of b (perturbation) to their owner edges, we can
* obtain the the area of the changed element as
......
......@@ -16,7 +16,7 @@
namespace FeTestData
{
/** Test the six node iso parameter triangle element
/** Test the six node iso-parametric triangle element
* Assuming that the edge points are translated outside of the square shape
* element with a distance of b (perturbation) to their owner edges, we can
* obtain the the area of the changed element as
......
......@@ -101,7 +101,7 @@ using TestTypes =
}
template <class T>
class GradShapeFucntionTest : public ::testing::Test, public T::TestFeType
class GradShapeFunctionTest : public ::testing::Test, public T::TestFeType
{
public:
using ShapeMatrixTypes = typename T::ShapeMatrixTypes;
......@@ -126,7 +126,7 @@ public:
MeshElementType>::IntegrationMethod;
public:
GradShapeFucntionTest()
GradShapeFunctionTest()
: integration_method(3),
element_volume(this->getVolume()),
mesh_element(this->createMeshElement())
......@@ -138,7 +138,7 @@ public:
vec_nodes.push_back(e->getNode(i));
}
~GradShapeFucntionTest() override
~GradShapeFunctionTest() override
{
for (auto itr = vec_nodes.begin(); itr != vec_nodes.end(); ++itr)
delete *itr;
......@@ -158,20 +158,20 @@ public:
}; // NumLibFemIsoTest
template <class T>
const unsigned GradShapeFucntionTest<T>::dim;
const unsigned GradShapeFunctionTest<T>::dim;
template <class T>
const unsigned GradShapeFucntionTest<T>::e_nnodes;
const unsigned GradShapeFunctionTest<T>::e_nnodes;
template <class T>
const unsigned GradShapeFucntionTest<T>::n_sample_pt_order2;
const unsigned GradShapeFunctionTest<T>::n_sample_pt_order2;
template <class T>
const unsigned GradShapeFucntionTest<T>::n_sample_pt_order3;
const unsigned GradShapeFunctionTest<T>::n_sample_pt_order3;
TYPED_TEST_CASE(GradShapeFucntionTest, TestTypes);
TYPED_TEST_CASE(GradShapeFunctionTest, TestTypes);
TYPED_TEST(GradShapeFucntionTest,
TYPED_TEST(GradShapeFunctionTest,
CheckGradShapeFunctionByComputingElementVolume)
{
// Refer to typedefs in the fixture
......
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