xdr_soln.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_SOLN_H
19 #define LIBMESH_XDR_SOLN_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 XdrSHEAD;
31 
43 class XdrSOLN: public XdrMGF
44 {
45 public:
50  XdrSOLN() : m_wrtVar(-1) {}
51 
61  void init(XdrIO_TYPE type, const char * fn, int icnt)
62  {XdrMGF::init (type, fn, "soln",icnt);}
63 
67  ~XdrSOLN() {}
68 
77  int header(XdrSHEAD * hd);
78 
86  int values(Real * array, int size) { return dataBlk(array, m_wrtVar, size);}
87 
88 private:
89  int m_wrtVar;
90 };
91 
92 
93 } // namespace libMesh
94 
95 #endif // LIBMESH_XDR_SOLN_H
void init(XdrIO_TYPE type, const char *fn, int icnt)
Definition: xdr_soln.h:61
int header(XdrSHEAD *hd)
Definition: xdr_soln.C:32
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
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
int values(Real *array, int size)
Definition: xdr_soln.h:86