Version: 5.1.6

ParaMEDMEM.MEDCouplingGaussLocalization Class Reference

#include <MEDCouplingGaussLocalization.hxx>

Public Member Functions

 MEDCouplingGaussLocalization (INTERP_KERNEL::NormalizedCellType type, const std::vector< double > &refCoo, const std::vector< double > &gsCoo, const std::vector< double > &w) throw (INTERP_KERNEL::Exception)
INTERP_KERNEL::NormalizedCellType getType () const
int getNumberOfGaussPt () const
int getDimension () const
int getNumberOfPtsInRefCell () const
void checkCoherency () const throw (INTERP_KERNEL::Exception)
bool isEqual (const MEDCouplingGaussLocalization &other, double eps) const
void pushTinySerializationIntInfo (std::vector< int > &tinyInfo) const
void pushTinySerializationDblInfo (std::vector< double > &tinyInfo) const
const doublefillWithValues (const double *vals)
const std::vector< double > & getRefCoords () const
double getRefCoord (int ptIdInCell, int comp) const throw (INTERP_KERNEL::Exception)
const std::vector< double > & getGaussCoords () const
double getGaussCoord (int gaussPtIdInCell, int comp) const throw (INTERP_KERNEL::Exception)
const std::vector< double > & getWeights () const
double getWeight (int gaussPtIdInCell, double newVal) const throw (INTERP_KERNEL::Exception)
void setRefCoord (int ptIdInCell, int comp, double newVal) throw (INTERP_KERNEL::Exception)
void setGaussCoord (int gaussPtIdInCell, int comp, double newVal) throw (INTERP_KERNEL::Exception)
void setWeight (int gaussPtIdInCell, double newVal) throw (INTERP_KERNEL::Exception)
int checkCoherencyOfRequest (int gaussPtIdInCell, int comp) const throw (INTERP_KERNEL::Exception)

Static Public Member Functions

static MEDCouplingGaussLocalization BuildNewInstanceFromTinyInfo (int dim, const std::vector< int > &tinyData)
static bool AreAlmostEqual (const std::vector< double > &v1, const std::vector< double > &v2, double eps)

Data Fields

INTERP_KERNEL::NormalizedCellType _type
std::vector< double_ref_coord
std::vector< double_gauss_coord
std::vector< double_weight

Constructor & Destructor Documentation

ParaMEDMEM.MEDCouplingGaussLocalization::MEDCouplingGaussLocalization ( INTERP_KERNEL::NormalizedCellType  type,
const std::vector< double > &  refCoo,
const std::vector< double > &  gsCoo,
const std::vector< double > &  w 
) throw (INTERP_KERNEL::Exception)

Member Function Documentation

INTERP_KERNEL::NormalizedCellType ParaMEDMEM.MEDCouplingGaussLocalization.getType (  )  const
int ParaMEDMEM.MEDCouplingGaussLocalization.getNumberOfGaussPt (  )  const
int ParaMEDMEM.MEDCouplingGaussLocalization::getDimension (  )  const
int ParaMEDMEM.MEDCouplingGaussLocalization::getNumberOfPtsInRefCell (  )  const
void ParaMEDMEM.MEDCouplingGaussLocalization::checkCoherency (  )  const throw (INTERP_KERNEL::Exception)
bool ParaMEDMEM.MEDCouplingGaussLocalization::isEqual ( const MEDCouplingGaussLocalization other,
double  eps 
) const
void ParaMEDMEM.MEDCouplingGaussLocalization::pushTinySerializationIntInfo ( std::vector< int > &  tinyInfo  )  const

Completely useless method for end user. Only for CORBA MPI serialization/unserialization. push at the end of tinyInfo its basic serialization info. The size of pushed data is always the same.

Parameters:
tinyInfo inout parameter.

References ParaMEDMEM.MEDCouplingGaussLocalization._type, ParaMEDMEM.MEDCouplingGaussLocalization.getNumberOfGaussPt(), and ParaMEDMEM.MEDCouplingGaussLocalization.getNumberOfPtsInRefCell().

