142 {
143 LOG_UNIT_TEST;
144
147
148 {
150 exii.write("write_exodus_C0POLYGON.e");
151 }
152
153 Mesh input_mesh(*TestCommWorld);
155 if (input_mesh.processor_id() == 0)
156 exii_input.read("write_exodus_C0POLYGON.e");
157
159 input_mesh.prepare_for_use();
160
161 CPPUNIT_ASSERT_EQUAL(cast_int<dof_id_type>(1), input_mesh.n_elem());
162
163 const Elem *elem = input_mesh.query_elem_ptr(0);
164 bool found_elem = elem;
165 input_mesh.comm().max(found_elem);
166 CPPUNIT_ASSERT(found_elem);
167
168 if (!elem)
169 return;
170
172 CPPUNIT_ASSERT_EQUAL(5u, elem->
n_nodes());
173
176 }
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...