40 #ifdef __PARALLEL_MODE 52 #ifdef __PARALLEL_MODE 62 #ifdef __PARALLEL_MODE 79 std :: map< int, FloatArray > :: iterator it = this->
nodalValList.find(node);
81 answer = & it->second;
101 if ( regionNodalNumbers.
at(
node) ) {
103 nodalVal.
resize(regionValSize);
104 for (
int i = 1; i <= regionValSize; i++ ) {
105 nodalVal.
at(i) = rhs.
at( ( regionNodalNumbers.
at(
node) - 1 ) * regionValSize + i );
119 regionNodalNumbers.
resize(nnodes);
120 regionNodalNumbers.
zero();
123 for (
int i = 1; i <= elementRegion.
giveSize(); i++ ) {
124 int ielem = elementRegion.
at(i);
130 for (
int elementNode = 1; elementNode <= elemNodes; elementNode++ ) {
132 if ( regionNodalNumbers.
at(node) == 0 ) {
133 regionNodalNumbers.
at(node) = ++regionDofMans;
int initRegionNodeNumbering(IntArray ®ionNodalNumbers, int ®ionDofMans, Set ®ion)
Determine local region node numbering and determine and check nodal values size.
int giveNumberOfDofManagers() const
Returns number of dof managers in domain.
void zero()
Sets all component to zero.
double & at(int i)
Coefficient access function.
Abstract base class for all finite elements.
int updateRegionRecoveredValues(const IntArray ®ionNodalNumbers, int regionValSize, const FloatArray &rhs)
Update the nodal table according to recovered solution for given region.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
virtual int giveNumberOfDofManagers() const
Element * giveElement(int n)
Service for accessing particular domain fe element.
int giveNodalVector(const FloatArray *&ptr, int node)
Returns vector of recovered values for given node and region.
Set of elements, boundaries, edges and/or nodes.
CommunicatorBuff * commBuff
Common Communicator buffer.
virtual ~NodalRecoveryModel()
Destructor.
void resize(int n)
Checks size of receiver towards requested bounds.
ProblemCommunicator * communicator
Communicator.
StateCounterType stateCounter
Time stamp of recovered values.
virtual int clear()
Clears the receiver's nodal table.
Class representing vector of real numbers.
std::map< int, FloatArray > nodalValList
Map of nodal values.
int giveSize() const
Returns the size of receiver.
the oofem namespace is to define a context or scope in which all oofem names are defined.
DofManager * giveDofManager(int i) const
bool initCommMap
Communication init flag.
NodalRecoveryModel(Domain *d)
Constructor.
virtual int giveRegionRecordSize()
Returns the region record size.
#define OOFEM_WARNING(...)
InternalStateType valType
Determines the type of recovered values.
const IntArray & giveElementList()
Returns list of elements within set.
void resize(int s)
Resizes receiver towards requested size.