xdr_mesh.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2016 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 #ifndef LIBMESH_XDR_MESH_H
19 #define LIBMESH_XDR_MESH_H
20 
21 // Local Includes
22 #include "libmesh/xdr_mgf.h"
23 
24 // C++ includes
25 
26 namespace libMesh
27 {
28 
29 // forward declarations
30 class XdrMHEAD;
31 
43 class XdrMESH: public XdrMGF
44 {
45 public:
46 
51  XdrMESH() : m_dim(-1) {}
52 
63  void init(XdrIO_TYPE type, const char * fn, int icnt, int dim=3)
64  { XdrMGF::init(type, fn, "mesh", icnt); m_dim = dim;}
65 
69  ~XdrMESH() {}
70 
79  int header(XdrMHEAD * hd);
80 
89  int Icon(int * array, int numvar, int num) { return dataBlk(array, numvar, num);}
90 
98  int coord(Real * array, int dim, int size) { return dataBlk(array, dim, size);}
99 
107  int BC(int * array, int size) { return dataBlk(array, 3, size);}
108 
109 
110 private:
111 
115  int m_dim;
116 };
117 
118 } // namespace libMesh
119 
120 #endif // LIBMESH_XDR_MESH_H
int Icon(int *array, int numvar, int num)
Definition: xdr_mesh.h:89
void init(XdrIO_TYPE t, const char *fn, const char *type, int icnt)
Definition: xdr_mgf.C:68
int dataBlk(int *array, int numvar, int size)
Definition: xdr_mgf.C:264
void ExactErrorEstimator::estimate_error(const System &system, ErrorVector &error_per_cell, const NumericVector< Number > *solution_vector, bool estimate_parent_error) void ExactErrorEstimator const unsigned in dim)
void init(XdrIO_TYPE type, const char *fn, int icnt, int dim=3)
Definition: xdr_mesh.h:63
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
int header(XdrMHEAD *hd)
Definition: xdr_mesh.C:28
int BC(int *array, int size)
Definition: xdr_mesh.h:107
int coord(Real *array, int dim, int size)
Definition: xdr_mesh.h:98