From c54eccca393dd579b4ab832c27c9bbef0bd2db33 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 8 Feb 2006 08:50:47 +0000 Subject: [PATCH] Adjust to MED modifications --- src/CalculatorComponent/CalculatorEngine.cxx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/CalculatorComponent/CalculatorEngine.cxx b/src/CalculatorComponent/CalculatorEngine.cxx index 85e36a8..dd0442a 100644 --- a/src/CalculatorComponent/CalculatorEngine.cxx +++ b/src/CalculatorComponent/CalculatorEngine.cxx @@ -55,7 +55,7 @@ using namespace std; static void PrintFieldValues (FIELD * field, int until_index) { - const double * values = field -> getValue(MED_EN::MED_FULL_INTERLACE); + const double * values = field -> getValue(); int nb_comp = field -> getNumberOfComponents(); MESSAGE( "Field : " << field -> getName() ); MESSAGE( " Description : " << field -> getDescription() ); @@ -275,10 +275,9 @@ SALOME_MED::FIELDDOUBLE_ptr CalculatorEngine::Add(SALOME_MED::FIELDDOUBLE_ptr Fi MESSAGE("CalculatorEngine::Add Creation of the local field "<< totalLength); - FIELD * fieldloc = new FIELD(); + FIELD * fieldloc = new FIELD(); fieldloc -> allocValue(nb_comp1,len_value1); - fieldloc -> setValue(MED_EN::MED_FULL_INTERLACE,new_value); - fieldloc -> setValueType(MED_EN::MED_REEL64); + fieldloc -> setValue(new_value); fieldloc -> setName("-new_Add-"); fieldloc -> setDescription( FirstField -> getDescription() ); fieldloc -> setComponentsNames(component_name); @@ -373,10 +372,9 @@ SALOME_MED::FIELDDOUBLE_ptr CalculatorEngine::Mul(SALOME_MED::FIELDDOUBLE_ptr Ol MESSAGE("CalculatorEngine::Mul Creation of the local field "<< totalLength); - FIELD * fieldloc = new FIELD(); + FIELD * fieldloc = new FIELD(); fieldloc -> allocValue(nb_comp,len_value); - fieldloc -> setValue(MED_EN::MED_FULL_INTERLACE,new_value); - fieldloc -> setValueType(MED_EN::MED_REEL64); + fieldloc -> setValue(new_value); fieldloc -> setName("-new_Mul-"); fieldloc -> setDescription(field_description); fieldloc -> setComponentsNames(component_name); @@ -460,10 +458,9 @@ SALOME_MED::FIELDDOUBLE_ptr CalculatorEngine::Constant(SALOME_MED::FIELDDOUBLE_p MESSAGE("CalculatorEngine::Constant Creation of the local field "<< totalLength); - FIELD * fieldloc = new FIELD(); + FIELD * fieldloc = new FIELD(); fieldloc -> allocValue(nb_comp,len_value); - fieldloc -> setValue(MED_EN::MED_FULL_INTERLACE,new_value); - fieldloc -> setValueType(MED_EN::MED_REEL64); + fieldloc -> setValue(new_value); fieldloc -> setName("-new_Const_Field-"); fieldloc -> setDescription(field_description); fieldloc -> setComponentsNames(component_name); -- 2.30.2