MFEM  v3.4
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | List of all members
mfem::Rebalancer Class Reference

ParMesh rebalancing operator. More...

#include <mesh_operators.hpp>

Inheritance diagram for mfem::Rebalancer:
[legend]
Collaboration diagram for mfem::Rebalancer:
[legend]

Public Member Functions

virtual void Reset ()
 Empty. More...
 
- Public Member Functions inherited from mfem::MeshOperator
bool Apply (Mesh &mesh)
 Perform the mesh operation. More...
 
bool Stop () const
 Check if STOP action is requested, e.g. stopping criterion is satisfied. More...
 
bool Repeat () const
 Check if REPEAT action is requested, i.e. FiniteElementSpaces and GridFunctions need to be updated, and Apply() must be called again. More...
 
bool Continue () const
 Check if CONTINUE action is requested, i.e. FiniteElementSpaces and GridFunctions need to be updated and computations should continue. More...
 
bool Refined () const
 Check if the mesh was refined. More...
 
bool Derefined () const
 Check if the mesh was de-refined. More...
 
bool Rebalanced () const
 Check if the mesh was rebalanced. More...
 
int GetActionInfo () const
 Get the full ActionInfo value generated by the last call to Apply(). More...
 
virtual ~MeshOperator ()
 The destructor is virtual. More...
 

Protected Member Functions

virtual int ApplyImpl (Mesh &mesh)
 Rebalance a parallel mesh (only non-conforming parallel meshes are supported). More...
 
- Protected Member Functions inherited from mfem::MeshOperator
 MeshOperator ()
 Constructor to be used by derived classes. More...
 

Additional Inherited Members

- Public Types inherited from mfem::MeshOperator
enum  Action {
  NONE = 0, CONTINUE = 1, STOP = 2, REPEAT = 3,
  MASK_UPDATE = 1, MASK_ACTION = 3
}
 Action and information constants and masks. More...
 
enum  Info { REFINED = 4*1, DEREFINED = 4*2, REBALANCED = 4*3, MASK_INFO = ~3 }
 

Detailed Description

ParMesh rebalancing operator.

If the mesh is a parallel mesh, perform rebalancing; otherwise, do nothing.

Definition at line 315 of file mesh_operators.hpp.

Member Function Documentation

int mfem::Rebalancer::ApplyImpl ( Mesh mesh)
protectedvirtual

Rebalance a parallel mesh (only non-conforming parallel meshes are supported).

Returns
CONTINUE + REBALANCE on success, NONE otherwise.

Implements mfem::MeshOperator.

Definition at line 153 of file mesh_operators.cpp.

virtual void mfem::Rebalancer::Reset ( )
inlinevirtual

Empty.

Implements mfem::MeshOperator.

Definition at line 325 of file mesh_operators.hpp.


The documentation for this class was generated from the following files: