libMesh
all_second_order.C
Go to the documentation of this file.
1 #include <libmesh/libmesh.h>
2 #include <libmesh/distributed_mesh.h>
3 #include <libmesh/mesh_generation.h>
4 
5 #include "test_comm.h"
6 #include "libmesh_cppunit.h"
7 
8 using namespace libMesh;
9 
10 class AllSecondOrderTest : public CppUnit::TestCase
11 {
12 public:
13  CPPUNIT_TEST_SUITE( AllSecondOrderTest );
14 
15  CPPUNIT_TEST( allSecondOrder );
16 
17  CPPUNIT_TEST_SUITE_END();
18 
19 public:
20  void setUp() {}
21 
22  void tearDown() {}
23 
25  {
26  DistributedMesh mesh(*TestCommWorld, /*dim=*/2);
27 
29 
31 
33  }
34 };
35 
36 
libMesh::MeshBase::all_second_order
virtual void all_second_order(const bool full_ordered=true)=0
Converts a (conforming, non-refined) mesh with linear elements into a mesh with second-order elements...
libMesh
The libMesh namespace provides an interface to certain functionality in the library.
Definition: factoryfunction.C:55
AllSecondOrderTest::setUp
void setUp()
Definition: all_second_order.C:20
AllSecondOrderTest
Definition: all_second_order.C:10
mesh
MeshBase & mesh
Definition: mesh_communication.C:1257
libMesh::MeshTools::Generation::build_square
void build_square(UnstructuredMesh &mesh, const unsigned int nx, const unsigned int ny, const Real xmin=0., const Real xmax=1., const Real ymin=0., const Real ymax=1., const ElemType type=INVALID_ELEM, const bool gauss_lobatto_grid=false)
A specialized build_cube() for 2D meshes.
Definition: mesh_generation.C:1501
CPPUNIT_TEST_SUITE_REGISTRATION
CPPUNIT_TEST_SUITE_REGISTRATION(AllSecondOrderTest)
TestCommWorld
libMesh::Parallel::Communicator * TestCommWorld
Definition: driver.C:111
AllSecondOrderTest::allSecondOrder
void allSecondOrder()
Definition: all_second_order.C:24
libmesh_cppunit.h
AllSecondOrderTest::tearDown
void tearDown()
Definition: all_second_order.C:22
libMesh::MeshBase::allow_remote_element_removal
void allow_remote_element_removal(bool allow)
If false is passed in then this mesh will no longer have remote elements deleted when being prepared ...
Definition: mesh_base.h:1034
test_comm.h
libMesh::DistributedMesh
The DistributedMesh class is derived from the MeshBase class, and is intended to provide identical fu...
Definition: distributed_mesh.h:50