OOFEM 3.0
Loading...
Searching...
No Matches
oofem::ParallelOrdering Class Referenceabstract

#include <parallelordering.h>

Inheritance diagram for oofem::ParallelOrdering:

Public Member Functions

 ParallelOrdering ()
virtual ~ParallelOrdering ()
bool isLocal (DofManager *dman)
 Returns true if given DofManager is local (ie maintained by the receiver processor).
bool isShared (DofManager *dman)
 Returns true if given DofManager is shared between partitions.
virtual void init (EngngModel *em, int di, const UnknownNumberingScheme &u)=0
virtual int giveNumberOfLocalEqs ()
virtual int giveNumberOfGlobalEqs ()
virtual int giveNewEq (int leq)=0
virtual int giveOldEq (int eq)=0
virtual void map2New (IntArray &answer, const IntArray &src, int baseOffset=0)=0
virtual void map2Old (IntArray &answer, const IntArray &src, int baseOffset=0)=0

Detailed Description

Definition at line 49 of file parallelordering.h.

Constructor & Destructor Documentation

◆ ParallelOrdering()

oofem::ParallelOrdering::ParallelOrdering ( )
inline

◆ ~ParallelOrdering()

virtual oofem::ParallelOrdering::~ParallelOrdering ( )
inlinevirtual

Definition at line 53 of file parallelordering.h.

Member Function Documentation

◆ giveNewEq()

virtual int oofem::ParallelOrdering::giveNewEq ( int leq)
pure virtual

Finds the global equation from a local equation.

Parameters
leqLocal equation number.
Returns
Global equation number.

Implemented in oofem::Natural2GlobalOrdering, and oofem::Natural2LocalOrdering.

◆ giveNumberOfGlobalEqs()

virtual int oofem::ParallelOrdering::giveNumberOfGlobalEqs ( )
inlinevirtual
Returns
the total number of equations of the problem.

Reimplemented in oofem::Natural2GlobalOrdering.

Definition at line 77 of file parallelordering.h.

◆ giveNumberOfLocalEqs()

virtual int oofem::ParallelOrdering::giveNumberOfLocalEqs ( )
inlinevirtual

Returns number of local eqs; ie. those that belong to receiver processor; Note that some eqs may be owned by remote processors (some shared nodes,...). The sum of local eqs for all processors should give total number of eqs.

Returns
Numbering of local equations.

Reimplemented in oofem::Natural2GlobalOrdering.

Definition at line 73 of file parallelordering.h.

◆ giveOldEq()

virtual int oofem::ParallelOrdering::giveOldEq ( int eq)
pure virtual

Finds the local equation number from a global equation.

Parameters
eqGlobal equation number.
Returns
Local equation number.

Implemented in oofem::Natural2GlobalOrdering, and oofem::Natural2LocalOrdering.

◆ init()

virtual void oofem::ParallelOrdering::init ( EngngModel * em,
int di,
const UnknownNumberingScheme & u )
pure virtual

Initiates the receiver.

Parameters
emEngineering model to determine general information about the problem.
diDomain index.

Implemented in oofem::Natural2GlobalOrdering, and oofem::Natural2LocalOrdering.

◆ isLocal()

◆ isShared()

bool oofem::ParallelOrdering::isShared ( DofManager * dman)

Returns true if given DofManager is shared between partitions.

Definition at line 61 of file parallelordering.C.

References oofem::DofManager_shared, and oofem::DofManager::giveParallelMode().

Referenced by oofem::Natural2GlobalOrdering::init().

◆ map2New()

virtual void oofem::ParallelOrdering::map2New ( IntArray & answer,
const IntArray & src,
int baseOffset = 0 )
pure virtual

◆ map2Old()

virtual void oofem::ParallelOrdering::map2Old ( IntArray & answer,
const IntArray & src,
int baseOffset = 0 )
pure virtual

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

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011