|
OOFEM 3.0
|
#include <parallelordering.h>
Public Member Functions | |
| Natural2LocalOrdering () | |
| virtual | ~Natural2LocalOrdering () |
| void | init (EngngModel *, int di, const UnknownNumberingScheme &n) override |
| int | giveNewEq (int leq) override |
| int | giveOldEq (int eq) override |
| void | map2New (IntArray &answer, const IntArray &src, int baseOffset=0) override |
| void | map2Old (IntArray &answer, const IntArray &src, int baseOffset=0) override |
| 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). | |
| bool | isShared (DofManager *dman) |
| Returns true if given DofManager is shared between partitions. | |
| virtual int | giveNumberOfLocalEqs () |
| virtual int | giveNumberOfGlobalEqs () |
Protected Attributes | |
| IntArray | n2l |
| Natural to local. | |
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.
References n2l, and oofem::ParallelOrdering::ParallelOrdering().
|
inlinevirtual |
Definition at line 141 of file parallelordering.h.
|
inline |
Definition at line 151 of file parallelordering.h.
References n2l.
Referenced by oofem::PetscSparseMtrx::buildInternalStructure().
|
overridevirtual |
Finds the global equation from a local equation.
| leq | Local equation number. |
Implements oofem::ParallelOrdering.
Definition at line 543 of file parallelordering.C.
References n2l.
Referenced by oofem::PetscSparseMtrx::scatterL2G().
|
overridevirtual |
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 n2l.
Referenced by map2Old().
|
overridevirtual |
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::Domain::giveDofManager(), oofem::EngngModel::giveDomain(), oofem::Domain::giveNumberOfDofManagers(), oofem::EngngModel::giveNumberOfDomainEquations(), oofem::ParallelOrdering::isLocal(), and n2l.
Referenced by oofem::PetscSparseMtrx::buildInternalStructure().
|
overridevirtual |
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().
|
overridevirtual |
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 giveN2Lmap(), giveNewEq(), giveOldEq(), init(), map2New(), and Natural2LocalOrdering().