Salome HOME
#18963 Minimize compiler warnings
authorSALOME <salome@opencascade.com>
Tue, 25 Aug 2020 07:52:58 +0000 (10:52 +0300)
committervsr <vsr@opencascade.com>
Fri, 11 Dec 2020 06:37:50 +0000 (09:37 +0300)
44 files changed:
CMakeLists.txt
doc/dev/sphinx/fr/index.rst
doc/dev/sphinx/fr/medcalc-develguide.rst
doc/dev/sphinx/fr/medcalc-specifications.rst
doc/dev/sphinx/fr/medcalc-userguide-gui.rst
doc/dev/sphinx/index.rst
doc/dev/sphinx/medcalc-develguide.rst
doc/dev/sphinx/medcalc-specifications.rst
doc/dev/sphinx/medcalc-userguide-gui.rst
src/MEDCalc/MEDCalcConstants.hxx
src/MEDCalc/cmp/MED.cxx
src/MEDCalc/cmp/MEDCalculator_i.cxx
src/MEDCalc/cmp/MEDDataManager_i.cxx
src/MEDCalc/cmp/MEDPresentation.cxx
src/MEDCalc/cmp/MEDPresentationManager_i.cxx
src/MEDCalc/cmp/MEDPresentationPointSprite.cxx
src/MEDCalc/cmp/MEDPyLockWrapper.hxx
src/MEDCalc/gui/DatasourceController.cxx
src/MEDCalc/gui/MEDModule.cxx
src/MEDCalc/gui/MEDWidgetHelper.cxx
src/MEDCalc/gui/MEDWidgetHelperMeshView.cxx
src/MEDCalc/gui/MEDWidgetHelperSlices.cxx
src/MEDCalc/gui/PresentationController.cxx
src/MEDCalc/gui/ProcessingController.cxx
src/MEDCalc/gui/TestController.hxx
src/MEDCalc/gui/WorkspaceController.cxx
src/MEDCalc/gui/XmedConsoleDriver.cxx
src/MEDCalc/gui/XmedDataModel.hxx
src/MEDCalc/gui/dialogs/WidgetPresentationParameters.cxx
src/MEDCalculator/MEDCalculatorBrowserField.cxx
src/MEDCalculator/MEDCalculatorBrowserField.hxx
src/MEDCalculator/MEDCalculatorDBField.cxx
src/MEDCalculator/MEDCalculatorDBField.hxx
src/MEDCalculator/MEDCalculatorDBRangeSelection.cxx
src/MEDCalculator/MEDCalculatorDBRangeSelection.hxx
src/MEDCalculator/MEDCalculatorDBSliceField.cxx
src/MEDCalculator/MEDCalculatorDBSliceField.hxx
src/MEDCalculator/Swig/SPythonParser.cxx
src/MEDCouplingCorba/DataArrayDoubleServant.cxx
src/MEDCouplingCorba/DataArrayIntServant.cxx
src/ParaMEDMEMComponent/MPIMEDCouplingFieldDoubleServant.cxx
src/ParaMEDMEMComponent/MPIMEDCouplingFieldDoubleServant.hxx
src/ParaMEDMEMComponent/ParaMEDMEMComponent_i.cxx
src/ParaMEDMEMComponent/ParaMEDMEMComponent_i.hxx

index 8a06e6be9184edb55d01084901abd6e09e677f31..9a78206b35783d73b9f8f547e57f135dbac45336 100644 (file)
@@ -86,10 +86,6 @@ ELSE(EXISTS ${MEDCOUPLING_ROOT_DIR})
   MESSAGE(FATAL_ERROR "We absolutely need the MEDCoupling tool, please define MEDCOUPLING_ROOT_DIR !")
 ENDIF(EXISTS ${MEDCOUPLING_ROOT_DIR})
 
-IF(MEDCOUPLING_USE_64BIT_IDS)
-  ADD_DEFINITIONS("-DMEDCOUPLING_USE_64BIT_IDS")
-ENDIF(MEDCOUPLING_USE_64BIT_IDS)
-
 #
 # Set list of prerequisites
 # =========================
