From: nadir Date: Thu, 18 Sep 2003 09:04:42 +0000 (+0000) Subject: correct small bug due to the Med Memory Component Name in the SALOME2 X-Git-Tag: V1_2_2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=304e49daba19d56c036a738be1ceac6aa585c8a3;p=modules%2Fmed.git correct small bug due to the Med Memory Component Name in the SALOME2 configuration (Med --> MED). --- diff --git a/src/MedMem/FieldOf_i.hxx b/src/MedMem/FieldOf_i.hxx index f4db3ad73..11679ba70 100644 --- a/src/MedMem/FieldOf_i.hxx +++ b/src/MedMem/FieldOf_i.hxx @@ -473,7 +473,8 @@ throw (SALOME::SALOME_Exception) SALOMEDS::AttributeIOR_var aIOR; // Create SComponent labelled 'Med' - SALOMEDS::SComponent_var medfather = myStudy->FindComponent("Med"); + // SALOMEDS::SComponent_var medfather = myStudy->FindComponent("Med"); + SALOMEDS::SComponent_var medfather = myStudy->FindComponent("MED"); if ( CORBA::is_nil(medfather) ) THROW_SALOME_CORBA_EXCEPTION("SComponent labelled 'Med' not Found",SALOME::INTERNAL_ERROR); diff --git a/src/MedMem/Med_i.cxx b/src/MedMem/Med_i.cxx index 9e3538de8..f31df036e 100644 --- a/src/MedMem/Med_i.cxx +++ b/src/MedMem/Med_i.cxx @@ -774,7 +774,8 @@ throw (SALOME::SALOME_Exception) SALOMEDS::AttributeIOR_var aIOR; // Create SComponent labelled 'MED' if it doesn't already exit - SALOMEDS::SComponent_var medfather = myStudy->FindComponent("Med"); + // SALOMEDS::SComponent_var medfather = myStudy->FindComponent("Med"); + SALOMEDS::SComponent_var medfather = myStudy->FindComponent("MED"); if ( CORBA::is_nil(medfather) ) { THROW_SALOME_CORBA_EXCEPTION("Component Med not found", diff --git a/src/MedMem/Mesh_i.cxx b/src/MedMem/Mesh_i.cxx index 261325421..f984f0259 100644 --- a/src/MedMem/Mesh_i.cxx +++ b/src/MedMem/Mesh_i.cxx @@ -973,7 +973,8 @@ throw (SALOME::SALOME_Exception) SALOMEDS::AttributeIOR_var aIOR; // Find SComponent labelled 'MED' - SALOMEDS::SComponent_var medfather = myStudy->FindComponent("Med"); + // SALOMEDS::SComponent_var medfather = myStudy->FindComponent("Med"); + SALOMEDS::SComponent_var medfather = myStudy->FindComponent("MED"); if ( CORBA::is_nil(medfather) ) THROW_SALOME_CORBA_EXCEPTION("SComponent labelled 'Med' not Found",SALOME::INTERNAL_ERROR); @@ -1032,7 +1033,8 @@ throw (SALOME::SALOME_Exception) SALOMEDS::AttributeComment_var aComment; // Find SComponent labelled 'Med' - SALOMEDS::SComponent_var medfather = myStudy->FindComponent("Med"); + // SALOMEDS::SComponent_var medfather = myStudy->FindComponent("Med"); + SALOMEDS::SComponent_var medfather = myStudy->FindComponent("MED"); if ( CORBA::is_nil(medfather) ) THROW_SALOME_CORBA_EXCEPTION("SComponent labelled 'Med' not Found",SALOME::INTERNAL_ERROR); diff --git a/src/MedMem/Support_i.cxx b/src/MedMem/Support_i.cxx index c82bd5548..31f3d1e84 100644 --- a/src/MedMem/Support_i.cxx +++ b/src/MedMem/Support_i.cxx @@ -414,7 +414,8 @@ void SUPPORT_i::addInStudy (SALOMEDS::Study_ptr myStudy, SALOME_MED::SUPPORT_ptr // Find SComponent labelled 'Med' MESSAGE("Find SComponent labelled 'Med'"); - SALOMEDS::SComponent_var medfather = myStudy->FindComponent("Med"); + // SALOMEDS::SComponent_var medfather = myStudy->FindComponent("Med"); + SALOMEDS::SComponent_var medfather = myStudy->FindComponent("MED"); if ( CORBA::is_nil(medfather) ) THROW_SALOME_CORBA_EXCEPTION("SComponent labelled 'Med' not Found",SALOME::INTERNAL_ERROR);