146 {
147 LOG_UNIT_TEST;
148
151
152 {
154 exii.write("write_exodus_C0POLYGON.e");
155 }
156
157 Mesh input_mesh(*TestCommWorld);
159 if (input_mesh.processor_id() == 0)
160 exii_input.read("write_exodus_C0POLYGON.e");
161
163 input_mesh.prepare_for_use();
164
165 CPPUNIT_ASSERT_EQUAL(cast_int<dof_id_type>(1), input_mesh.n_elem());
166
167 const Elem *elem = input_mesh.query_elem_ptr(0);
168 bool found_elem = elem;
169 input_mesh.comm().max(found_elem);
170 CPPUNIT_ASSERT(found_elem);
171
172 if (!elem)
173 return;
174
176 CPPUNIT_ASSERT_EQUAL(5u, elem->
n_nodes());
177
180 }
void build_pentagon(Mesh &mesh)
virtual unsigned int n_nodes() const =0
virtual ElemType type() const =0
The ExodusII_IO class implements reading meshes in the ExodusII file format from Sandia National Labs...
This is the MeshCommunication class.
void broadcast(MeshBase &) const
This method takes a mesh (which is assumed to reside on processor 0) and broadcasts it to all the oth...
The Mesh class is a thin wrapper, around the ReplicatedMesh class by default.
Tnew cast_int(Told oldvar)
IntRange< T > make_range(T beg, T end)
The 2-parameter make_range() helper function returns an IntRange<T> when both input parameters are of...