index 4f4ef14f12758c34e4cc264a7b34d7535a399c52..fde84b1c7ce5c7a5270728d8e1c8ad44284e19f6 100644 (file)
@@ -1,7 +1,7 @@
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- Documentation du module FIELDS
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+Documentation du module FIELDS
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 Le module SALOME FIELDS (pour Modèle d'Echange de Données) fournit la
 bibliothèque MEDCoupling (bibliothèque C++ dédiée à la manipulation de
index dc1019cd6135fc22d56c0db31382db6b7656a0ae..29b7704d40abe3434a805a64b9560f631f6e87d2 100644 (file)
@@ -4,9 +4,9 @@
 
 .. include:: medcalc-definitions.rst
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Module FIELDS: Guide de développement du composant MEDCalc
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 Le composant logiciel MEDCalc est un élément du module FIELDS. Il fournit
 une interface utilisateur pour la manipulation de maillages et de
index 656fd9b17905f970824a9f4969d72beb8285a44a..014acdd39c7b3f49140cc8b7badcad1013da94d2 100644 (file)
@@ -4,9 +4,9 @@
 
 .. include:: medcalc-definitions.rst
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Module FIELDS: Spécifications fonctionnelles et techniques
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 Ce texte présente les spécifications informatiques pour le
 développement d'un module de manipulation de champs qui répond à
@@ -714,7 +714,7 @@ Dans le cadre défini ci-dessus, une session d'utilisation type est:
 
 * Effectuer les contrôles visuel et les diagnostics en ligne de
   commandes python (cf. :ref:`Spécification des fonctions de
-  visualisation<specification_visualisation>`)::
+  visualisation<specification_visualisation-fr>`)::
 
   >>> view(r)
 
@@ -751,7 +751,7 @@ Sur cette base, on peut envisager une grande variété de cas d'utilisation:
   l'utilisateur peut visualiser les ligne de commandes nécessaires à
   taper pour exécuter sa requête.
 
-.. _specification_visualisation:
+.. _specification_visualisation-fr:
 
 Spécification des fonctions de visualisation
 ============================================
index 41d4db0a739bf7608ac5d8f06b1a3292d7b2a6c4..d0ea7cfc752637a30bae2838ae5fe60308c96b54 100644 (file)
@@ -4,9 +4,9 @@
 
 .. include:: medcalc-definitions.rst
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Module FIELDS: Guide d'utilisation de l'interface graphique
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 Ce document est un guide rapide pour l'utilisation de l'interface
 graphique du module FIELDS. Il montre comment utiliser le module sur la
@@ -24,7 +24,7 @@ champs.
    :backlinks: none
 
 Présentation générale du module FIELDS
-===================================
+======================================
 
 L'ergonomie générale d'utilisation du module de manipulation de champs
 est inspirée des logiciels comme octave ou scilab. Elle associe une
@@ -71,7 +71,7 @@ processus de la forme suivante:
 
 
 Tour rapide des fonctions du module FIELDS
-=======================================
+==========================================
 
 Cette section présente des exemples d'utilisation du module XMED sous
 la forme de "storyboard", et illustre au passage les fonctions mises à
@@ -656,7 +656,7 @@ carte de champ:
 .. _xmed.userguide.tui-fr:
 
 Utilisation de l'interface textuelle du module FIELDS (TUI)
-========================================================
+===========================================================
 
 Toutes les opérations menées au moyen de l'interface graphique peuvent
 être réalisées (avec plus ou moins de facilité) avec l'interface
index 275ad05f38c9f9547ad660180ed5866cd517f3a1..46400a36ac42a7ffe853984900736d8064e6c3cf 100644 (file)
@@ -1,7 +1,7 @@
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Documentation of FIELDS module
-%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 The SALOME FIELDS module provides MEDCoupling library (a C++ library dedicated of
 mesh and field manipulation consistent with MED model), as well as a Graphical
index 8433f52f1427be0433af78a07c2dadbaaf01d9be..c2c5139912ce5a65e88eb54f8317efdc1481c55b 100644 (file)
@@ -4,9 +4,9 @@
 
 .. include:: medcalc-definitions.rst
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Module FIELDS: Guide de développement du composant MEDCalc
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 Le composant logiciel MEDCalc est un élément du module FIELDS. Il fournit
 une interface utilisateur pour la manipulation de maillages et de
index bd98f6ffb549a4ced2c53f24f4065cdda6d20260..f9ddc143157b9f871c2b75d83154501691b4fe24 100644 (file)
@@ -4,9 +4,9 @@
 
 .. include:: medcalc-definitions.rst
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 Module FIELDS: Spécifications fonctionnelles et techniques
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 Ce texte présente les spécifications informatiques pour le
 développement d'un module de manipulation de champs qui répond à
index 831214460a4b5e8de5c1e453de5badb36a40b7a3..4e6497af640fb25450ed763bd20354856fde5222 100644 (file)
@@ -4,9 +4,9 @@
 
 .. include:: medcalc-definitions.rst
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 FIELDS module: User guide for graphical interface
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 This document is a quick guide for Graphical User Interface of FIELDS module. It
 shows how to use this module on the basis of a few reference examples, built
@@ -26,7 +26,7 @@ from use cases identified during requirement analysis stage.
              look-and-feel may thus be slightly different.
 
 General presentation of FIELDS module
-==================================
+=====================================
 
 The overall ergonomics of FIELDS module for field manipulation is inspired by
 software such as octave or scilab. It combines a graphical interface (GUI) to
@@ -62,7 +62,7 @@ A typical use of field manipulation functions is:
 
 
 Quick tour on functions available in FIELDS module
-===============================================
+==================================================
 
 This section presents some use examples of FIELDS module like a "storyboard",
 illustrating the functions proposed by the module.
index f6fbefdc1e85602a07d801142ffc1df7e9bb1181..8d49d10c40a9ada548aed78aed502ca3dd39293c 100644 (file)
@@ -17,6 +17,8 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
+#ifndef SRC_MEDCALC_CMP_MEDCALCCONSTANTS_HXX_
+
 // This constant strings are used to specify an attribute name for
 // AttributeParameter attributes associated to a SObject
 #define IS_IN_WORKSPACE  "isInWorkspace"
@@ -28,7 +30,8 @@
 #define IS_PRESENTATION  "isPresentation"
 #define PRESENTATION_TYPE  "presentationType"
 
-static const int NB_TYPE_OF_FIELDS = 4;
-static const char* mapTypeOfFieldLabel[NB_TYPE_OF_FIELDS] =
+const int NB_TYPE_OF_FIELDS = 4;
+const char* const mapTypeOfFieldLabel[NB_TYPE_OF_FIELDS] =
   {"ON_CELLS", "ON_NODES", "ON_GAUSS_PT", "ON_GAUSS_NE" };
 
+#endif
index 42160f37170692e4fa30fb5db370b67529f5f503..0df324d2e559fa9d2f76d47f4b9408f54dc7fb51 100644 (file)
@@ -332,7 +332,7 @@ MED::getStudyPresentationEntry(CORBA::Long presentationId)
   // set exception handler to catch unexpected CORBA exceptions
   Unexpect aCatch(SALOME_SalomeException);
 
-  MED_ORB::PresentationsList* presList = new MED_ORB::PresentationsList;
+  //MED_ORB::PresentationsList* presList = new MED_ORB::PresentationsList; // todo: unused
 
   SALOMEDS::Study_var aStudy = KERNEL::getStudyServant();
   SALOMEDS::StudyBuilder_var studyBuilder = aStudy->NewBuilder();
@@ -359,8 +359,8 @@ MED::getStudyPresentationEntry(CORBA::Long presentationId)
 
 
 Engines::TMPFile*
-MED::DumpPython(CORBA::Boolean isPublished,
-                CORBA::Boolean isMultiFile,
+MED::DumpPython(CORBA::Boolean /*isPublished*/,
+                CORBA::Boolean /*isMultiFile*/,
                 CORBA::Boolean& isValidScript)
 {
   SALOMEDS::SObject_var aSO = KERNEL::getStudyServant()->FindComponent("FIELDS");
index b52b7410f6a0cf5fb43bc4c1ff1e46dcfbcac9f6..a7b71cabb94d033700a8e8633547257fae4a3dc1 100644 (file)
@@ -365,7 +365,7 @@ MEDCALC::FieldHandler * MEDCalculator_i::fct(const MEDCALC::FieldHandler & f_hdl
   try {
     field_result = field->clone(true);
     if ( (nbResComponents == MEDCALC::NBCOMP_DEFAULT ) ||
-   (nbResComponents < 1) || (nbResComponents > field_result->getNumberOfComponents()) ) {
+        (nbResComponents < 1) || (nbResComponents > (int)field_result->getNumberOfComponents()) ) {
       field_result->applyFunc(function);
     }
     else {
index 1df1e28fd8c0e5be8cf474aaaddbdaa11da8e3d9..2f0d92c6964f93a957b46d7f5bd43293dca1ebd0 100644 (file)
@@ -505,7 +505,7 @@ void MEDDataManager_i::savePersistentFields(const char * filepath) {
 
   MEDCALC::FieldIdList fieldIdList;
   fieldIdList.length(listId.size());
-  for (int i=0; i<listId.size(); i++) {
+  for (int i=0; i<(int)listId.size(); i++) {
     fieldIdList[i] = CORBA::Long(listId[i]);
   }
 
@@ -641,7 +641,7 @@ double MEDDataManager_i::getFieldTimestamp(CORBA::Long fieldHandlerId)
     const char * meshSourceUri = (_datasourceHandlerMap[sourceid])->uri;
     std::string fileName(source_to_file(meshSourceUri));
     const char * fieldName = fieldHandler->fieldname;
-    const char * meshName = _meshHandlerMap[meshHandlerId]->name;
+    //const char * meshName = _meshHandlerMap[meshHandlerId]->name; // todo: unused
     timestamp = GetTimeAttachedOnFieldIteration(fileName.c_str(), fieldName, fieldHandler->iteration, fieldHandler->order);
     LOG("timestamp in med file is " << timestamp);
   }
@@ -750,7 +750,7 @@ MEDCALC::FieldHandler * MEDDataManager_i::addField(MEDCouplingFieldDouble * fiel
   // MEDCouplingField). As a consequence, the values of these
   // variables are updated by this function call. This is the means to
   // retrieve the iteration and order of the field.
-  double timestamp = fieldDouble->getTime(iteration, order);
+  /*double timestamp = */fieldDouble->getTime(iteration, order); // todo: unused
 
   // For the fields that are created in memory (by operations for
   // example), the convention for the source attribute is to specify
@@ -948,8 +948,7 @@ void MEDDataManager_i::serverlog() {
   LOG("Size = "<<_fieldHandlerMap.size());
   FieldHandlerMapIterator fhmIt;
   for ( fhmIt = _fieldHandlerMap.begin(); fhmIt != _fieldHandlerMap.end(); fhmIt++) {
-    long id = fhmIt->first;
-    LOG("------------------------------------- id = "<<ToString(id));
+    LOG("------------------------------------- id = "<<ToString(fhmIt->first));
     LOG("- id        \t= "<<fhmIt->second->id);
     LOG("- fieldname \t= "<<fhmIt->second->fieldname);
     LOG("- meshname  \t= "<<fhmIt->second->meshname);
@@ -959,11 +958,9 @@ void MEDDataManager_i::serverlog() {
   LOG("Size = "<<_fieldDoubleMap.size());
   FieldDoubleMapIterator fdmIt;
   for ( fdmIt = _fieldDoubleMap.begin(); fdmIt != _fieldDoubleMap.end(); fdmIt++) {
-    long id = (*fdmIt).first;
-    MEDCouplingFieldDouble * fieldDouble = (*fdmIt).second;
-    LOG("------------------------------------- id = "<<ToString(id));
-    LOG("- fieldname \t= "<<fieldDouble->getName());
-    LOG("- meshname  \t= "<<fieldDouble->getMesh()->getName());
+    LOG("------------------------------------- id = "<<ToString(fdmIt->first));
+    LOG("- fieldname \t= "<<fdmIt->second->getName());
+    LOG("- meshname  \t= "<<fdmIt->second->getMesh()->getName());
   }
 }
 
index 1487a07acdd2b0eb0eddf2df586b08f584027a56..ff63e90a1de0cd11d030ad52e5fd30de5a40991b 100644 (file)
@@ -49,9 +49,10 @@ MEDPresentation::MEDPresentation(MEDPresentation::TypeID handlerId, const std::s
                                  const MEDCALC::ViewModeType viewMode,
                                  const MEDCALC::ColorMapType colorMap,
                                  const MEDCALC::ScalarBarRangeType sbRange)
-    : _handlerId(handlerId), _propertiesStr(),
+    : _meshName(""), _fileName(""), _fieldName(""),
       _mcFieldType(MEDCoupling::ON_CELLS),
-      _pvFieldType(""), _meshName(""), _fieldName(""), _fileName(""),
+      _pvFieldType(""),
+      _handlerId(handlerId),
       _selectedComponentIndex(-1),
       _viewMode(viewMode),
       _colorMap(colorMap),
@@ -93,7 +94,7 @@ MEDPresentation::initFieldMeshInfos()
   MEDCALC::MEDDataManager_ptr dataManager(MEDFactoryClient::getDataManager());
   MEDCALC::FieldHandler* fieldHandler = dataManager->getFieldHandler(_handlerId);
   MEDCALC::MeshHandler* meshHandler = dataManager->getMeshHandler(fieldHandler->meshid);
-  MEDCALC::DatasourceHandler* dataSHandler = dataManager->getDatasourceHandlerFromID(meshHandler->sourceid);
+  //MEDCALC::DatasourceHandler* dataSHandler = dataManager->getDatasourceHandlerFromID(meshHandler->sourceid); // todo: unused
 
   // get the file name of the field (or its memory information)
   extractFileName(std::string(fieldHandler->source));
@@ -111,8 +112,7 @@ MEDPresentation::extractFileName(const std::string& name)
   STDLOG("MEDPresentation::extractFileName('" << name << "')");
   _fileName = name;
   if (_fileName.substr(0, 7) != std::string("file://")) {
-    const char* msg = "MEDPresentation(): Data source is in memory! Saving it in tmp file.";
-    STDLOG(msg);
+    STDLOG("MEDPresentation(): Data source is in memory! Saving it in tmp file.");
     // export a med file with this field
     // we could instead use CORBA to transfer the field to PARAVIS like in MEDCalculatorDBFieldReal::display()
     _fileName = std::tmpnam(NULL);
@@ -401,7 +401,7 @@ MEDPresentation::setOrCreateRenderView()
   } else if (_viewMode == MEDCALC::VIEW_MODE_NEW_LAYOUT) {
       oss2 <<  "nbLayouts = len(pvs.GetLayouts());";
       pushAndExecPyLine(oss2.str()); oss2.str("");
-      oss2 <<  "__layout1 = pvs.CreateLayout('Layout #\%i'%(nbLayouts+1));";
+      oss2 <<  "__layout1 = pvs.CreateLayout('Layout #%i'%(nbLayouts+1));";
       pushAndExecPyLine(oss2.str()); oss2.str("");
       oss2 << view << " = pvs.CreateView('RenderView');";
       pushAndExecPyLine(oss2.str()); oss2.str("");
index 4d4a73bf7d766430211daa0d4d1243a945f64246..bbdf3290549321fb223ebee8d5e282a7d2f9098d 100644 (file)
@@ -169,9 +169,10 @@ MEDPresentationManager_i::makePointSprite(const MEDCALC::PointSpriteParameters&
 MEDCALC::MeshViewParameters
 MEDPresentationManager_i::getMeshViewParameters(MEDPresentation::TypeID presentationID)
 {
-  MEDCALC::MeshViewParameters p;
-  _getParameters<MEDPresentationMeshView>(presentationID, p);
-  return p;
+  MEDCALC::MeshViewParameters* p = new MEDCALC::MeshViewParameters();
+  _getParameters<MEDPresentationMeshView>(presentationID, *p);
+  MEDCALC::MeshViewParameters_var tmp(p);
+  return tmp._retn();
 }
 
 
@@ -187,9 +188,10 @@ MEDPresentationManager_i::getScalarMapParameters(MEDPresentation::TypeID present
 MEDCALC::ContourParameters
 MEDPresentationManager_i::getContourParameters(MEDPresentation::TypeID presentationID)
 {
-  MEDCALC::ContourParameters p;
-  _getParameters<MEDPresentationContour>(presentationID, p);
-  return p;
+  MEDCALC::ContourParameters* p = new MEDCALC::ContourParameters();
+  _getParameters<MEDPresentationContour>(presentationID, *p);
+  MEDCALC::ContourParameters_var tmp(p);
+  return tmp._retn();
 }
 
 MEDCALC::SlicesParameters*
@@ -204,9 +206,10 @@ MEDPresentationManager_i::getSlicesParameters(MEDPresentation::TypeID presentati
 MEDCALC::VectorFieldParameters
 MEDPresentationManager_i::getVectorFieldParameters(MEDPresentation::TypeID presentationID)
 {
-  MEDCALC::VectorFieldParameters p;
-  _getParameters<MEDPresentationVectorField>(presentationID, p);
-  return p;
+  MEDCALC::VectorFieldParameters* p = new MEDCALC::VectorFieldParameters();
+  _getParameters<MEDPresentationVectorField>(presentationID, *p);
+  MEDCALC::VectorFieldParameters_var tmp(p);
+  return tmp._retn();
 }
 
 MEDCALC::PointSpriteParameters*
@@ -221,9 +224,10 @@ MEDPresentationManager_i::getPointSpriteParameters(MEDPresentation::TypeID prese
 MEDCALC::DeflectionShapeParameters
 MEDPresentationManager_i::getDeflectionShapeParameters(MEDPresentation::TypeID presentationID)
 {
-  MEDCALC::DeflectionShapeParameters p;
-  _getParameters<MEDPresentationDeflectionShape>(presentationID, p);
-  return p;
+  MEDCALC::DeflectionShapeParameters* p = new MEDCALC::DeflectionShapeParameters();
+  _getParameters<MEDPresentationDeflectionShape>(presentationID, *p);
+  MEDCALC::DeflectionShapeParameters_var tmp(p);
+  return tmp._retn();
 }
 
 
index fdc838c41389933446f0ae3f1d0d4348b02c2383..3545dc27f90cb79a6b292f83e13c645dc000b5b4 100644 (file)
@@ -81,7 +81,7 @@ MEDPresentationPointSprite::internalGeneratePipeline()
 
   // Populate internal array of available components:
   fillAvailableFieldComponents();
-  int nbCompo = getIntProperty(MEDPresentation::PROP_NB_COMPONENTS);
+  //int nbCompo = getIntProperty(MEDPresentation::PROP_NB_COMPONENTS); // todo: unused
 
   // Point sprite needs point data:
   applyCellToPointIfNeeded();
index fdcad57cfa10d8f808d65ee462f83fdd9e3ddeed..06e7621b6dc852e38f0ac815ea6a7b95d4706bb5 100644 (file)
@@ -54,9 +54,8 @@ public:
    */
   ~MEDPyLockWrapper()
   {
-    PyThreadState* _currState = PyGILState_GetThisThreadState();
 #ifdef _DEBUG_
-    if (_currState != _state)
+    if (PyGILState_GetThisThreadState() != _state)
     {
       std::cout << "!!!!!!!!! MEDPyLockWrapper inconsistency - now entering infinite loop for debugging\n";
       while(1);
index acfc18c719bafec5894ccea5a9e7e103bdc2030f..f0f18b997dff9e65e6e5b982a941d69d7dc5bbcd 100644 (file)
@@ -233,7 +233,7 @@ void DatasourceController::OnExpandField()
 
   // Get the selected objects in the study (SObject)
   SALOME_StudyEditor::SObjectList* listOfSObject = _studyEditor->getSelectedObjects();
-  for (int i=0; i<listOfSObject->size(); i++) {
+  for (int i=0; i<(int)listOfSObject->size(); i++) {
     SALOMEDS::SObject_var soFieldseries = listOfSObject->at(i);
     std::string name(_studyEditor->getName(soFieldseries));
     if (soFieldseries->_is_nil() || name == "MEDCalc")
@@ -359,7 +359,7 @@ void DatasourceController::OnUseInWorkspace() {
   else {
     // In this case, we don't ask the user to specify an alias for
     // each item, we just import the whole set of items.
-    for (int i=0; i<listOfSObject->size(); i++) {
+    for (int i=0; i<(int)listOfSObject->size(); i++) {
       SALOMEDS::SObject_var soField = listOfSObject->at(i);
       if (soField->_is_nil())
         continue;
index 0401d929eb874afb68facc1b9870f0f0c4aed6a3..62481b08937231487de91b34673e77aa7aea680b 100644 (file)
@@ -104,11 +104,13 @@ MEDModule::init()
   if ( CORBA::is_nil( _MED_engine ) ) {
     Engines::EngineComponent_var comp =
       SalomeApp_Application::lcc()->FindOrLoad_Component( "FactoryServer", "FIELDS" );
-    if (CORBA::is_nil( comp ))
-        STDLOG("Could not FindOrLoad_Component FIELDS");
+    if (CORBA::is_nil( comp )) {
+      STDLOG("Could not FindOrLoad_Component FIELDS");
+    }
     _MED_engine = MED_ORB::MED_Gen::_narrow( comp );
-    if (CORBA::is_nil( _MED_engine ))
-        STDLOG("Could not narrow FIELDS engine");
+    if (CORBA::is_nil( _MED_engine )) {
+      STDLOG("Could not narrow FIELDS engine");
+    }
   }
 }
 
@@ -451,7 +453,7 @@ MEDModule::itemClickGeneric(std::string & name, std::string & type, int & presId
 }
 
 void
-MEDModule::onClick(const QModelIndex & index)
+MEDModule::onClick(const QModelIndex & /*index*/)
 {
   int presId;
   std::string name, type;
@@ -473,7 +475,7 @@ MEDModule::onClick(const QModelIndex & index)
 }
 
 void
-MEDModule::onDblClick(const QModelIndex& index)
+MEDModule::onDblClick(const QModelIndex& /*index*/)
 {
   int presId;
   std::string name, type;
index c06bdbbced7f14fac5eb3e20384c8f52a03b8597..bf192aca48c5527dac4e9497de75066c80b213f6 100644 (file)
@@ -25,8 +25,8 @@
 MEDWidgetHelper::MEDWidgetHelper(const PresentationController * presController,
                                  MEDCALC::MEDPresentationManager_ptr presManager, int presId,
                                  const std::string & presName,  WidgetPresentationParameters * paramWidget):
-  _presController(presController),
   _presManager(presManager),
+  _presController(presController),
   _presId(presId),
   _presName(presName),
   _paramWidget(paramWidget)
@@ -102,7 +102,7 @@ void MEDWidgetHelper::onComponentChanged(int idx)
   emit presentationUpdateSignal(event); // --> PresentationController::processPresentationEvent
 }
 
-void MEDWidgetHelper::onColorMapChanged(int idx)
+void MEDWidgetHelper::onColorMapChanged(int /*idx*/)
 {
   STDLOG("MEDWidgetHelper::onColorMapChanged");
   PresentationEvent* event = new PresentationEvent();
index 2385090e6d70b143b925b1eb0ed050a4589a1597..e37a87323b71bd4304b95ff7807715f55bff7ae2 100644 (file)
@@ -72,7 +72,7 @@ void MEDWidgetHelperMeshView::releaseWidget()
   QObject::disconnect( _paramWidget, SIGNAL(comboMeshIndexChanged(int)), this, SLOT(onMeshModeChanged(int)) );
 }
 
-void MEDWidgetHelperMeshView::onMeshModeChanged(int meshMode)
+void MEDWidgetHelperMeshView::onMeshModeChanged(int /*meshMode*/)
 {
   STDLOG("MEDWidgetHelperMeshView::onMeshModeChanged");
   PresentationEvent* event = new PresentationEvent();
index aaf136c55aaa103d017ff5e4303a44509c079dcd..55a0d488ffcf57310f853953728d28ae95bdbea3 100644 (file)
@@ -79,7 +79,7 @@ void MEDWidgetHelperSlices::onNbSlicesChanged(int nbSlices)
 }
 
 
-void MEDWidgetHelperSlices::onSliceOrientationChanged(int sliceOrient)
+void MEDWidgetHelperSlices::onSliceOrientationChanged(int /*sliceOrient*/)
 {
   STDLOG("MEDWidgetHelperSlices::onSliceOrientationChanged");
   PresentationEvent* event = new PresentationEvent();
index 42b297eedd75711e7bd0eb918d5a37f9ecd90dcb..d4bd40ccbae6c8adc6f13ae20f65b69c8a404526 100644 (file)
@@ -289,7 +289,7 @@ PresentationController::visualize(PresentationEvent::EventType eventType)
   // For each object, emit a signal to the workspace to request a
   // visualisation using the tui command (so that the user can see how
   // to make a view of an object from the tui console).
-  for (int i=0; i<listOfSObject->size(); i++) {
+  for (int i=0; i<(int)listOfSObject->size(); i++) {
       SALOMEDS::SObject_var soObj = listOfSObject->at(i);
       std::string name(_studyEditor->getName(soObj));
       if (soObj->_is_nil() || name == "MEDCalc")
@@ -388,7 +388,7 @@ PresentationController::onDeletePresentation()
   SALOME_StudyEditor::SObjectList* listOfSObject = _studyEditor->getSelectedObjects();
 
   // For each object, emit a signal to the workspace to request pres deletion
-  for (int i=0; i<listOfSObject->size(); i++) {
+  for (int i=0; i<(int)listOfSObject->size(); i++) {
       SALOMEDS::SObject_var soPres = listOfSObject->at(i);
       std::string name(_studyEditor->getName(soPres));
       if (soPres->_is_nil() || name == "MEDCalc")
@@ -581,7 +581,7 @@ PresentationController::processPresentationEvent(const PresentationEvent* event)
 }
 
 MEDWidgetHelper *
-PresentationController::findOrCreateWidgetHelper(MEDCALC::MEDPresentationManager_ptr presManager,
+PresentationController::findOrCreateWidgetHelper(MEDCALC::MEDPresentationManager_ptr /*presManager*/,                  // todo: unused
                                                  int presId, const std::string& type, const std::string& name )
 {
   std::map<int, MEDWidgetHelper *>::const_iterator it =_presHelperMap.find(presId);
@@ -604,8 +604,7 @@ PresentationController::findOrCreateWidgetHelper(MEDCALC::MEDPresentationManager
     wh = new MEDWidgetHelperDeflectionShape(this, _presManager, presId, name, _widgetPresentationParameters);
   else
     {
-      const char * msg ="findOrCreateWidgetHelper(): NOT IMPLEMENTED !!!";
-      STDLOG(msg);
+      STDLOG("findOrCreateWidgetHelper(): NOT IMPLEMENTED !!!");
       return wh;
     }
   _presHelperMap[presId] = wh;
@@ -643,7 +642,7 @@ PresentationController::onParavisDump()
   SALOME_StudyEditor::SObjectList* listOfSObject = _studyEditor->getSelectedObjects();
 
   // For the first object only, request the dump
-  for (int i=0; i<listOfSObject->size(); i++) {
+  for (int i=0; i<(int)listOfSObject->size(); i++) {
       SALOMEDS::SObject_var soPres = listOfSObject->at(i);
       std::string name(_studyEditor->getName(soPres));
       if (soPres->_is_nil() || name == "MEDCalc")
index 7f78ed4794aa77b835b346b6bc3973c0571b62ca..b03d414cc9935cbd63d8b0e06774eb3c1d69dd8c 100644 (file)
@@ -100,8 +100,10 @@ ProcessingController::OnChangeUnderlyingMesh()
       if ( fieldSeriesId < 0)
         return;
       MEDCALC::FieldHandlerList* fieldHandlerList = MEDFactoryClient::getDataManager()->getFieldListInFieldseries(fieldSeriesId);
+      /* todo: always false!
       if (fieldHandlerList->length() < 0)
         return;
+      */
       // For a field series, get the first real field entry:
       MEDCALC::FieldHandler fieldHandler = (*fieldHandlerList)[0];
       fieldId = fieldHandler.id;
@@ -158,8 +160,10 @@ ProcessingController::OnInterpolateField()
       if ( fieldSeriesId < 0)
         return;
       MEDCALC::FieldHandlerList* fieldHandlerList = MEDFactoryClient::getDataManager()->getFieldListInFieldseries(fieldSeriesId);
+      /* todo: always false!
       if (fieldHandlerList->length() < 0)
         return;
+      */
       // For a field series, get the first real field entry:
       MEDCALC::FieldHandler fieldHandler = (*fieldHandlerList)[0];
       fieldId = fieldHandler.id;
index 3090838e403928fdd07d68a1c746085db6dea44f..9c2599dc1f60dcde08ab82c4618e8311a26fa8a1 100644 (file)
@@ -29,7 +29,7 @@ class SUIT_Desktop;
 class QAction;
 namespace MEDCALC {
   class MedEvent;
-};
+}
 
 class TestController: public QObject {
   Q_OBJECT
index a376820e7a6a4b940ca234bfc10455e8aabb359d..f5627a2927e4a9e3bcbb8d1b8d4b117c7251f83d 100644 (file)
@@ -116,8 +116,8 @@ WorkspaceController::~WorkspaceController() {
  * connected slots.
  */
 void WorkspaceController::createActions() {
-  QWidget* dsk = _salomeModule->getApp()->desktop();
-  SUIT_ResourceMgr* resMgr = _salomeModule->getApp()->resourceMgr();
+  // QWidget* dsk = _salomeModule->getApp()->desktop(); // todo: unused
+  // SUIT_ResourceMgr* resMgr = _salomeModule->getApp()->resourceMgr(); // todo: unused
   int toolbarId = _salomeModule->createTool("Workspace", "WorkspaceToolbar");
 
   QString label   = tr("LAB_SAVE_WORKSPACE");
@@ -361,8 +361,9 @@ void WorkspaceController::processMedEvent(const MEDCALC::MedEvent* event) {
       std::string msg(event->msg);
       QMessageBox::warning(_salomeModule->getApp()->desktop(), "Error", QString::fromStdString(msg));
   }
-  else
+  else {
     STDLOG("WorkspaceController::processMedEvent(): Unhandled event!!!");
+  }
 }
 
 /*!
@@ -458,9 +459,9 @@ void WorkspaceController::_exportItemList(QStringList itemNameIdList) {
     LOG("WorkspaceController: WARN! No data object associated to the item "<<itemNameId);
     return;
   }
-  MEDCALC::FieldHandler* fieldHandler = dataObject->getFieldHandler();
   QStringList commands;
   /*
+  MEDCALC::FieldHandler* fieldHandler = dataObject->getFieldHandler(); // todo: unused
   commands+=QString("from xmed.driver_pvis import pvis_scalarmap");
   commands+=QString("pvis_scalarmap('%1','%2','%3',%4,%5)")
     .arg(tmpfilename)
@@ -502,7 +503,7 @@ void WorkspaceController::_viewItemList(QStringList itemNameIdList) {
 
   // Then, we can request this data object to obtain the associated
   // FieldHandler.
-  MEDCALC::FieldHandler* fieldHandler = dataObject->getFieldHandler();
+  //MEDCALC::FieldHandler* fieldHandler = dataObject->getFieldHandler(); // todo: unused
 
   // And finally, we can create the set of medcalc instructions to
   // generate the scalar map on this field.
index 6bc23849e2ca1e7f604a6aaa31c030f9e3d15386..52ad6bf4a84080c1688c1275ef9b74bd259c7fb5 100644 (file)
@@ -76,7 +76,6 @@ void XmedConsoleDriver::exec(const QStringList& commands) {
   MEDCALC::MEDCommandsHistoryManager_ptr history = MEDFactoryClient::getCommandsHistoryManager();
 
   QStringListIterator it(commands);
-  int i = 0;
   while (it.hasNext()) {
     const QString& command = it.next();
     _pyConsole->exec(command);
index a93f0b8b1631e386a34ae456c13c7715b2120c79..31c94ee54e2fffe85e51dc80d66a19f6aadeb3ae 100644 (file)
@@ -81,6 +81,7 @@ public:
 class MEDCALCGUI_EXPORT XmedDataProcessor : public DataProcessor {
 public:
   XmedDataProcessor(DataModel * dataModel):DataProcessor(dataModel) {};
+  virtual ~XmedDataProcessor() {};
 
   MEDCALC::FieldHandlerList * getResultingFieldHandlerList();
   MEDCALC::FieldIdList * getResultingFieldIdList();
index 440e5b455f97d1b22b9c3b1fd99f4b696f214637..e8963edea5c25405ed5d28be9f81e09e33345e77 100644 (file)
@@ -218,16 +218,20 @@ WidgetPresentationParameters::setScalarBarRange(MEDCALC::ScalarBarRangeType sbra
 {
   _blockSig = true;
 
-  int idx;
+  int idx = -1;
   if (sbrange == MEDCALC::SCALAR_BAR_ALL_TIMESTEPS)
     idx = _ui.comboBoxScalarBarRange->findText(tr("LAB_ALL_TIMESTEPS"));
   else if (sbrange == MEDCALC::SCALAR_BAR_CURRENT_TIMESTEP)
     idx = _ui.comboBoxScalarBarRange->findText(tr("LAB_CURRENT_TIMESTEP"));
 
   if (idx >= 0)
-      _ui.comboBoxScalarBarRange->setCurrentIndex(idx);
+  {
+    _ui.comboBoxScalarBarRange->setCurrentIndex(idx);
+  }
   else
+  {
     STDLOG("Strange!! No matching found - unable to set scalar bar range in GUI.");
+  }
 
   _blockSig = false;
 }
@@ -244,9 +248,13 @@ WidgetPresentationParameters::setColorMap(MEDCALC::ColorMapType colorMap)
     idx = _ui.comboBoxColorMap->findText(tr("LAB_COOL_TO_WARM"));
 
   if (idx >= 0)
-      _ui.comboBoxColorMap->setCurrentIndex(idx);
+  {
+    _ui.comboBoxColorMap->setCurrentIndex(idx);
+  }
   else
+  {
     STDLOG("Strange!! No matching found - unable to set color map in GUI.");
+  }
 
   _blockSig = false;
 }
@@ -276,9 +284,13 @@ WidgetPresentationParameters::setMeshMode(MEDCALC::MeshModeType mode)
       idx = -1;
   }
   if (idx >= 0)
-      _ui.comboBoxMesh->setCurrentIndex(idx);
+  {
+    _ui.comboBoxMesh->setCurrentIndex(idx);
+  }
   else
+  {
     STDLOG("Strange!! No matching found - unable to set mesh mode in GUI.");
+  }
 
   _blockSig = false;
 }
@@ -320,9 +332,13 @@ WidgetPresentationParameters::setSliceOrientation(MEDCALC::SliceOrientationType
       idx = -1;
   }
   if (idx >= 0)
+  {
     _ui.comboBoxSliceOrient->setCurrentIndex(idx);
+  }
   else
+  {
     STDLOG("Strange!! No matching found - unable to set slice orientation in GUI.");
+  }
 
   _blockSig = false;
 }
index f1db95e563bea8cfd51f1fd65fc6d62e2e39ecf5..02a467403d61979767224dc35ba44e4e7d9ab0a0 100644 (file)
@@ -324,7 +324,7 @@ void MEDCalculatorBrowserField::setMeshName(const std::string& m)
  * This method returns a restriction of this containing only selected TimeSteps.
  * This methods throws an exception if multiple meshes exists in selected time steps.
  */
-MEDCalculatorBrowserField MEDCalculatorBrowserField::getSelectedTimeSteps() const throw(INTERP_KERNEL::Exception)
+MEDCalculatorBrowserField MEDCalculatorBrowserField::getSelectedTimeSteps() const
 {
   int nbOfTs=std::count(_steps.begin(),_steps.end(),true);
   std::vector<MEDCalculatorBrowserStep> ts(nbOfTs);
index 77bc0e0916729aeba2d1cb777e1b9f3abab58540..ade0a134f91c2508cff63bf92778a48862f82f5f 100644 (file)
@@ -70,7 +70,7 @@ namespace MEDCoupling
     void setComponentName(int,const std::string&);//  Change the name of a component
     bool isAnySelection() const;
     void setMeshName(const std::string& m);
-    MEDCalculatorBrowserField getSelectedTimeSteps() const throw(INTERP_KERNEL::Exception);
+    MEDCalculatorBrowserField getSelectedTimeSteps() const;
   private:
     std::string _name;// field name
     std::string _file_name;// file name
index 9b0ab26b94ea258d03e649c1e06020ab26a6425d..5b1773276d0f34ccd28ef81682b2a53f9043f079 100644 (file)
@@ -56,31 +56,31 @@ std::vector<const BigMemoryObject *> MEDCalculatorDBField::getDirectChildrenWith
   return std::vector<const BigMemoryObject *>();
 }
 
-MEDCalculatorDBField *MEDCalculatorDBField::operator+(double val) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBField::operator+(double val) const
 {
   MCAuto<MEDCalculatorDBFieldCst> par2=new MEDCalculatorDBFieldCst(val);
   return (*this)+(*par2);
 }
 
-MEDCalculatorDBField *MEDCalculatorDBField::operator-(double val) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBField::operator-(double val) const
 {
   MCAuto<MEDCalculatorDBFieldCst> par2=new MEDCalculatorDBFieldCst(val);
   return (*this)-(*par2);
 }
 
-MEDCalculatorDBField *MEDCalculatorDBField::operator*(double val) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBField::operator*(double val) const
 {
   MCAuto<MEDCalculatorDBFieldCst> par2=new MEDCalculatorDBFieldCst(val);
   return (*this)*(*par2);
 }
 
-MEDCalculatorDBField *MEDCalculatorDBField::operator/(double val) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBField::operator/(double val) const
 {
   MCAuto<MEDCalculatorDBFieldCst> par2=new MEDCalculatorDBFieldCst(val);
   return (*this)/(*par2);
 }
 
-MEDCalculatorDBFieldReal *MEDCalculatorDBFieldReal::operator()(const MEDCalculatorDBRangeSelection& t, const MEDCalculatorDBRangeSelection& p, const MEDCalculatorDBRangeSelection& c) throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBFieldReal *MEDCalculatorDBFieldReal::operator()(const MEDCalculatorDBRangeSelection& t, const MEDCalculatorDBRangeSelection& p, const MEDCalculatorDBRangeSelection& c)
 {
   MEDCalculatorDBFieldReal *ret=new MEDCalculatorDBFieldReal(*this);
   ret->_t=t;
@@ -115,7 +115,7 @@ void MEDCalculatorDBFieldReal::setDescription(const char *descr)
   _time_steps[*iter]->setDescription(descr);*/
 }
 
-void MEDCalculatorDBFieldReal::write(const char *fName, bool writeFromScratch) const throw(INTERP_KERNEL::Exception)
+void MEDCalculatorDBFieldReal::write(const char *fName, bool writeFromScratch) const
 {
   fetchData();
   std::vector<std::size_t> ids=_t.getIds(_time_steps.size());
@@ -143,7 +143,7 @@ void MEDCalculatorDBFieldReal::write(const char *fName, bool writeFromScratch) c
     _time_steps[*iter]->write(fName,_name,_description);
 }
 
-void MEDCalculatorDBFieldReal::display() const throw(INTERP_KERNEL::Exception)
+void MEDCalculatorDBFieldReal::display() const
 {
   fetchData();
   std::vector<std::size_t> ids=_t.getIds(_time_steps.size());
@@ -212,7 +212,7 @@ MEDCalculatorDBFieldReal::MEDCalculatorDBFieldReal(const MEDCalculatorBrowserFie
     }
 }
 
-const MEDCalculatorDBFieldReal& MEDCalculatorDBFieldReal::operator=(const MEDCalculatorDBFieldReal& other) throw(INTERP_KERNEL::Exception)
+const MEDCalculatorDBFieldReal& MEDCalculatorDBFieldReal::operator=(const MEDCalculatorDBFieldReal& other)
 {
   checkConsistencyLight(other);
   std::vector<std::size_t> ids=_t.getIds(_time_steps.size());
@@ -227,13 +227,13 @@ const MEDCalculatorDBFieldReal& MEDCalculatorDBFieldReal::operator=(const MEDCal
   return *this;
 }
 
-const MEDCalculatorDBFieldReal& MEDCalculatorDBFieldReal::operator=(double val) throw(INTERP_KERNEL::Exception)
+const MEDCalculatorDBFieldReal& MEDCalculatorDBFieldReal::operator=(double val)
 {
   MCAuto<MEDCalculatorDBFieldReal> other=buildCstFieldFromThis(val);
   return (*this)=*other;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator+(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator+(const MEDCalculatorDBField& other) const
 {
   const MEDCalculatorDBField *other2=&other;
   const MEDCalculatorDBFieldReal *otherr=dynamic_cast<const MEDCalculatorDBFieldReal *>(other2);
@@ -253,7 +253,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator+(const MEDCalculatorDBF
     }
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::add(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::add(const MEDCalculatorDBFieldReal& other) const
 {
   checkConsistencyLight(other);
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
@@ -330,7 +330,7 @@ bool MEDCalculatorDBFieldReal::isEqualSameType(const MEDCalculatorDBFieldReal& o
   return true;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator-(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator-(const MEDCalculatorDBField& other) const
 {
   const MEDCalculatorDBField *other2=&other;
   const MEDCalculatorDBFieldReal *otherr=dynamic_cast<const MEDCalculatorDBFieldReal *>(other2);
@@ -350,7 +350,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator-(const MEDCalculatorDBF
     }
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::substract(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::substract(const MEDCalculatorDBFieldReal& other) const
 {
   checkConsistencyLight(other);
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
@@ -380,7 +380,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::substract(const MEDCalculatorDBF
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator*(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator*(const MEDCalculatorDBField& other) const
 {
   const MEDCalculatorDBField *other2=&other;
   const MEDCalculatorDBFieldReal *otherr=dynamic_cast<const MEDCalculatorDBFieldReal *>(other2);
@@ -400,7 +400,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator*(const MEDCalculatorDBF
     }
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::multiply(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::multiply(const MEDCalculatorDBFieldReal& other) const
 {
   checkConsistencyLight(other);
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
@@ -430,7 +430,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::multiply(const MEDCalculatorDBFi
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator/(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator/(const MEDCalculatorDBField& other) const
 {
   const MEDCalculatorDBField *other2=&other;
   const MEDCalculatorDBFieldReal *otherr=dynamic_cast<const MEDCalculatorDBFieldReal *>(other2);
@@ -450,7 +450,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator/(const MEDCalculatorDBF
     }
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::divide(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::divide(const MEDCalculatorDBFieldReal& other) const
 {
   checkConsistencyLight(other);
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
@@ -480,12 +480,12 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::divide(const MEDCalculatorDBFiel
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator^(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::operator^(const MEDCalculatorDBFieldReal& other) const
 {
   return crossProduct(other);
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::dot(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::dot(const MEDCalculatorDBFieldReal& other) const
 {
   checkConsistencyLight(other);
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
@@ -505,7 +505,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::dot(const MEDCalculatorDBFieldRe
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::crossProduct(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::crossProduct(const MEDCalculatorDBFieldReal& other) const
 {
   checkConsistencyLight(other);
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
@@ -525,7 +525,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::crossProduct(const MEDCalculator
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::doublyContractedProduct() const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::doublyContractedProduct() const
 {
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
   fetchData();
@@ -540,7 +540,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::doublyContractedProduct() const
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::determinant() const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::determinant() const
 {
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
   fetchData();
@@ -555,7 +555,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::determinant() const throw(INTERP
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::eigenValues() const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::eigenValues() const
 {
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
   fetchData();
@@ -576,7 +576,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::eigenValues() const throw(INTERP
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::eigenVectors() const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::eigenVectors() const
 {
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
   fetchData();
@@ -597,7 +597,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::eigenVectors() const throw(INTER
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::inverse() const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::inverse() const
 {
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
   fetchData();
@@ -618,7 +618,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::inverse() const throw(INTERP_KER
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::trace() const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::trace() const
 {
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
   fetchData();
@@ -633,7 +633,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::trace() const throw(INTERP_KERNE
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::deviator() const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::deviator() const
 {
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
   fetchData();
@@ -654,7 +654,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::deviator() const throw(INTERP_KE
   return ret;
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldReal::magnitude() const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldReal::magnitude() const
 {
   MCAuto<MEDCalculatorDBFieldReal> ret=new MEDCalculatorDBFieldReal(_type);
   fetchData();
@@ -669,7 +669,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldReal::magnitude() const throw(INTERP_K
   return ret;
 }
 
-void MEDCalculatorDBFieldReal::applyFunc(const char *func) throw(INTERP_KERNEL::Exception)
+void MEDCalculatorDBFieldReal::applyFunc(const char *func)
 {
   fetchData();
   std::vector<std::size_t> ids=_t.getIds(_time_steps.size());
@@ -696,7 +696,7 @@ MEDCalculatorDBFieldReal *MEDCalculatorDBFieldReal::buildCstFieldFromThis(double
   return ret;
 }
 
-void MEDCalculatorDBFieldReal::checkConsistencyLight(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception)
+void MEDCalculatorDBFieldReal::checkConsistencyLight(const MEDCalculatorDBFieldReal& other) const
 {
   if(_type!=other._type)
     throw INTERP_KERNEL::Exception("Types of field mismatch !");
@@ -706,7 +706,7 @@ void MEDCalculatorDBFieldReal::checkConsistencyLight(const MEDCalculatorDBFieldR
     throw INTERP_KERNEL::Exception("Components mismatch !");
 }
 
-void MEDCalculatorDBFieldReal::fetchData() const throw(INTERP_KERNEL::Exception)
+void MEDCalculatorDBFieldReal::fetchData() const
 {
   std::vector<std::pair<int,int> > idstoFetch;
   std::vector<std::size_t> ids=_t.getIds(_time_steps.size());
@@ -756,7 +756,7 @@ int MEDCalculatorDBFieldReal::getNumberOfComponents() const
 /*!
  * WARNING the caller has the ownership of all of instances in returned vector.
  */
-std::vector<MEDCouplingFieldDouble *> MEDCalculatorDBFieldReal::getFields() const throw(INTERP_KERNEL::Exception)
+std::vector<MEDCouplingFieldDouble *> MEDCalculatorDBFieldReal::getFields() const
 {
   fetchData();
   std::vector<std::size_t> ids=_t.getIds(_time_steps.size());
@@ -767,14 +767,14 @@ std::vector<MEDCouplingFieldDouble *> MEDCalculatorDBFieldReal::getFields() cons
   return ret;
 }
 
-std::string MEDCalculatorDBFieldReal::getInfoOnComponent(int i) const throw(INTERP_KERNEL::Exception)
+std::string MEDCalculatorDBFieldReal::getInfoOnComponent(int i) const
 {
   if(i>=(int)_c_labels.size())
     throw INTERP_KERNEL::Exception("MEDCalculatorDBFieldReal::getInfoOnComponent : specified id >= number of component !");
   return _c_labels[i];
 }
 
-void MEDCalculatorDBFieldReal::setInfoOnComponent(int i, const char *info) throw(INTERP_KERNEL::Exception)
+void MEDCalculatorDBFieldReal::setInfoOnComponent(int i, const char *info)
 {
   if(i>=(int)_c_labels.size())
     throw INTERP_KERNEL::Exception("MEDCalculatorDBFieldReal::setInfoOnComponent : specified id >= number of component !");
@@ -785,7 +785,7 @@ MEDCalculatorDBFieldCst::MEDCalculatorDBFieldCst(double val):_val(val)
 {
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator+(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator+(const MEDCalculatorDBField& other) const
 {
   const MEDCalculatorDBField *other2=&other;
   const MEDCalculatorDBFieldCst *otherc=dynamic_cast<const MEDCalculatorDBFieldCst *>(other2);
@@ -810,7 +810,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator+(const MEDCalculatorDBFi
     }
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator-(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator-(const MEDCalculatorDBField& other) const
 {
   const MEDCalculatorDBField *other2=&other;
   const MEDCalculatorDBFieldCst *otherc=dynamic_cast<const MEDCalculatorDBFieldCst *>(other2);
@@ -835,7 +835,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator-(const MEDCalculatorDBFi
     }
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator*(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator*(const MEDCalculatorDBField& other) const
 {
   const MEDCalculatorDBField *other2=&other;
   const MEDCalculatorDBFieldCst *otherc=dynamic_cast<const MEDCalculatorDBFieldCst *>(other2);
@@ -860,7 +860,7 @@ MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator*(const MEDCalculatorDBFi
     }
 }
 
-MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator/(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBField *MEDCalculatorDBFieldCst::operator/(const MEDCalculatorDBField& other) const
 {
   const MEDCalculatorDBField *other2=&other;
   const MEDCalculatorDBFieldCst *otherc=dynamic_cast<const MEDCalculatorDBFieldCst *>(other2);
index ddaa60f1be6052421cbf89869d50c4b2bd9cdb85..5ccd86f9f808f8ff5ea3756c9e25ac0de1731bde 100644 (file)
@@ -47,14 +47,14 @@ namespace MEDCoupling
     static MEDCalculatorDBFieldCst *New(double val);
     std::size_t getHeapMemorySizeWithoutChildren() const;
     std::vector<const BigMemoryObject *> getDirectChildrenWithNull() const;
-    virtual MEDCalculatorDBField *operator+(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception) = 0;
-    MEDCalculatorDBField *operator+(double val) const throw(INTERP_KERNEL::Exception);
-    virtual MEDCalculatorDBField *operator-(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception) = 0;
-    MEDCalculatorDBField *operator-(double val) const throw(INTERP_KERNEL::Exception);
-    virtual MEDCalculatorDBField *operator*(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception) = 0;
-    MEDCalculatorDBField *operator*(double val) const throw(INTERP_KERNEL::Exception);
-    virtual MEDCalculatorDBField *operator/(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception) = 0;
-    MEDCalculatorDBField *operator/(double val) const throw(INTERP_KERNEL::Exception);
+    virtual MEDCalculatorDBField *operator+(const MEDCalculatorDBField& other) const = 0;
+    MEDCalculatorDBField *operator+(double val) const;
+    virtual MEDCalculatorDBField *operator-(const MEDCalculatorDBField& other) const = 0;
+    MEDCalculatorDBField *operator-(double val) const;
+    virtual MEDCalculatorDBField *operator*(const MEDCalculatorDBField& other) const = 0;
+    MEDCalculatorDBField *operator*(double val) const;
+    virtual MEDCalculatorDBField *operator/(const MEDCalculatorDBField& other) const = 0;
+    MEDCalculatorDBField *operator/(double val) const;
     virtual bool isEqual(const MEDCalculatorDBField& other, double precM, double precF) const = 0;
   };
 
@@ -65,44 +65,44 @@ namespace MEDCoupling
     ~MEDCalculatorDBFieldReal();
     void setName(const char *name);
     void setDescription(const char *descr);
-    void write(const char *fName, bool writeFromScratch) const throw(INTERP_KERNEL::Exception);
-    void display() const throw(INTERP_KERNEL::Exception);
+    void write(const char *fName, bool writeFromScratch) const;
+    void display() const;
     std::string simpleRepr() const;
-    MEDCalculatorDBFieldReal *operator()(const MEDCalculatorDBRangeSelection& t, const MEDCalculatorDBRangeSelection& p, const MEDCalculatorDBRangeSelection& c) throw(INTERP_KERNEL::Exception);
-    const MEDCalculatorDBFieldReal& operator=(const MEDCalculatorDBFieldReal& other) throw(INTERP_KERNEL::Exception);
-    const MEDCalculatorDBFieldReal& operator=(double val) throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *operator+(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *add(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *operator-(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *substract(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *operator*(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *multiply(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *operator/(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *divide(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *operator^(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *dot(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *crossProduct(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *doublyContractedProduct() const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *determinant() const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *eigenValues() const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *eigenVectors() const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *inverse() const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *trace() const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *deviator() const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *magnitude() const throw(INTERP_KERNEL::Exception);
-    void applyFunc(const char *func) throw(INTERP_KERNEL::Exception);
+    MEDCalculatorDBFieldReal *operator()(const MEDCalculatorDBRangeSelection& t, const MEDCalculatorDBRangeSelection& p, const MEDCalculatorDBRangeSelection& c);
+    const MEDCalculatorDBFieldReal& operator=(const MEDCalculatorDBFieldReal& other);
+    const MEDCalculatorDBFieldReal& operator=(double val);
+    MEDCalculatorDBField *operator+(const MEDCalculatorDBField& other) const;
+    MEDCalculatorDBField *add(const MEDCalculatorDBFieldReal& other) const;
+    MEDCalculatorDBField *operator-(const MEDCalculatorDBField& other) const;
+    MEDCalculatorDBField *substract(const MEDCalculatorDBFieldReal& other) const;
+    MEDCalculatorDBField *operator*(const MEDCalculatorDBField& other) const;
+    MEDCalculatorDBField *multiply(const MEDCalculatorDBFieldReal& other) const;
+    MEDCalculatorDBField *operator/(const MEDCalculatorDBField& other) const;
+    MEDCalculatorDBField *divide(const MEDCalculatorDBFieldReal& other) const;
+    MEDCalculatorDBField *operator^(const MEDCalculatorDBFieldReal& other) const;
+    MEDCalculatorDBField *dot(const MEDCalculatorDBFieldReal& other) const;
+    MEDCalculatorDBField *crossProduct(const MEDCalculatorDBFieldReal& other) const;
+    MEDCalculatorDBField *doublyContractedProduct() const;
+    MEDCalculatorDBField *determinant() const;
+    MEDCalculatorDBField *eigenValues() const;
+    MEDCalculatorDBField *eigenVectors() const;
+    MEDCalculatorDBField *inverse() const;
+    MEDCalculatorDBField *trace() const;
+    MEDCalculatorDBField *deviator() const;
+    MEDCalculatorDBField *magnitude() const;
+    void applyFunc(const char *func);
     bool isEqual(const MEDCalculatorDBField& other, double precM, double precF) const;
     bool isEqualSameType(const MEDCalculatorDBFieldReal& other, double precM, double precF) const;
     MEDCalculatorDBFieldReal *buildCstFieldFromThis(double val) const;
-    void checkConsistencyLight(const MEDCalculatorDBFieldReal& other) const throw(INTERP_KERNEL::Exception);
-    void fetchData() const throw(INTERP_KERNEL::Exception);
+    void checkConsistencyLight(const MEDCalculatorDBFieldReal& other) const;
+    void fetchData() const;
     TypeOfField getType() const { return _type; }
     int getNumberOfSteps() const;
     int getNumberOfFetchedSteps() const;
     int getNumberOfComponents() const;
-    std::vector<MEDCouplingFieldDouble *> getFields() const throw(INTERP_KERNEL::Exception);
-    std::string getInfoOnComponent(int i) const throw(INTERP_KERNEL::Exception);
-    void setInfoOnComponent(int i, const char *info) throw(INTERP_KERNEL::Exception);
+    std::vector<MEDCouplingFieldDouble *> getFields() const;
+    std::string getInfoOnComponent(int i) const;
+    void setInfoOnComponent(int i, const char *info);
   private:
     MEDCalculatorDBFieldReal(TypeOfField type);
   private:
@@ -124,10 +124,10 @@ namespace MEDCoupling
   {
   public:
     MEDCalculatorDBFieldCst(double val);
-    MEDCalculatorDBField *operator+(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *operator-(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *operator*(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBField *operator/(const MEDCalculatorDBField& other) const throw(INTERP_KERNEL::Exception);
+    MEDCalculatorDBField *operator+(const MEDCalculatorDBField& other) const;
+    MEDCalculatorDBField *operator-(const MEDCalculatorDBField& other) const;
+    MEDCalculatorDBField *operator*(const MEDCalculatorDBField& other) const;
+    MEDCalculatorDBField *operator/(const MEDCalculatorDBField& other) const;
     bool isEqual(const MEDCalculatorDBField& other, double precM, double precF) const;
     MEDCalculatorDBFieldReal *convertIntoReal(const MEDCalculatorDBFieldReal& ref) const;
     double getValue() const { return _val; }
index 4c981f45b1b22b3e311875775093215fe797c85d..03b9578cb0a7c56de2ae5956a73f21f17d4c2421 100644 (file)
@@ -28,7 +28,7 @@ using namespace MEDCoupling;
 
 const char MEDCalculatorDBRangeSelection::ALL_ELTS[]=":";
 
-MEDCalculatorDBRangeSelection::MEDCalculatorDBRangeSelection(const char *v) throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBRangeSelection::MEDCalculatorDBRangeSelection(const char *v)
 try
   {
     setValue(v);
@@ -58,7 +58,7 @@ void MEDCalculatorDBRangeSelection::setPyEnd(int val)
   _end=TraducePyVal(val);
 }
 
-std::vector<std::size_t> MEDCalculatorDBRangeSelection::getIds(int lgth) const throw(INTERP_KERNEL::Exception)
+std::vector<std::size_t> MEDCalculatorDBRangeSelection::getIds(int lgth) const
 {
   if(_start>=lgth || _start<0)
     {
@@ -82,7 +82,7 @@ std::vector<std::size_t> MEDCalculatorDBRangeSelection::getIds(int lgth) const t
   return ret;
 }
 
-int MEDCalculatorDBRangeSelection::getSize(int lgth) const throw(INTERP_KERNEL::Exception)
+int MEDCalculatorDBRangeSelection::getSize(int lgth) const
 {
   return getIds(lgth).size();
 }
@@ -98,19 +98,19 @@ void MEDCalculatorDBRangeSelection::setAll()
   _end=std::numeric_limits<int>::max();
 }
 
-MEDCalculatorDBRangeSelection& MEDCalculatorDBRangeSelection::operator=(const char *v) throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBRangeSelection& MEDCalculatorDBRangeSelection::operator=(const char *v)
 {
   setValue(v);
   return *this;
 }
 
-MEDCalculatorDBRangeSelection& MEDCalculatorDBRangeSelection::operator=(int v) throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBRangeSelection& MEDCalculatorDBRangeSelection::operator=(int v)
 {
   setValue(v);
   return *this;
 }
 
-void MEDCalculatorDBRangeSelection::setValue(const char *v) throw(INTERP_KERNEL::Exception)
+void MEDCalculatorDBRangeSelection::setValue(const char *v)
 {
   try
   {
@@ -159,7 +159,7 @@ void MEDCalculatorDBRangeSelection::setValue(const char *v) throw(INTERP_KERNEL:
    }
 }
 
-void MEDCalculatorDBRangeSelection::setValue(int v) throw(INTERP_KERNEL::Exception)
+void MEDCalculatorDBRangeSelection::setValue(int v)
 {
   _start=v;
   _end=v+1;
index c8a000eea18d95a2ab1fac7d7e9d7e017f46b2bc..6a44fe0bd6294a3c9c70db7f887a258082241b78 100644 (file)
@@ -31,20 +31,20 @@ namespace MEDCoupling
   class MEDCALCULATOR_EXPORT MEDCalculatorDBRangeSelection
   {
   public:
-    MEDCalculatorDBRangeSelection(const char *v) throw(INTERP_KERNEL::Exception);
+    MEDCalculatorDBRangeSelection(const char *v);
     MEDCalculatorDBRangeSelection(int v);
     MEDCalculatorDBRangeSelection();
     void setPyStart(int val);
     void setPyEnd(int val);
-    MEDCalculatorDBRangeSelection& operator=(const char *v) throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBRangeSelection& operator=(int v) throw(INTERP_KERNEL::Exception);
-    std::vector<std::size_t> getIds(int lgth) const throw(INTERP_KERNEL::Exception);
-    int getSize(int lgth) const throw(INTERP_KERNEL::Exception);
+    MEDCalculatorDBRangeSelection& operator=(const char *v);
+    MEDCalculatorDBRangeSelection& operator=(int v);
+    std::vector<std::size_t> getIds(int lgth) const;
+    int getSize(int lgth) const;
     bool isAll() const;
     void setAll();
   private:
-    void setValue(const char *v) throw(INTERP_KERNEL::Exception);
-    void setValue(int v) throw(INTERP_KERNEL::Exception);
+    void setValue(const char *v);
+    void setValue(int v);
     static int TraducePyVal(int val);
   private:
     static const char SEPARATOR=':';
index 9be16e57ccaf981c218c50af36e6780e8d0a75c6..76fcbe2dce3741c7e50cd816181fec4358a9e496 100644 (file)
@@ -66,7 +66,7 @@ void MEDCalculatorDBSliceField::setDescription(const char *descr)
   _field->setDescription(descr);
 }
 
-void MEDCalculatorDBSliceField::write(const char *fName, const std::string& n, const std::string& d) const throw(INTERP_KERNEL::Exception)
+void MEDCalculatorDBSliceField::write(const char *fName, const std::string& n, const std::string& d) const
 {
   std::string kn=_field->getName();
   std::string kd=_field->getDescription();
@@ -214,7 +214,7 @@ MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::crossProduct(const MEDCalc
   return new MEDCalculatorDBSliceField(f3);
 }
 
-MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::doublyContractedProduct(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::doublyContractedProduct(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const
 {
   std::vector<std::size_t> tIds=thisC.getIds(sizeCThis);
   MCAuto<MEDCouplingFieldDouble> f1=_field->keepSelectedComponents(tIds);
@@ -222,7 +222,7 @@ MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::doublyContractedProduct(in
   return new MEDCalculatorDBSliceField(f2);
 }
 
-MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::determinant(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::determinant(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const
 {
   std::vector<std::size_t> tIds=thisC.getIds(sizeCThis);
   MCAuto<MEDCouplingFieldDouble> f1=_field->keepSelectedComponents(tIds);
@@ -230,7 +230,7 @@ MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::determinant(int sizeCThis,
   return new MEDCalculatorDBSliceField(f2);
 }
 
-MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::eigenValues(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::eigenValues(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const
 {
   std::vector<std::size_t> tIds=thisC.getIds(sizeCThis);
   MCAuto<MEDCouplingFieldDouble> f1=_field->keepSelectedComponents(tIds);
@@ -238,7 +238,7 @@ MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::eigenValues(int sizeCThis,
   return new MEDCalculatorDBSliceField(f2);
 }
 
-MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::eigenVectors(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::eigenVectors(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const
 {
   std::vector<std::size_t> tIds=thisC.getIds(sizeCThis);
   MCAuto<MEDCouplingFieldDouble> f1=_field->keepSelectedComponents(tIds);
@@ -246,7 +246,7 @@ MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::eigenVectors(int sizeCThis
   return new MEDCalculatorDBSliceField(f2);
 }
 
-MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::inverse(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::inverse(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const
 {
   std::vector<std::size_t> tIds=thisC.getIds(sizeCThis);
   MCAuto<MEDCouplingFieldDouble> f1=_field->keepSelectedComponents(tIds);
@@ -254,7 +254,7 @@ MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::inverse(int sizeCThis, con
   return new MEDCalculatorDBSliceField(f2);
 }
 
-MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::trace(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::trace(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const
 {
   std::vector<std::size_t> tIds=thisC.getIds(sizeCThis);
   MCAuto<MEDCouplingFieldDouble> f1=_field->keepSelectedComponents(tIds);
@@ -262,7 +262,7 @@ MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::trace(int sizeCThis, const
   return new MEDCalculatorDBSliceField(f2);
 }
 
-MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::deviator(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::deviator(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const
 {
   std::vector<std::size_t> tIds=thisC.getIds(sizeCThis);
   MCAuto<MEDCouplingFieldDouble> f1=_field->keepSelectedComponents(tIds);
@@ -270,7 +270,7 @@ MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::deviator(int sizeCThis, co
   return new MEDCalculatorDBSliceField(f2);
 }
 
-MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::magnitude(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception)
+MEDCalculatorDBSliceField *MEDCalculatorDBSliceField::magnitude(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const
 {
   std::vector<std::size_t> tIds=thisC.getIds(sizeCThis);
   MCAuto<MEDCouplingFieldDouble> f1=_field->keepSelectedComponents(tIds);
index 23c0a955da1791cbfd098f8ec0d5c727750e815e..7392aa0599b19503f1538c243ec5c4496b1895da 100644 (file)
@@ -48,7 +48,7 @@ namespace MEDCoupling
     void setField(MEDCouplingFieldDouble *f) const;
     void setName(const char *name);
     void setDescription(const char *descr);
-    void write(const char *fName, const std::string& n, const std::string& d) const throw(INTERP_KERNEL::Exception);
+    void write(const char *fName, const std::string& n, const std::string& d) const;
     const MEDCouplingMesh *getMesh(TypeOfField type, const std::string& fname, const std::string& mname, const std::string& fieldName) const;
     MEDCouplingFieldDouble *getField(TypeOfField type, const std::string& fname, const std::string& mname, const std::string& fieldName) const;
     MEDCouplingFieldDouble *getFieldWithoutQuestion(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const;
@@ -75,14 +75,14 @@ namespace MEDCoupling
     MEDCalculatorDBSliceField *crossProduct(const MEDCalculatorDBSliceField* other,
                                          int sizeCThis, const MEDCalculatorDBRangeSelection& thisC,
                                          int sizeCOther, const MEDCalculatorDBRangeSelection& otherC) const;
-    MEDCalculatorDBSliceField *doublyContractedProduct(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBSliceField *determinant(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBSliceField *eigenValues(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBSliceField *eigenVectors(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBSliceField *inverse(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBSliceField *trace(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBSliceField *deviator(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception);
-    MEDCalculatorDBSliceField *magnitude(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const throw(INTERP_KERNEL::Exception);
+    MEDCalculatorDBSliceField *doublyContractedProduct(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const;
+    MEDCalculatorDBSliceField *determinant(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const;
+    MEDCalculatorDBSliceField *eigenValues(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const;
+    MEDCalculatorDBSliceField *eigenVectors(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const;
+    MEDCalculatorDBSliceField *inverse(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const;
+    MEDCalculatorDBSliceField *trace(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const;
+    MEDCalculatorDBSliceField *deviator(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const;
+    MEDCalculatorDBSliceField *magnitude(int sizeCThis, const MEDCalculatorDBRangeSelection& thisC) const;
     void applyFunc(const char *func, int sizeCThis, const MEDCalculatorDBRangeSelection& thisC);
     bool isEqual(const MEDCalculatorDBSliceField* other, const DataArrayIdType *cc, const DataArrayIdType *nc,
                  int sizeCThis, const MEDCalculatorDBRangeSelection& thisC,
index 3b0176ceba7c10f996eee6091133bb893efe14ad..ad85119b3a4f962eb5d5162024ece32ac619320d 100644 (file)
@@ -94,7 +94,7 @@ void SPythonParser::keepSelectedLevOfPar(const std::string& s, int parLev, PyObj
   int curLev=0;
   std::size_t i=0;
   std::size_t len=s.length();
-  bool found=false;
+  //bool found=false; // todo: unused
   if(parLev==0)
     {
       _content=s;
@@ -119,7 +119,7 @@ void SPythonParser::keepSelectedLevOfPar(const std::string& s, int parLev, PyObj
           std::size_t end=s.find_first_of(')',i);
           end=end!=std::string::npos?end-i:std::string::npos;
           _content=s.substr(i,end);
-          found=true;
+          //found=true; // todo: unused
           break;
         }
     }
index e4aac481b662cb734fe1879a4489f99df6c20be4..f1945199e153345650b726d4f78379b2522feed8 100644 (file)
@@ -68,7 +68,7 @@ SALOME::StringSeq *DataArrayDoubleServant::GetExportableFormats()
   return ret;
 }
 
-CORBA::Boolean DataArrayDoubleServant::ExportDataAs(const char *format, SALOME::GenericObj_out exporter)
+CORBA::Boolean DataArrayDoubleServant::ExportDataAs(const char * /*format*/, SALOME::GenericObj_out exporter)
 {
   exporter=SALOME::GenericObj::_nil();
   return false;
index d624581c2fc7f561161363154bb9b4b88bd7ba5f..ad5d3a9c786a92e7f714d43ecbe6b34c322476ac 100644 (file)
@@ -68,7 +68,7 @@ SALOME::StringSeq *DataArrayIntServant::GetExportableFormats()
   return ret;
 }
 
-CORBA::Boolean DataArrayIntServant::ExportDataAs(const char *format, SALOME::GenericObj_out exporter)
+CORBA::Boolean DataArrayIntServant::ExportDataAs(const char * /*format*/, SALOME::GenericObj_out exporter)
 {
   exporter=SALOME::GenericObj::_nil();
   return false;
index 2f25585a5afc40eb2559d8e1eee4488945e7cee0..1a0455d76ea8a0f3b90eae9bb48263e667561804 100644 (file)
@@ -41,11 +41,11 @@ MPIMEDCouplingFieldDoubleServant::MPIMEDCouplingFieldDoubleServant(CORBA::ORB_pt
   BCastIOR(orb,pobj,false);
 }
 
-void MPIMEDCouplingFieldDoubleServant::getDataByMPI(const char* coupling) throw(SALOME::SALOME_Exception)
+void MPIMEDCouplingFieldDoubleServant::getDataByMPI(const char* coupling)
 {
   except_st *est;
   void *ret_th;
-  pthread_t *th;
+  pthread_t *th = 0;
 
   if(_numproc == 0)
     {
index f099e7987bc21d9b2c51e41d27d0ab6d9138cde2..0ff11916815df4b03c2df68c3956d9e2aa077ca6 100644 (file)
@@ -36,7 +36,7 @@ namespace MEDCoupling
   {
   public:
     MPIMEDCouplingFieldDoubleServant(CORBA::ORB_ptr orb,PortableServer::POA_ptr poa,ParaMEDMEMComponent_i *pcompo,MEDCouplingFieldDouble* field);
-    void getDataByMPI(const char* coupling) throw(SALOME::SALOME_Exception);
+    void getDataByMPI(const char* coupling);
     char* getRef();
     // only for coupling one component with itself
     CORBA::LongLong getImplementation() {return (CORBA::LongLong)_field;}
index 39c16cd2e056171170a6f878be447eed278a55d0..c073585c29bf2fe20c4a5e0e820619daab20b9e3 100644 (file)
@@ -56,12 +56,12 @@ ParaMEDMEMComponent_i::~ParaMEDMEMComponent_i()
   pthread_mutex_destroy (&m2);
 }
 
-void ParaMEDMEMComponent_i::initializeCoupling(const char * coupling, const char * ior) throw(SALOME::SALOME_Exception)
+void ParaMEDMEMComponent_i::initializeCoupling(const char * coupling, const char * ior)
 {
   int gsize, grank;
   except_st *est;
   void *ret_th;
-  pthread_t *th;
+  pthread_t *th = 0;
   ostringstream msg;
   
   pthread_mutex_lock(&m1);
@@ -145,11 +145,11 @@ void ParaMEDMEMComponent_i::initializeCoupling(const char * coupling, const char
     }
 }
 
-void ParaMEDMEMComponent_i::terminateCoupling(const char * coupling) throw(SALOME::SALOME_Exception)
+void ParaMEDMEMComponent_i::terminateCoupling(const char * coupling)
 {
   except_st *est;
   void *ret_th;
-  pthread_t *th;
+  pthread_t *th = 0;
   ostringstream msg;
 
   pthread_mutex_lock(&m2);
@@ -234,11 +234,11 @@ void ParaMEDMEMComponent_i::setInterpolationOptions(const char * coupling,
                                                     CORBA::Double max_distance_for_3Dsurf_intersect,
                                                     CORBA::Long orientation,
                                                     CORBA::Boolean measure_abs,
-                                                    const char * splitting_policy) throw(SALOME::SALOME_Exception)
+                                                    const char * splitting_policy)
 {
   except_st *est;
   void *ret_th;
-  pthread_t *th;
+  pthread_t *th = 0;
   ostringstream msg;
 
   if(_numproc == 0)
index d0088bd011faa2195d913f775b1db27dac91d504..cf4e92386ea9fb51747063a8f53d578a6e84fe12 100644 (file)
@@ -90,9 +90,9 @@ namespace MEDCoupling
                                  CORBA::Double max_distance_for_3Dsurf_intersect,
                                  CORBA::Long orientation,
                                  CORBA::Boolean measure_abs,
-                                 const char * splitting_policy ) throw(SALOME::SALOME_Exception);
-    virtual void initializeCoupling(const char * coupling, const char * ior) throw(SALOME::SALOME_Exception);
-    virtual void terminateCoupling(const char * coupling) throw(SALOME::SALOME_Exception);
+                                 const char * splitting_policy );
+    virtual void initializeCoupling(const char * coupling, const char * ior);
+    virtual void terminateCoupling(const char * coupling);
     virtual void _getOutputField(const char * coupling, MEDCouplingFieldDouble* field);
     
   protected: