From 304e49daba19d56c036a738be1ceac6aa585c8a3 Mon Sep 17 00:00:00 2001 From: nadir Date: Thu, 18 Sep 2003 09:04:42 +0000 Subject: [PATCH] correct small bug due to the Med Memory Component Name in the SALOME2 configuration (Med --> MED). --- src/MedMem/FieldOf_i.hxx | 3 ++- src/MedMem/Med_i.cxx | 3 ++- src/MedMem/Mesh_i.cxx | 6 ++++-- src/MedMem/Support_i.cxx | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) 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); -- 2.39.2