From: eap Date: Mon, 23 Jun 2014 13:31:54 +0000 (+0400) Subject: 22606: [CEA 1183] sauv2med returns an error if a field is scattered in two tables... X-Git-Tag: V7_5_0a1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a485d9df001682f7973a70c264de772bdfd15a4f;p=modules%2Fmed.git 22606: [CEA 1183] sauv2med returns an error if a field is scattered in two tables in the .sauv Case of a gauss field on a composite support --- diff --git a/src/MEDLoader/SauvMedConvertor.cxx b/src/MEDLoader/SauvMedConvertor.cxx index ad4668c12..3a6d8451a 100644 --- a/src/MEDLoader/SauvMedConvertor.cxx +++ b/src/MEDLoader/SauvMedConvertor.cxx @@ -3238,10 +3238,10 @@ void IntermediateMED::setGroups( ParaMEDMEM::MEDFileUMesh* mesh ) grp._medGroup = DataArrayInt::New(); grp._medGroup->setName( grp._name.c_str() ); grp._medGroup->alloc( cell2order.size(), /*nbOfCompo=*/1 ); - int * idsPrt = grp._medGroup->getPointer(); + int * idsPtr = grp._medGroup->getPointer(); TCellToOrderMap::iterator cell2orderIt, cell2orderEnd = cell2order.end(); for ( cell2orderIt = cell2order.begin(); cell2orderIt != cell2orderEnd; ++cell2orderIt ) - *idsPrt++ = (*cell2orderIt).first->_number - 1; + *idsPtr++ = (*cell2orderIt).first->_number - 1; // try to set the mesh name if ( !isMeshNameSet && @@ -3457,8 +3457,9 @@ void IntermediateMED::setTS( SauvUtilities::DoubleField* fld, // set gauss points if ( timeStamp->getTypeOfField() == ParaMEDMEM::ON_GAUSS_PT ) { - TGaussDef gaussDef( support->_cellType, fld->_sub[iSub].nbGauss() ); - timeStamp->setGaussLocalizationOnType( support->_cellType, + TGaussDef gaussDef( fld->_sub[iSub]._support->_cellType, + fld->_sub[iSub].nbGauss() ); + timeStamp->setGaussLocalizationOnType( fld->_sub[iSub]._support->_cellType, gaussDef.myRefCoords, gaussDef.myCoords, gaussDef.myWeights ); diff --git a/src/MEDLoader/SauvReader.cxx b/src/MEDLoader/SauvReader.cxx index 96281f0ad..9b0fce3b8 100644 --- a/src/MEDLoader/SauvReader.cxx +++ b/src/MEDLoader/SauvReader.cxx @@ -384,7 +384,7 @@ void SauvReader::read_PILE_SOUS_MAILLAGE(const int nbObjects, else for (initIntReading(nbElements); more(); next()); - // not a composit group + // not a composite group if (castemCellType>0 && nbSubGroups==0) { group._cellType = SauvUtilities::gibi2medGeom(castemCellType); @@ -638,7 +638,7 @@ void SauvReader::read_PILE_COORDONNEES (const int nbObjects, std::vector& supports, { SauvUtilities::Group* group = NULL; set sup_set( supports.begin(), supports.end() ); - if (sup_set.size() == 1 ) // one or equal supports + if ( sup_set.size() == 1 ) // one or equal supports { group = supports[0]; } @@ -715,7 +715,7 @@ void SauvReader::setFieldSupport(const vector& supports, // relocate sub-components according to a new order of groups if ( isModified ) { - vector< DoubleField::_Sub_data > newSub( field->_sub.size() ); + vector< DoubleField::_Sub_data > newSub ( field->_sub.size() ); vector< vector< double > > newValues( field->_comp_values.size() ); size_t iFromSub = 0, iNewSub = 0, iNewComp = 0; for ( ; iFromSub < field->_sub.size(); iFromSub += groups.size() )