libMesh::MeshSerializer Class Reference
#include <mesh_serializer.h>
Public Member Functions | |
| MeshSerializer (MeshBase &mesh, bool need_serial=true) | |
| ~MeshSerializer () | |
Private Attributes | |
| MeshBase & | _mesh |
| bool | reparallelize |
Detailed Description
Temporarily serialize a ParallelMesh for output; a distributed mesh is allgathered by the MeshSerializer constructor if need_serial is true, then remote elements are deleted again by the destructor.
Definition at line 38 of file mesh_serializer.h.
Constructor & Destructor Documentation
| libMesh::MeshSerializer::MeshSerializer | ( | MeshBase & | mesh, | |
| bool | need_serial = true | |||
| ) |
Definition at line 27 of file mesh_serializer.C.
References _mesh, libMesh::MeshBase::allgather(), libMesh::MeshBase::is_serial(), and reparallelize.
00027 : 00028 _mesh(mesh), 00029 reparallelize(false) 00030 { 00031 parallel_only(); 00032 if (need_serial && !_mesh.is_serial()) { 00033 reparallelize = true; 00034 _mesh.allgather(); 00035 } 00036 }
| libMesh::MeshSerializer::~MeshSerializer | ( | ) |
Definition at line 40 of file mesh_serializer.C.
References _mesh, libMesh::MeshBase::delete_remote_elements(), and reparallelize.
00041 { 00042 if (reparallelize) 00043 _mesh.delete_remote_elements(); 00044 }
Member Data Documentation
MeshBase& libMesh::MeshSerializer::_mesh [private] |
Definition at line 46 of file mesh_serializer.h.
Referenced by MeshSerializer(), and ~MeshSerializer().
bool libMesh::MeshSerializer::reparallelize [private] |
Definition at line 47 of file mesh_serializer.h.
Referenced by MeshSerializer(), and ~MeshSerializer().
The documentation for this class was generated from the following files:
Site Created By: libMesh Developers
Last modified: February 05 2013 19:55:29 UTC
Hosted By: