OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
oofem::Natural2LocalOrdering Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

oofem::Natural2LocalOrdering::Natural2LocalOrdering ( )

Definition at line 508 of file parallelordering.C.

virtual oofem::Natural2LocalOrdering::~Natural2LocalOrdering ( )
inlinevirtual

Definition at line 141 of file parallelordering.h.

Member Function Documentation

IntArray* oofem::Natural2LocalOrdering::giveN2Lmap ( )
inline

Definition at line 151 of file parallelordering.h.

Referenced by oofem::PetscSparseMtrx::buildInternalStructure().

int oofem::Natural2LocalOrdering::giveNewEq ( int  leq)
virtual

Finds the global equation from a local equation.

Parameters
leqLocal equation number.
Returns
Global 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().

int oofem::Natural2LocalOrdering::giveOldEq ( int  eq)
virtual

Finds the local equation number from a global equation.

Parameters
eqGlobal equation number.
Returns
Local equation number.

Implements oofem::ParallelOrdering.

Definition at line 549 of file parallelordering.C.

References oofem::IntArray::findFirstIndexOf(), and n2l.

Referenced by map2Old().

void oofem::Natural2LocalOrdering::init ( EngngModel em,
int  di,
const UnknownNumberingScheme u 
)
virtual
void oofem::Natural2LocalOrdering::map2New ( IntArray answer,
const IntArray src,
int  baseOffset = 0 
)
virtual
void oofem::Natural2LocalOrdering::map2Old ( IntArray answer,
const IntArray src,
int  baseOffset = 0 
)
virtual

Member Data Documentation

IntArray oofem::Natural2LocalOrdering::n2l
protected

Natural to local.

Definition at line 137 of file parallelordering.h.

Referenced by giveNewEq(), giveOldEq(), init(), and map2New().


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:38 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011