//---------------------------------------------------------------------------
// $Id$
//
-// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors
+// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
DEAL_II_NAMESPACE_OPEN
template <int dim, int space_dim> class Triangulation;
-template <int dim> class CellData;
-class SubCellData;
+template <int dim> struct CellData;
+struct SubCellData;
/**
*
*
* <h3>Structure of input grid data. The GridReordering class</h3>
- *
+ *
* It is your duty to use a correct numbering of vertices in the cell
* list, i.e. for lines in 1d, you have to first give the vertex with
* the lower coordinate value, then that with the higher coordinate
/// Use read_tecplot()
tecplot
};
-
+
/**
* Constructor.
*/
GridIn ();
-
+
/**
* Attach this triangulation
* to be fed with the grid data.
* used.
*/
void read (std::istream &in, Format format=Default);
-
+
/**
* Open the file given by the
* string and call the previous
* used is <code>MESH</code>.
*/
void read (const std::string &in, Format format=Default);
-
+
/**
* Read grid data from an ucd file.
* Numerical data is ignored.
* format.
*/
void read_dbmesh (std::istream &in);
-
+
/**
* Read grid data from a file
* containing data in the XDA
* format.
*/
void read_xda (std::istream &in);
-
+
/**
* Read grid data from an msh
* file, either version 1 or
* than Gmsh.
*/
void read_msh (std::istream &in);
-
+
/**
* Read grid data from a NetCDF
* file. The only data format
* NetCDF library.
*/
void read_netcdf (const std::string &filename);
-
+
/**
* Read grid data from a file containing
* tecplot ASCII data. This also works in
* installation.
*/
void read_tecplot (std::istream &in);
-
+
/**
* Returns the standard suffix
* for a file in this format.
*/
static std::string default_suffix (const Format format);
-
+
/**
* Return the enum Format for the
* format name.
std::string,
<< "The string <" << arg1 << "> is not recognized at the present"
<< " position of a DB Mesh file.");
-
+
/**
* Exception
*/
int,
<< "The specified dimension " << arg1
<< " is not the same as that of the triangulation to be created.");
-
+
DeclException1 (ExcInvalidGMSHInput,
std::string,
<< "The string <" << arg1 << "> is not recognized at the present"
<< "5 Hexahedron (8 nodes, 12 edges, 6 faces).\n"
<< "15 Point (1 node, ignored when read)");
-
+
DeclException0 (ExcGmshNoCellInformation);
protected:
/**
* be fed with the data read in.
*/
SmartPointer<Triangulation<dim,spacedim>,GridIn<dim,spacedim> > tria;
-
+
/**
* This function can write the
* raw cell data objects created
* whitespace.
*/
static void skip_empty_lines (std::istream &in);
-
+
/**
* Skip lines of comment that
* start with the indicated
std::vector<unsigned int> &IJK,
bool &structured,
bool &blocked);
-
+
/**
* Input format used by read() if
* no format is given.