3 #ifdef LIBMESH_HAVE_EXODUS_API 5 #include "libmesh/enum_to_string.h" 6 #include "libmesh/exodusII_io.h" 7 #include "libmesh/mesh_communication.h" 8 #include "libmesh/mesh_serializer.h" 12 template <ElemType elem_type>
25 exii.
read(
"meshes/exodus_elements/read_exodus_" +
31 CPPUNIT_ASSERT(this->meshes_equal_enough(input_mesh,
true));
50 exii.
write(
"write_exodus_" +
57 exii_input.
read(
"write_exodus_" +
63 CPPUNIT_ASSERT(this->meshes_equal_enough(input_mesh,
true));
68 CPPUNIT_TEST( test_read_gold ); \ 69 CPPUNIT_TEST( test_write ); 71 #define INSTANTIATE_EXODUSTEST(elemtype) \ 72 class ExodusTest_##elemtype : public ExodusTest<elemtype> { \ 74 ExodusTest_##elemtype() : \ 75 ExodusTest<elemtype>() { \ 76 if (unitlog->summarized_logs_enabled()) \ 77 this->libmesh_suite_name = "ExodusTest"; \ 79 this->libmesh_suite_name = "ExodusTest_" #elemtype; \ 81 CPPUNIT_TEST_SUITE( ExodusTest_##elemtype ); \ 83 CPPUNIT_TEST_SUITE_END(); \ 86 CPPUNIT_TEST_SUITE_REGISTRATION( ExodusTest_##elemtype ) 104 #endif // LIBMESH_DIM > 1 124 #ifdef LIBMESH_ENABLE_EXCEPTIONS 130 #endif // LIBMESH_DIM > 2 132 #endif // LIBMESH_HAVE_EXODUS_API
libMesh::Parallel::Communicator * TestCommWorld
The ExodusII_IO class implements reading meshes in the ExodusII file format from Sandia National Labs...
void set_max_name_length(unsigned int max_length)
For backwards compatibility, libMesh currently truncates names in ExodusII output to the old default ...
void prepare_for_use(const bool skip_renumber_nodes_and_elements, const bool skip_find_neighbors)
Prepare a newly created (or read) mesh for use.
The libMesh namespace provides an interface to certain functionality in the library.
This is the MeshCommunication class.
virtual void read(const std::string &name) override
This method implements reading a mesh from a specified file.
std::string enum_to_string(const T e)
virtual void write(const std::string &fname) override
This method implements writing a mesh to a specified file.
void broadcast(MeshBase &) const
Finds all the processors that may contain elements that neighbor my elements.
INSTANTIATE_EXODUSTEST(EDGE2)
The Mesh class is a thin wrapper, around the ReplicatedMesh class by default.
processor_id_type processor_id() const