Version: 6.3.1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

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)

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)

Private Member Functions

int checkCoherencyOfRequest (int gaussPtIdInCell, int comp) const throw (INTERP_KERNEL::Exception)

Private Attributes

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:
tinyInfoinout parameter.
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:
tinyInfoinout parameter.
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.

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:
ifnot 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]

The format of 'tinyData' parameter is the same than pushed in method ParaMEDMEM.MEDCouplingGaussLocalization.pushTinySerializationIntInfo.

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) [private]

Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS