]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
correct small bug due to the Med Memory Component Name in the SALOME2
authornadir <nadir>
Thu, 18 Sep 2003 09:04:42 +0000 (09:04 +0000)
committernadir <nadir>
Thu, 18 Sep 2003 09:04:42 +0000 (09:04 +0000)
configuration (Med --> MED).

src/MedMem/FieldOf_i.hxx
src/MedMem/Med_i.cxx
src/MedMem/Mesh_i.cxx
src/MedMem/Support_i.cxx

index f4db3ad73cf35beb96a12ffc1f2e773fe44fa271..11679ba70b7fd98be31e73a815e6a599a61b12f7 100644 (file)
@@ -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);
 
index 9e3538de87783d60364f84fc970367fca21a1069..f31df036e67ecaaace681eee2f5ad4debaff03eb 100644 (file)
@@ -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",
index 261325421ae37df40e91f5129a213a56b0887889..f984f0259a1a3a0b0ba7af74103dcab2cd682436 100644 (file)
@@ -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);
 
index c82bd554843236c99a90dea12c2a0740c7ec1c75..31f3d1e844b30c156e713d52aa952b6203f0f4cf 100644 (file)
@@ -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);