MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
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.
 
- Public Member Functions inherited from mfem::MeshOperator
bool Apply (Mesh &mesh)
 Perform the mesh operation.
 
bool Stop () const
 Check if STOP action is requested, e.g. stopping criterion is satisfied.
 
bool Repeat () const
 Check if REPEAT action is requested, i.e. FiniteElementSpaces and GridFunctions need to be updated, and Apply() must be called again.
 
bool Continue () const
 Check if CONTINUE action is requested, i.e. FiniteElementSpaces and GridFunctions need to be updated and computations should continue.
 
bool Refined () const
 Check if the mesh was refined.
 
bool Derefined () const
 Check if the mesh was de-refined.
 
bool Rebalanced () const
 Check if the mesh was rebalanced.
 
int GetActionInfo () const
 Get the full ActionInfo value generated by the last call to Apply().
 
virtual ~MeshOperator ()
 The destructor is virtual.
 

Protected Member Functions

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

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 430 of file mesh_operators.hpp.

Member Function Documentation

◆ ApplyImpl()

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 297 of file mesh_operators.cpp.

◆ Reset()

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

Empty.

Implements mfem::MeshOperator.

Definition at line 440 of file mesh_operators.hpp.


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