xdr_mesh.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 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 
41 class XdrMESH: public XdrMGF
42 {
43 public:
44 
49  XdrMESH() : m_dim(-1) {}
50 
61  void init(XdrIO_TYPE type, const char* fn, int icnt, int dim=3)
62  { XdrMGF::init(type, fn, "mesh", icnt); m_dim = dim;}
63 
67  ~XdrMESH() {}
68 
77  int header(XdrMHEAD *hd);
78 
87  int Icon(int* array, int numvar, int num) { return dataBlk(array, numvar, num);}
88 
96  int coord(Real* array, int dim, int size) { return dataBlk(array, dim, size);}
97 
105  int BC(int* array, int size) { return dataBlk(array, 3, size);}
106 
107 
108 private:
109 
113  int m_dim;
114 };
115 
116 } // namespace libMesh
117 
118 #endif // LIBMESH_XDR_MESH_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:07 UTC

Hosted By:
SourceForge.net Logo