MFEM v4.8.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

void Reset () override
 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

int ApplyImpl (Mesh &mesh) override
 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 433 of file mesh_operators.hpp.

Member Function Documentation

◆ ApplyImpl()

int mfem::Rebalancer::ApplyImpl ( Mesh & mesh)
overrideprotectedvirtual

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

Returns
CONTINUE + REBALANCE on success, NONE otherwise.

Implements mfem::MeshOperator.

Definition at line 306 of file mesh_operators.cpp.

◆ Reset()

void mfem::Rebalancer::Reset ( )
inlineoverridevirtual

Empty.

Implements mfem::MeshOperator.

Definition at line 443 of file mesh_operators.hpp.


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