nemesis_io.h
Go to the documentation of this file.00001 // The libMesh Finite Element Library. 00002 // Copyright (C) 2002-2012 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner 00003 00004 // This library is free software; you can redistribute it and/or 00005 // modify it under the terms of the GNU Lesser General Public 00006 // License as published by the Free Software Foundation; either 00007 // version 2.1 of the License, or (at your option) any later version. 00008 00009 // This library is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 // Lesser General Public License for more details. 00013 00014 // You should have received a copy of the GNU Lesser General Public 00015 // License along with this library; if not, write to the Free Software 00016 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 00018 00019 00020 #ifndef LIBMESH_NEMESIS_IO_H 00021 #define LIBMESH_NEMESIS_IO_H 00022 00023 00024 // Local includes 00025 #include "libmesh/libmesh_common.h" 00026 #include "libmesh/mesh_input.h" 00027 #include "libmesh/mesh_output.h" 00028 00029 // C++ includes 00030 00031 namespace libMesh 00032 { 00033 00034 // Forward declarations 00035 class Nemesis_IO_Helper; 00036 00037 00050 // ------------------------------------------------------------ 00051 // Nemesis_IO class definition 00052 class Nemesis_IO : public MeshInput<MeshBase>, 00053 public MeshOutput<MeshBase> 00054 { 00055 00056 public: 00057 00062 explicit 00063 Nemesis_IO (MeshBase& mesh); 00064 00068 virtual ~Nemesis_IO (); 00069 00075 virtual void read (const std::string& base_filename); 00076 00080 virtual void write (const std::string& base_filename); 00081 00085 void write_timestep (const std::string& fname, const EquationSystems& es, const int timestep, const Real time); 00086 00090 void write_nodal_data (const std::string& fname, const std::vector<Number>& soln, const std::vector<std::string>& names); 00091 00095 void verbose (bool set_verbosity); 00096 00100 void write_global_data (const std::vector<Number>&, 00101 const std::vector<std::string>&); 00102 00106 void write_information_records (const std::vector<std::string>&); 00107 00108 private: 00109 #if defined(LIBMESH_HAVE_EXODUS_API) && defined(LIBMESH_HAVE_NEMESIS_API) 00110 Nemesis_IO_Helper *nemhelper; 00111 #endif 00112 int _timestep; 00113 00114 bool _verbose; 00115 }; 00116 00117 00118 } // namespace libMesh 00119 00120 00121 #endif // LIBMESH_NEMESIS_IO_H
Site Created By: libMesh Developers
Last modified: February 05 2013 19:54:48 UTC
Hosted By: