Skip to content

Commit

Permalink
Updating GmshIO
Browse files Browse the repository at this point in the history
* Minor formatting, coding guidelines changes.
* Use std::string and std::getline to read file.
* Properly handle EOF and bad stream states when reading file.
* Avoid repeatedly declaring new variables for reading in node ids.
* Moving member functions out of header.
* Add documentation.
* Print a warning if there are unparsed tags for an element.
* If we read nnodes, make sure it matches eletype.nnodes.
* Check that we found a recognized element type.
* Catch the Elem pointer that add_elem() throws back to us.
* Verify that the libmesh Elem we build has the same number of
  nodes as the Gmsh file expects it to.
  • Loading branch information
jwpeterson committed Apr 24, 2014
1 parent d6374c2 commit cf8fe17
Show file tree
Hide file tree
Showing 2 changed files with 305 additions and 270 deletions.
28 changes: 0 additions & 28 deletions include/mesh/gmsh_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,37 +132,9 @@ class GmshIO : public MeshInput<MeshBase>,
* Flag to write binary data.
*/
bool _binary;



};



// ------------------------------------------------------------
// GmshIO inline members
inline
GmshIO::GmshIO (const MeshBase& mesh) :
MeshOutput<MeshBase> (mesh),
_binary (false)
{
}


inline
GmshIO::GmshIO (MeshBase& mesh) :
MeshInput<MeshBase> (mesh),
MeshOutput<MeshBase> (mesh),
_binary (false)
{}

inline
bool & GmshIO::binary ()
{
return _binary;
}


} // namespace libMesh

#endif // LIBMESH_GMSH_IO_H
Loading

0 comments on commit cf8fe17

Please sign in to comment.