nemesis_io.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 
19 
20 #ifndef LIBMESH_NEMESIS_IO_H
21 #define LIBMESH_NEMESIS_IO_H
22 
23 
24 // Local includes
25 #include "libmesh/libmesh_common.h"
26 #include "libmesh/mesh_input.h"
27 #include "libmesh/mesh_output.h"
29 
30 // C++ includes
31 
32 namespace libMesh
33 {
34 
35 // Forward declarations
36 class Nemesis_IO_Helper;
37 
38 
51 // ------------------------------------------------------------
52 // Nemesis_IO class definition
53  class Nemesis_IO : public MeshInput<MeshBase>,
54  public MeshOutput<MeshBase>,
55  public ParallelObject
56 {
57 
58  public:
59 
64  explicit
66 
70  virtual ~Nemesis_IO ();
71 
77  virtual void read (const std::string& base_filename);
78 
82  virtual void write (const std::string& base_filename);
83 
87  void write_timestep (const std::string& fname, const EquationSystems& es, const int timestep, const Real time);
88 
92  void write_nodal_data (const std::string& fname, const std::vector<Number>& soln, const std::vector<std::string>& names);
93 
97  void verbose (bool set_verbosity);
98 
102  void write_global_data (const std::vector<Number>&,
103  const std::vector<std::string>&);
104 
108  void write_information_records (const std::vector<std::string>&);
109 
115  void append(bool val);
116 
117 private:
118 #if defined(LIBMESH_HAVE_EXODUS_API) && defined(LIBMESH_HAVE_NEMESIS_API)
120 #endif
122 
123  bool _verbose;
124 
129  bool _append;
130 };
131 
132 
133 } // namespace libMesh
134 
135 
136 #endif // LIBMESH_NEMESIS_IO_H

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

Hosted By:
SourceForge.net Logo