Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
87fd8ca
)
PAL10196. use renamed GetGroupNames()->GetGroupNamesAndTypes() of MED Driver
author
eap
<eap@opencascade.com>
Tue, 11 Oct 2005 13:41:57 +0000
(13:41 +0000)
committer
eap
<eap@opencascade.com>
Tue, 11 Oct 2005 13:41:57 +0000
(13:41 +0000)
src/SMESH/SMESH_Mesh.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH/SMESH_Mesh.cxx
b/src/SMESH/SMESH_Mesh.cxx
index d4497448fd32b96f40963be8cfc1e179cf23d757..ffd77cd554fe8536a9860f2b0e4cf242b6e7e651 100644
(file)
--- a/
src/SMESH/SMESH_Mesh.cxx
+++ b/
src/SMESH/SMESH_Mesh.cxx
@@
-210,16
+210,17
@@
int SMESH_Mesh::MEDToMesh(const char* theFileName, const char* theMeshName)
}
// Reading groups (sub-meshes are out of scope of MED import functionality)
}
// Reading groups (sub-meshes are out of scope of MED import functionality)
- list<
string> aGroupNames = myReader.GetGroupNam
es();
+ list<
TNameAndType> aGroupNames = myReader.GetGroupNamesAndTyp
es();
if(MYDEBUG) MESSAGE("MEDToMesh - Nb groups = "<<aGroupNames.size());
int anId;
if(MYDEBUG) MESSAGE("MEDToMesh - Nb groups = "<<aGroupNames.size());
int anId;
- for ( list<string>::iterator it = aGroupNames.begin(); it != aGroupNames.end(); it++ ) {
- SMESH_Group* aGroup = AddGroup( SMDSAbs_All, it->c_str(), anId );
+ list<TNameAndType>::iterator name_type = aGroupNames.begin();
+ for ( ; name_type != aGroupNames.end(); name_type++ ) {
+ SMESH_Group* aGroup = AddGroup( name_type->second, name_type->first.c_str(), anId );
if ( aGroup ) {
if ( aGroup ) {
- if(MYDEBUG) MESSAGE("MEDToMesh - group added: "<<
it->
c_str());
+ if(MYDEBUG) MESSAGE("MEDToMesh - group added: "<<
name_type->first.
c_str());
SMESHDS_Group* aGroupDS = dynamic_cast<SMESHDS_Group*>( aGroup->GetGroupDS() );
if ( aGroupDS ) {
SMESHDS_Group* aGroupDS = dynamic_cast<SMESHDS_Group*>( aGroup->GetGroupDS() );
if ( aGroupDS ) {
- aGroupDS->SetStoreName(
it->
c_str() );
+ aGroupDS->SetStoreName(
name_type->first.
c_str() );
myReader.GetGroup( aGroupDS );
}
}
myReader.GetGroup( aGroupDS );
}
}