|
OOFEM
2.4
OOFEM.org - Object Oriented Finite Element Solver
|
Ordering from oofem natural ordering (includes all local and shared eqs) to local ordering, where only locally maintained eqs are considered. More...
#include <parallelordering.h>
Inheritance diagram for oofem::Natural2LocalOrdering:
Collaboration diagram for oofem::Natural2LocalOrdering:Public Member Functions | |
| Natural2LocalOrdering () | |
| virtual | ~Natural2LocalOrdering () |
| virtual void | init (EngngModel *, int di, const UnknownNumberingScheme &n) |
| Initiates the receiver. More... | |
| virtual int | giveNewEq (int leq) |
| Finds the global equation from a local equation. More... | |
| virtual int | giveOldEq (int eq) |
| Finds the local equation number from a global equation. More... | |
| virtual void | map2New (IntArray &answer, const IntArray &src, int baseOffset=0) |
| virtual void | map2Old (IntArray &answer, const IntArray &src, int baseOffset=0) |
| IntArray * | giveN2Lmap () |
Public Member Functions inherited from oofem::ParallelOrdering | |
| 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 int | giveNumberOfLocalEqs () |
| Returns number of local eqs; ie. More... | |
| virtual int | giveNumberOfGlobalEqs () |
Protected Attributes | |
| IntArray | n2l |
| Natural to local. More... | |
Ordering from oofem natural ordering (includes all local and shared eqs) to local ordering, where only locally maintained eqs are considered.
Definition at line 133 of file parallelordering.h.
| oofem::Natural2LocalOrdering::Natural2LocalOrdering | ( | ) |
Definition at line 508 of file parallelordering.C.
|
inlinevirtual |
Definition at line 141 of file parallelordering.h.
|
inline |
Definition at line 151 of file parallelordering.h.
Referenced by oofem::PetscSparseMtrx::buildInternalStructure().
|
virtual |
Finds the global equation from a local equation.
| leq | Local equation number. |
Implements oofem::ParallelOrdering.
Definition at line 543 of file parallelordering.C.
References oofem::IntArray::at(), and n2l.
Referenced by oofem::ParallelContext::localDotProduct(), oofem::ParallelContext::localNorm(), and oofem::PetscSparseMtrx::scatterL2G().
|
virtual |
Finds the local equation number from a global equation.
| eq | Global equation number. |
Implements oofem::ParallelOrdering.
Definition at line 549 of file parallelordering.C.
References oofem::IntArray::findFirstIndexOf(), and n2l.
Referenced by map2Old().
|
virtual |
Initiates the receiver.
| em | Engineering model to determine general information about the problem. |
| di | Domain index. |
Implements oofem::ParallelOrdering.
Definition at line 511 of file parallelordering.C.
References oofem::IntArray::at(), oofem::Domain::giveDofManager(), oofem::EngngModel::giveDomain(), oofem::Domain::giveNumberOfDofManagers(), oofem::EngngModel::giveNumberOfDomainEquations(), oofem::ParallelOrdering::isLocal(), n2l, and oofem::IntArray::resize().
Referenced by oofem::PetscSparseMtrx::buildInternalStructure(), and oofem::ParallelContext::init().
|
virtual |
Implements oofem::ParallelOrdering.
Definition at line 558 of file parallelordering.C.
References oofem::IntArray::at(), oofem::IntArray::giveSize(), n2l, and oofem::IntArray::resize().
Referenced by oofem::PetscSparseMtrx::buildInternalStructure().
|
virtual |
Implements oofem::ParallelOrdering.
Definition at line 572 of file parallelordering.C.
References oofem::IntArray::at(), giveOldEq(), oofem::IntArray::giveSize(), and oofem::IntArray::resize().
|
protected |
Natural to local.
Definition at line 137 of file parallelordering.h.
Referenced by giveNewEq(), giveOldEq(), init(), and map2New().