Salome HOME
Adjust to changes of the MEDMEM API V3_2_0a1
authorapo <apo@opencascade.com>
Thu, 9 Feb 2006 08:06:59 +0000 (08:06 +0000)
committerapo <apo@opencascade.com>
Thu, 9 Feb 2006 08:06:59 +0000 (08:06 +0000)
src/CalculatorComponent/CalculatorEngine.cxx
src/CalculatorComponent/CalculatorEngine.hxx

index dd0442a53e04e6444a4c3e345415a68918202322..b3c70c77ee11b74c4afde86a566bb19694ae9c21 100644 (file)
@@ -49,11 +49,14 @@ using namespace std;
 #define MED_TAILLE_PNOM MED_TAILLE_PNOM21
 #endif
 
+typedef FIELD<double,MEDMEM::FullInterlace> TFieldDouble;
+typedef FIELDTEMPLATE_I<double,MEDMEM::FullInterlace> TFieldDouble_i;
+
 //================================================================================
 // static PrintFieldValues - shows field contents
 //================================================================================
 
-static void PrintFieldValues (FIELD<double> * field, int until_index) 
+static void PrintFieldValues (TFieldDouble * field, int until_index) 
 {
   const double * values = field -> getValue();
   int nb_comp     = field -> getNumberOfComponents();
@@ -275,7 +278,7 @@ SALOME_MED::FIELDDOUBLE_ptr CalculatorEngine::Add(SALOME_MED::FIELDDOUBLE_ptr Fi
   
   MESSAGE("CalculatorEngine::Add Creation of the local field "<< totalLength);
   
-  FIELD<double> * fieldloc =  new FIELD<double,MEDMEM::FullInterlace>();
+  TFieldDouble * fieldloc =  new TFieldDouble();
   fieldloc -> allocValue(nb_comp1,len_value1);
   fieldloc  -> setValue(new_value);
   fieldloc  -> setName("-new_Add-");
@@ -296,7 +299,7 @@ SALOME_MED::FIELDDOUBLE_ptr CalculatorEngine::Add(SALOME_MED::FIELDDOUBLE_ptr Fi
 
   SUPPORT *support1Clt=new SUPPORTClient(support1);
   fieldloc->setSupport(support1Clt);
-  FIELDDOUBLE_i * NewField = new FIELDDOUBLE_i(fieldloc) ;
+  TFieldDouble_i * NewField = new TFieldDouble_i(fieldloc) ;
   SALOME_MED::FIELDDOUBLE_ptr myFieldIOR = NewField->_this() ;
 
   //sleep(4);
@@ -372,7 +375,7 @@ SALOME_MED::FIELDDOUBLE_ptr CalculatorEngine::Mul(SALOME_MED::FIELDDOUBLE_ptr Ol
 
   MESSAGE("CalculatorEngine::Mul Creation of the local field "<< totalLength);
 
-  FIELD<double> * fieldloc =  new FIELD<double,MEDMEM::FullInterlace>();
+  TFieldDouble * fieldloc =  new TFieldDouble();
   fieldloc -> allocValue(nb_comp,len_value);
   fieldloc  -> setValue(new_value);
   fieldloc  -> setName("-new_Mul-");
@@ -387,7 +390,7 @@ SALOME_MED::FIELDDOUBLE_ptr CalculatorEngine::Mul(SALOME_MED::FIELDDOUBLE_ptr Ol
 
   SUPPORT *supportClt=new SUPPORTClient(support);
   fieldloc->setSupport(supportClt);
-  FIELDDOUBLE_i * NewField = new FIELDDOUBLE_i(fieldloc) ;
+  TFieldDouble_i * NewField = new TFieldDouble_i(fieldloc) ;
   SALOME_MED::FIELDDOUBLE_ptr myFieldIOR = NewField->_this() ;
 
   //sleep(4);
@@ -458,7 +461,7 @@ SALOME_MED::FIELDDOUBLE_ptr CalculatorEngine::Constant(SALOME_MED::FIELDDOUBLE_p
 
   MESSAGE("CalculatorEngine::Constant Creation of the local field "<< totalLength);
 
-  FIELD<double> * fieldloc =  new FIELD<double,MEDMEM::FullInterlace>();
+  TFieldDouble * fieldloc =  new TFieldDouble();
   fieldloc -> allocValue(nb_comp,len_value);
   fieldloc  -> setValue(new_value);
   fieldloc  -> setName("-new_Const_Field-");
@@ -476,7 +479,7 @@ SALOME_MED::FIELDDOUBLE_ptr CalculatorEngine::Constant(SALOME_MED::FIELDDOUBLE_p
 
   SUPPORT *supportClt=new SUPPORTClient(FirstSupport);
   fieldloc->setSupport(supportClt);
-  FIELDDOUBLE_i * NewField = new FIELDDOUBLE_i(fieldloc) ;
+  TFieldDouble_i * NewField = new TFieldDouble_i(fieldloc) ;
 
   SALOME_MED::FIELDDOUBLE_ptr myFieldIOR = NewField->_this() ;
   
index 31b61496ae7d738f9a369a5ffb346ea45f0e69e0..1a74f1b5fc2e97e04858bae46836eb095ebaa3c6 100644 (file)
@@ -35,7 +35,7 @@
 #include CORBA_CLIENT_HEADER(MED)
 #include "MEDMEM_Med_i.hxx"
 #include "MEDMEM_Field.hxx"
-#include "MEDMEM_FieldDouble_i.hxx"
+#include "MEDMEM_FieldTemplate_i.hxx"
 
 #include "SALOME_NamingService.hxx"