Epetra_FEVector Class Reference

Epetra Finite-Element Vector. More...

#include <Epetra_FEVector.h>

Inheritance diagram for Epetra_FEVector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Epetra_FEVector (const Epetra_BlockMap &Map, int numVectors=1, bool ignoreNonLocalEntries=false)
 Constructor that requires a map specifying a non-overlapping data layout.
 Epetra_FEVector (const Epetra_FEVector &source)
 Copy constructor.
virtual ~Epetra_FEVector ()
 Destructor.
int SumIntoGlobalValues (int numIDs, const int *GIDs, const double *values, int vectorIndex=0)
 Accumulate values into the vector, adding them to any values that already exist for the specified indices.
int SumIntoGlobalValues (const Epetra_IntSerialDenseVector &GIDs, const Epetra_SerialDenseVector &values, int vectorIndex=0)
 Accumulate values into the vector, adding them to any values that already exist for the specified GIDs.
int ReplaceGlobalValues (int numIDs, const int *GIDs, const double *values, int vectorIndex=0)
 Copy values into the vector overwriting any values that already exist for the specified indices.
int ReplaceGlobalValues (const Epetra_IntSerialDenseVector &GIDs, const Epetra_SerialDenseVector &values, int vectorIndex=0)
 Copy values into the vector, replacing any values that already exist for the specified GIDs.
int SumIntoGlobalValues (int numIDs, const int *GIDs, const int *numValuesPerID, const double *values, int vectorIndex=0)
int ReplaceGlobalValues (int numIDs, const int *GIDs, const int *numValuesPerID, const double *values, int vectorIndex=0)
int GlobalAssemble (Epetra_CombineMode mode=Add)
 Gather any overlapping/shared data into the non-overlapping partitioning defined by the Map that was passed to this vector at construction time.
void setIgnoreNonLocalEntries (bool flag)
 Set whether or not non-local data values should be ignored.
Epetra_FEVectoroperator= (const Epetra_FEVector &source)

Private Member Functions

int inputValues (int numIDs, const int *GIDs, const double *values, bool suminto, int vectorIndex)
int inputValues (int numIDs, const int *GIDs, const int *numValuesPerID, const double *values, bool suminto, int vectorIndex)
int inputNonlocalValue (int GID, double value, bool suminto, int vectorIndex)
int inputNonlocalValues (int GID, int numValues, const double *values, bool suminto, int vectorIndex)
void destroyNonlocalData ()

Private Attributes

int myFirstID_
int myNumIDs_
int * nonlocalIDs_
int * nonlocalElementSize_
int numNonlocalIDs_
int numNonlocalIDsAlloc_
double ** nonlocalCoefs_
int numNonlocalCoefs_
int numNonlocalCoefsAlloc_
bool ignoreNonLocalEntries_

Detailed Description

Epetra Finite-Element Vector.

This class inherits Epetra_MultiVector and thus provides all Epetra_MultiVector functionality.

The added functionality provided by Epetra_FEVector is the ability to perform finite-element style vector assembly. It accepts sub-vector contributions, such as those that would come from element-load vectors, etc., and these sub-vectors need not be owned by the local processor. In other words, the user can assemble overlapping data (e.g., corresponding to shared finite-element nodes). When the user is finished assembling their vector data, they then call the method Epetra_FEVector::GlobalAssemble() which gathers the overlapping data (all non-local data that was input on each processor) into the data-distribution specified by the map that the Epetra_FEVector is constructed with.

Definition at line 56 of file Epetra_FEVector.h.


Constructor & Destructor Documentation

Epetra_FEVector::Epetra_FEVector ( const Epetra_BlockMap Map,
int  numVectors = 1,
bool  ignoreNonLocalEntries = false 
)

Constructor that requires a map specifying a non-overlapping data layout.

