35 std::ifstream in (
name.c_str());
46 libmesh_assert_equal_to (this->
mesh().processor_id(), 0);
58 libmesh_error_msg(
"Cannot open dimension 2 mesh file when configured without 2D support.");
62 libmesh_assert (in.good());
64 unsigned int nNodes=0, nElem=0;
70 libmesh_assert_greater (nNodes, 0);
71 libmesh_assert_greater (nElem, 0);
75 Real x=0., y=0., z=0.;
77 for (
unsigned int i=0; i<nNodes; i++)
88 unsigned int node=0, dummy=0;
90 for (
unsigned int i=0; i<nElem; i++)
96 for (
unsigned int n=0; n<3; n++)
std::string name(const ElemQuality q)
A 2D triangular element with 3 nodes.
virtual Node *& set_node(const unsigned int i)
virtual void read(const std::string &name) override
The base class for all geometric element types.
virtual Node * add_point(const Point &p, const dof_id_type id=DofObject::invalid_id, const processor_id_type proc_id=DofObject::invalid_processor_id)=0
virtual Elem * add_elem(Elem *e)=0
void set_mesh_dimension(unsigned char d)
void read_stream(std::istream &in)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual const Node * node_ptr(const dof_id_type i) const =0
A geometric point in (x,y,z) space.