OOFEM 3.0
Loading...
Searching...
No Matches
oofem::Natural2GlobalOrdering Class Reference

#include <parallelordering.h>

Inheritance diagram for oofem::Natural2GlobalOrdering:
Collaboration diagram for oofem::Natural2GlobalOrdering:

Public Member Functions

 Natural2GlobalOrdering ()
virtual ~Natural2GlobalOrdering ()
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
int giveNumberOfLocalEqs () override
int giveNumberOfGlobalEqs () override
IntArraygiveN2Gmap ()
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.

Protected Attributes

IntArray locGlobMap
 Old to new mapping; uses 0-based global eq ordering; 1-based local ordering.
std ::map< int, int > globLocMap
 New to old mapping.
int l_neqs
 Number of local and global eqs.
int g_neqs

Detailed Description

Ordering from oofem natural ordering (includes all local and shared eqs) to global ordering.

Definition at line 100 of file parallelordering.h.

Constructor & Destructor Documentation

◆ Natural2GlobalOrdering()

oofem::Natural2GlobalOrdering::Natural2GlobalOrdering ( )

◆ ~Natural2GlobalOrdering()

virtual oofem::Natural2GlobalOrdering::~Natural2GlobalOrdering ( )
inlinevirtual

Definition at line 113 of file parallelordering.h.

Member Function Documentation

◆ giveN2Gmap()

IntArray * oofem::Natural2GlobalOrdering::giveN2Gmap ( )
inline

Definition at line 126 of file parallelordering.h.

References locGlobMap.

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

◆ giveNewEq()

int oofem::Natural2GlobalOrdering::giveNewEq ( int leq)
overridevirtual

Finds the global equation from a local equation.

Parameters
leqLocal equation number.
Returns
Global equation number.

Implements oofem::ParallelOrdering.

Definition at line 461 of file parallelordering.C.

References locGlobMap.

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

◆ giveNumberOfGlobalEqs()

int oofem::Natural2GlobalOrdering::giveNumberOfGlobalEqs ( )
inlineoverridevirtual
Returns
the total number of equations of the problem.

Reimplemented from oofem::ParallelOrdering.

Definition at line 124 of file parallelordering.h.

References g_neqs.

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

◆ giveNumberOfLocalEqs()

int oofem::Natural2GlobalOrdering::giveNumberOfLocalEqs ( )
inlineoverridevirtual

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 from oofem::ParallelOrdering.

Definition at line 123 of file parallelordering.h.

References l_neqs.

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

◆ giveOldEq()

int oofem::Natural2GlobalOrdering::giveOldEq ( int eq)
overridevirtual

Finds the local equation number from a global equation.

Parameters
eqGlobal equation number.
Returns
Local equation number.

Implements oofem::ParallelOrdering.

Definition at line 467 of file parallelordering.C.

References globLocMap.

Referenced by map2Old().

◆ init()

◆ map2New()

void oofem::Natural2GlobalOrdering::map2New ( IntArray & answer,
const IntArray & src,
int baseOffset = 0 )
overridevirtual

◆ map2Old()

void oofem::Natural2GlobalOrdering::map2Old ( IntArray & answer,
const IntArray & src,
int baseOffset = 0 )
overridevirtual

Member Data Documentation

◆ g_neqs

int oofem::Natural2GlobalOrdering::g_neqs
protected

Definition at line 109 of file parallelordering.h.

Referenced by giveNumberOfGlobalEqs(), init(), and Natural2GlobalOrdering().

◆ globLocMap

std :: map< int, int > oofem::Natural2GlobalOrdering::globLocMap
protected

New to old mapping.

Definition at line 106 of file parallelordering.h.

Referenced by giveOldEq(), init(), and Natural2GlobalOrdering().

◆ l_neqs

int oofem::Natural2GlobalOrdering::l_neqs
protected

Number of local and global eqs.

Definition at line 109 of file parallelordering.h.

Referenced by giveNumberOfLocalEqs(), init(), and Natural2GlobalOrdering().

◆ locGlobMap

IntArray oofem::Natural2GlobalOrdering::locGlobMap
protected

Old to new mapping; uses 0-based global eq ordering; 1-based local ordering.

Definition at line 104 of file parallelordering.h.

Referenced by giveN2Gmap(), giveNewEq(), init(), map2New(), and Natural2GlobalOrdering().


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