Temporarily serializes a DistributedMesh for output. More...
#include <mesh_serializer.h>
Public Member Functions | |
MeshSerializer (MeshBase &mesh, bool need_serial=true, bool serial_only_needed_on_proc_0=false) | |
~MeshSerializer () | |
Private Attributes | |
MeshBase & | _mesh |
bool | reparallelize |
Temporarily serializes a DistributedMesh for output.
Temporarily serialize a DistributedMesh 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 42 of file mesh_serializer.h.
libMesh::MeshSerializer::MeshSerializer | ( | MeshBase & | mesh, |
bool | need_serial = true , |
||
bool | serial_only_needed_on_proc_0 = false |
||
) |
Definition at line 27 of file mesh_serializer.C.
References _mesh, libMesh::MeshBase::allgather(), libMesh::MeshBase::gather_to_zero(), libMesh::MeshBase::is_serial(), mesh, and reparallelize.
libMesh::MeshSerializer::~MeshSerializer | ( | ) |
Definition at line 45 of file mesh_serializer.C.
References _mesh, libMesh::MeshBase::delete_remote_elements(), and reparallelize.
|
private |
Definition at line 50 of file mesh_serializer.h.
Referenced by MeshSerializer(), and ~MeshSerializer().
|
private |
Definition at line 51 of file mesh_serializer.h.
Referenced by MeshSerializer(), and ~MeshSerializer().