44 #ifdef __PARALLEL_MODE 59 #ifdef __PARALLEL_MODE 65 #ifdef __VERBOSE_PARALLEL 77 #ifdef __PARALLEL_MODE 84 #ifdef __PARALLEL_MODE 93 #ifdef __PARALLEL_MODE 100 #ifdef __PARALLEL_MODE 115 #ifdef __PARALLE_MODE 117 return this->giveN2GMap()->isLocal(dman);
129 #ifdef __PARALLEL_MODE 131 double norm2 = 0.0, norm2_tot;
134 for (
int i = 0; i < size; i++ ) {
136 norm2 += src(i) * src(i);
140 return sqrt(norm2_tot);
150 #ifdef __PARALLEL_MODE 152 double val = 0.0, val_tot = 0.0;
155 for (
int i = 0; i < size; i++ ) {
171 #ifdef __PARALLEL_MODE 186 #ifdef __PARALLEL_MODE 195 #ifdef __PARALLEL_MODE
The representation of EngngModel default unknown numbering.
int giveNumberOfLocalEqs()
Returns number of local eqs; ie.
virtual int giveNumberOfDomainEquations(int di, const UnknownNumberingScheme &num)
Returns number of equations for given domain in active (current time step) time step.
bool isLocal(DofManager *dman)
virtual void init(EngngModel *, int di, const UnknownNumberingScheme &n)
Initiates the receiver.
void init(int newDi)
Initiates the mapping for given domain.
Ordering from oofem natural ordering (includes all local and shared eqs) to local ordering...
bool isParallel() const
Returns true if receiver in parallel mode.
Base class for dof managers.
Natural2LocalOrdering * giveN2Lmap()
double localDotProduct(const FloatArray &a, const FloatArray &b)
Dot product for a locally distributed array.
double dotProduct(const FloatArray &x) const
Computes the dot product (or inner product) of receiver and argument.
virtual void init(EngngModel *, int di, const UnknownNumberingScheme &n)
Initiates the receiver.
int giveNumberOfLocalEqs()
virtual int giveNewEq(int leq)
Finds the global equation from a local equation.
int giveNumberOfGlobalEqs()
MPI_Comm giveParallelComm()
Returns the communication object of reciever.
Class representing vector of real numbers.
int giveNumberOfGlobalEqs()
double computeNorm() const
Computes the norm (or length) of the vector.
int giveNumberOfNaturalEqs()
int giveRank() const
Returns domain rank in a group of collaborating processes (0..groupSize-1)
Natural2LocalOrdering n2l
Natural2GlobalOrdering n2g
const double * givePointer() const
Gives the pointer to the raw data, breaking encapsulation.
double accumulate(double local)
Accumulates the global value.
Abstract base class representing the "problem" under consideration.
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.
double localNorm(const FloatArray &src)
Norm for a locally distributed array.
ParallelContext(EngngModel *e)
Creates a context belonging to a system of equations in a given engineering model.
void resize(int s)
Resizes receiver towards requested size.