void ParaMEDMEM.MEDCouplingGaussLocalization::pushTinySerializationDblInfo ( std::vector< double > &  tinyInfo  )  const

Completely useless method for end user. Only for CORBA MPI serialization/unserialization. push at the end of tinyInfo its basic serialization info. The size of pushed data is NOT always the same contrary to pushTinySerializationIntInfo.

Parameters:
tinyInfo inout parameter.

References ParaMEDMEM.MEDCouplingGaussLocalization._gauss_coord, ParaMEDMEM.MEDCouplingGaussLocalization._ref_coord, and ParaMEDMEM.MEDCouplingGaussLocalization._weight.

const double * ParaMEDMEM.MEDCouplingGaussLocalization::fillWithValues ( const double vals  ) 

This method operates the exact inverse operation than ParaMEDMEM.MEDCouplingGaussLocalization.pushTinySerializationDblInfo method. This is one of the last step of unserialization process. This method should be called on an object resized by buildNewInstanceFromTinyInfo static method. This method takes in argument a pointer 'vals' that point to the begin of double data pushed remotely by pushTinySerializationDblInfo method. This method returns the pointer 'vals' with an offset of size what it has been read in this method.

References ParaMEDMEM.MEDCouplingGaussLocalization._gauss_coord, ParaMEDMEM.MEDCouplingGaussLocalization._ref_coord, and ParaMEDMEM.MEDCouplingGaussLocalization._weight.

const std::vector<double>& ParaMEDMEM.MEDCouplingGaussLocalization.getRefCoords (  )  const
double ParaMEDMEM.MEDCouplingGaussLocalization::getRefCoord ( int  ptIdInCell,
int  comp 
) const throw (INTERP_KERNEL::Exception)
const std::vector<double>& ParaMEDMEM.MEDCouplingGaussLocalization.getGaussCoords (  )  const
double ParaMEDMEM.MEDCouplingGaussLocalization::getGaussCoord ( int  gaussPtIdInCell,
int  comp 
) const throw (INTERP_KERNEL::Exception)
const std::vector<double>& ParaMEDMEM.MEDCouplingGaussLocalization.getWeights (  )  const
double ParaMEDMEM.MEDCouplingGaussLocalization::getWeight ( int  gaussPtIdInCell,
double  newVal 
) const throw (INTERP_KERNEL::Exception)
void ParaMEDMEM.MEDCouplingGaussLocalization::setRefCoord ( int  ptIdInCell,
int  comp,
double  newVal 
) throw (INTERP_KERNEL::Exception)

This method sets the comp_th component of ptIdInCell_th point coordinate of reference element of type this->_type.

Exceptions:
if not 0<=ptIdInCell<nbOfNodePerCell or if not 0<=comp<dim

References INTERP_KERNEL.CellModel.GetCellModel(), INTERP_KERNEL.CellModel.getDimension(), INTERP_KERNEL.CellModel.getNumberOfNodes(), and batchmode_medcorba_test.nbNodes.

void ParaMEDMEM.MEDCouplingGaussLocalization::setGaussCoord ( int  gaussPtIdInCell,
int  comp,
double  newVal 
) throw (INTERP_KERNEL::Exception)
void ParaMEDMEM.MEDCouplingGaussLocalization::setWeight ( int  gaussPtIdInCell,
double  newVal 
) throw (INTERP_KERNEL::Exception)
ParaMEDMEM::MEDCouplingGaussLocalization ParaMEDMEM.MEDCouplingGaussLocalization::BuildNewInstanceFromTinyInfo ( int  dim,
const std::vector< int > &  tinyData 
) [static]
bool ParaMEDMEM.MEDCouplingGaussLocalization::AreAlmostEqual ( const std::vector< double > &  v1,
const std::vector< double > &  v2,
double  eps 
) [static]
int ParaMEDMEM.MEDCouplingGaussLocalization::checkCoherencyOfRequest ( int  gaussPtIdInCell,
int  comp 
) const throw (INTERP_KERNEL::Exception)

Field Documentation