OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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). More...
 
bool isShared (DofManager *dman)
 Returns true if given DofManager is shared between partitions. More...
 
virtual void init (EngngModel *em, int di, const UnknownNumberingScheme &u)=0
 Initiates the receiver. More...
 
virtual int giveNumberOfLocalEqs ()
 Returns number of local eqs; ie. More...
 
virtual int giveNumberOfGlobalEqs ()
 
virtual int giveNewEq (int leq)=0
 Finds the global equation from a local equation. More...
 
virtual int giveOldEq (int eq)=0
 Finds the local equation number from a global equation. More...
 
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

oofem::ParallelOrdering::ParallelOrdering ( )
inline

Definition at line 52 of file parallelordering.h.

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

Definition at line 53 of file parallelordering.h.

Member Function Documentation

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::Natural2LocalOrdering, and oofem::Natural2GlobalOrdering.

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.

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.

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::Natural2LocalOrdering, and oofem::Natural2GlobalOrdering.

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::Natural2LocalOrdering, and oofem::Natural2GlobalOrdering.

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().

virtual void oofem::ParallelOrdering::map2New ( IntArray answer,
const IntArray src,
int  baseOffset = 0 
)
pure virtual
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 documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:39 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011