/usr/include/libmesh/nemesis_io.h is in libmesh-dev 0.7.1-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | // $Id: nemesis_io.h 3944 2010-08-26 19:00:39Z roystgnr $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2008 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#ifndef __nemesis_io_h__
#define __nemesis_io_h__
// C++ inludes
// Local includes
#include "mesh_input.h"
//#include "mesh_output.h" // eventually...
namespace libMesh
{
// Forward declarations
class ParallelMesh;
class Nemesis_IO_Helper;
/**
* The \p Nemesis_IO class implements reading parallel meshes in the
* \p Nemesis file format from Sandia National Labs. Nemesis files
* are essentially in the Exodus format plus some additional information.
* All the Nemesis files for a single mesh have the same basename, e.g.
* cylinder.e, followed by ".size.rank", where size is the total number
* of files the Mesh is split into and rank is the ID of the processor's
* elements that were written to the file.
*
* @author John Peterson, 2008.
*/
// ------------------------------------------------------------
// Nemesis_IO class definition
class Nemesis_IO : public MeshInput<ParallelMesh>
//,public MeshOutput<MeshBase>
{
public:
/**
* Constructor. Takes a writeable reference to a mesh object.
* This is the constructor required to read a mesh.
*/
Nemesis_IO (ParallelMesh& mesh);
/**
* Destructor.
*/
virtual ~Nemesis_IO ();
/**
* Implements reading the mesh from several different files.
* You provide the basename, then LibMesh appends the ".size.rank"
* depending on libMesh::n_processors() and libMesh::processor_id().
*/
virtual void read (const std::string& base_filename);
/**
* Set the flag indicationg if we should be verbose.
*/
void verbose (bool set_verbosity);
private:
#if defined(LIBMESH_HAVE_EXODUS_API) && defined(LIBMESH_HAVE_NEMESIS_API)
Nemesis_IO_Helper *nemhelper;
#endif
bool _verbose;
};
} // namespace libMesh
#endif // #ifndef __nemesis_io_h__
|