Parameters:
Map Map describing a non-overlapping distribution for the underlying Epetra_MultiVector that this Epetra_FEVector will be funnelling data into.
numVectors Optional argument, default value is 1. (See the documentation for Epetra_MultiVector for the meaning of this argument.
ignoreNonLocalEntries Optional argument, default value is false. Under certain special circumstances it is desirable to have non-local contributions ignored rather than saving them for the GlobalAssemble step.

Definition at line 42 of file Epetra_FEVector.cpp.

Epetra_FEVector::Epetra_FEVector ( const Epetra_FEVector source  ) 

Copy constructor.

Definition at line 64 of file Epetra_FEVector.cpp.

Epetra_FEVector::~Epetra_FEVector (  )  [virtual]

Destructor.

Definition at line 80 of file Epetra_FEVector.cpp.


Member Function Documentation

int Epetra_FEVector::SumIntoGlobalValues ( int  numIDs,
const int *  GIDs,
const double *  values,
int  vectorIndex = 0 
)

Accumulate values into the vector, adding them to any values that already exist for the specified indices.

Definition at line 89 of file Epetra_FEVector.cpp.

int Epetra_FEVector::SumIntoGlobalValues ( const Epetra_IntSerialDenseVector GIDs,
const Epetra_SerialDenseVector values,
int  vectorIndex = 0 
)

Accumulate values into the vector, adding them to any values that already exist for the specified GIDs.

Parameters:
GIDs List of global ids. Must be the same length as the accompanying list of values.
values List of coefficient values. Must be the same length as the accompanying list of GIDs.

Definition at line 97 of file Epetra_FEVector.cpp.

int Epetra_FEVector::ReplaceGlobalValues ( int  numIDs,
const int *  GIDs,
const double *  values,
int  vectorIndex = 0 
)

Copy values into the vector overwriting any values that already exist for the specified indices.

Definition at line 120 of file Epetra_FEVector.cpp.

int Epetra_FEVector::ReplaceGlobalValues ( const Epetra_IntSerialDenseVector GIDs,
const Epetra_SerialDenseVector values,
int  vectorIndex = 0 
)

Copy values into the vector, replacing any values that already exist for the specified GIDs.

Parameters:
GIDs List of global ids. Must be the same length as the accompanying list of values.
values List of coefficient values. Must be the same length as the accompanying list of GIDs.

Definition at line 129 of file Epetra_FEVector.cpp.

int Epetra_FEVector::SumIntoGlobalValues ( int  numIDs,
const int *  GIDs,
const int *  numValuesPerID,
const double *  values,
int  vectorIndex = 0 
)

Definition at line 110 of file Epetra_FEVector.cpp.

int Epetra_FEVector::ReplaceGlobalValues ( int  numIDs,
const int *  GIDs,
const int *  numValuesPerID,
const double *  values,
int  vectorIndex = 0 
)

Definition at line 173 of file Epetra_FEVector.cpp.

int Epetra_FEVector::GlobalAssemble ( Epetra_CombineMode  mode = Add  ) 

Gather any overlapping/shared data into the non-overlapping partitioning defined by the Map that was passed to this vector at construction time.

Data imported from other processors is stored on the owning processor with a "sumInto" or accumulate operation. This is a collective method -- every processor must enter it before any will complete it.

Definition at line 354 of file Epetra_FEVector.cpp.

void Epetra_FEVector::setIgnoreNonLocalEntries ( bool  flag  )  [inline]

Set whether or not non-local data values should be ignored.

Definition at line 144 of file Epetra_FEVector.h.

Epetra_FEVector & Epetra_FEVector::operator= ( const Epetra_FEVector source  ) 

Definition at line 398 of file Epetra_FEVector.cpp.

int Epetra_FEVector::inputValues ( int  numIDs,
const int *  GIDs,
const double *  values,
bool  suminto,
int  vectorIndex 
) [private]

Definition at line 142 of file Epetra_FEVector.cpp.

int Epetra_FEVector::inputValues ( int  numIDs,
const int *  GIDs,
const int *  numValuesPerID,
const double *  values,
bool  suminto,
int  vectorIndex 
) [private]

Definition at line 183 of file Epetra_FEVector.cpp.

int Epetra_FEVector::inputNonlocalValue ( int  GID,
double  value,
bool  suminto,
int  vectorIndex 
) [private]

Definition at line 219 of file Epetra_FEVector.cpp.

int Epetra_FEVector::inputNonlocalValues ( int  GID,
int  numValues,
const double *  values,
bool  suminto,
int  vectorIndex 
) [private]

Definition at line 279 of file Epetra_FEVector.cpp.

void Epetra_FEVector::destroyNonlocalData (  )  [private]

Definition at line 441 of file Epetra_FEVector.cpp.


Member Data Documentation

Definition at line 170 of file Epetra_FEVector.h.

Definition at line 171 of file Epetra_FEVector.h.

Definition at line 173 of file Epetra_FEVector.h.

Definition at line 174 of file Epetra_FEVector.h.

Definition at line 175 of file Epetra_FEVector.h.

Definition at line 176 of file Epetra_FEVector.h.

double** Epetra_FEVector::nonlocalCoefs_ [private]

Definition at line 177 of file Epetra_FEVector.h.

Definition at line 178 of file Epetra_FEVector.h.

Definition at line 179 of file Epetra_FEVector.h.

Definition at line 181 of file Epetra_FEVector.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 09:58:45 2011 for Epetra Package Browser (Single Doxygen Collection) by  doxygen 1.6.3