//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// ==============================================================================
typedef int TID; // an ID countered from 1
// ==============================================================================
typedef int TID; // an ID countered from 1
std::string _name;
std::vector<const Cell*> _cells;
std::vector< Group* > _groups; // des sous-groupes composant le Group
std::string _name;
std::vector<const Cell*> _cells;
std::vector< Group* > _groups; // des sous-groupes composant le Group
bool _isProfile; // is a field support or not
std::vector<std::string> _refNames; /* names of groups referring this one;
_refNames is resized according to nb of references
bool _isProfile; // is a field support or not
std::vector<std::string> _refNames; /* names of groups referring this one;
_refNames is resized according to nb of references
std::vector< unsigned > _relocTable; // for _cells[i] gives its index in _medGroup
bool empty() const { return _cells.empty() && _groups.empty(); }
std::vector< unsigned > _relocTable; // for _cells[i] gives its index in _medGroup
bool empty() const { return _cells.empty() && _groups.empty(); }
void setData( int nb_comp, Group* supp )
{ _support = supp; _comp_names.resize(nb_comp); _nb_gauss.resize(nb_comp,1); }
void setData( int nb_comp, Group* supp )
{ _support = supp; _comp_names.resize(nb_comp); _nb_gauss.resize(nb_comp,1); }
bool hasGauss() const { return nbGauss() > 1; }
};
// ----------------------------------------------------------------------------
bool hasGauss() const { return nbGauss() > 1; }
};
// ----------------------------------------------------------------------------
is the same and supports of subcomponents do not overlap
*/
std::vector< std::vector< double > > _comp_values;
is the same and supports of subcomponents do not overlap
*/
std::vector< std::vector< double > > _comp_values;
DoubleField( int nb_sub, int total_nb_comp )
: _sub(nb_sub), _group(NULL), _curMedField(NULL) { _comp_values.reserve( total_nb_comp ); }
DoubleField( int nb_sub, int total_nb_comp )
: _sub(nb_sub), _group(NULL), _curMedField(NULL) { _comp_values.reserve( total_nb_comp ); }
- bool isMedCompatible() const;
- ParaMEDMEM::TypeOfField getMedType( const int iSub=0 ) const;
- ParaMEDMEM::TypeOfTimeDiscretization getMedTimeDisc() const;
+ bool isMedCompatible(bool& sameNbGauss) const;
+ MEDCoupling::TypeOfField getMedType( const int iSub=0 ) const;
+ MEDCoupling::TypeOfTimeDiscretization getMedTimeDisc() const;
int getNbTuples( const int iSub=0 ) const;
int getNbValuesPerElement( const int iSub=0 ) const;
int getNbGauss( const int iSub=0 ) const;
const Group* getSupport( const int iSub=0 ) const;
int setValues( double * valPtr, const int iSub, const int elemShift=0 ) const;
int getNbTuples( const int iSub=0 ) const;
int getNbValuesPerElement( const int iSub=0 ) const;
int getNbGauss( const int iSub=0 ) const;
const Group* getSupport( const int iSub=0 ) const;
int setValues( double * valPtr, const int iSub, const int elemShift=0 ) const;
Node* getNode( TID nID ) { return _points.getNode( nID ); }
int getNbCellsOfType( TCellType type ) const { return _cellsByType[type].size(); }
const Cell* insert(TCellType type, const Cell& ma) { return &( *_cellsByType[type].insert( ma ).first ); }
Node* getNode( TID nID ) { return _points.getNode( nID ); }
int getNbCellsOfType( TCellType type ) const { return _cellsByType[type].size(); }
const Cell* insert(TCellType type, const Cell& ma) { return &( *_cellsByType[type].insert( ma ).first ); }
- ParaMEDMEM::MEDFileUMesh* makeMEDFileMesh();
- ParaMEDMEM::DataArrayDouble * getCoords();
- void setConnectivity( ParaMEDMEM::MEDFileUMesh* mesh, ParaMEDMEM::DataArrayDouble* coords );
- void setGroups( ParaMEDMEM::MEDFileUMesh* mesh );
- ParaMEDMEM::MEDFileFields * makeMEDFileFields(ParaMEDMEM::MEDFileUMesh* mesh);
+ MEDCoupling::MEDFileUMesh* makeMEDFileMesh();
+ MEDCoupling::DataArrayDouble * getCoords();
+ void setConnectivity( MEDCoupling::MEDFileUMesh* mesh, MEDCoupling::DataArrayDouble* coords );
+ void setGroups( MEDCoupling::MEDFileUMesh* mesh );
+ MEDCoupling::MEDFileFields * makeMEDFileFields(MEDCoupling::MEDFileUMesh* mesh);
- ParaMEDMEM::MEDFileFields* medFields,
- ParaMEDMEM::MEDFileUMesh* mesh,
+ MEDCoupling::MEDFileFields* medFields,
+ MEDCoupling::MEDFileUMesh* mesh,
const TID castemID,
std::set< std::string >& usedNames);
void setTS( SauvUtilities::DoubleField* fld,
const TID castemID,
std::set< std::string >& usedNames);
void setTS( SauvUtilities::DoubleField* fld,
- ParaMEDMEM::DataArrayDouble* values,
- ParaMEDMEM::MEDFileFields* medFields,
- ParaMEDMEM::MEDFileUMesh* mesh,
+ MEDCoupling::DataArrayDouble* values,
+ MEDCoupling::MEDFileFields* medFields,
+ MEDCoupling::MEDFileUMesh* mesh,
void setGroupLongNames();
void setFieldLongNames(std::set< std::string >& usedNames);
void makeFieldNewName(std::set< std::string >& usedNames,
void setGroupLongNames();
void setFieldLongNames(std::set< std::string >& usedNames);
void makeFieldNewName(std::set< std::string >& usedNames,