]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Warning suppression.
authorageay <ageay>
Thu, 1 Jul 2010 09:27:59 +0000 (09:27 +0000)
committerageay <ageay>
Thu, 1 Jul 2010 09:27:59 +0000 (09:27 +0000)
src/MEDCoupling/MEDCouplingTimeDiscretization.cxx

index ff1a30ad39ce51cb6612936a86ab760254769f03..aa307459c9c8fbafafd3f3be01643c8d0e97f02b 100644 (file)
@@ -1302,15 +1302,19 @@ void MEDCouplingLinearTime::getValueOnTime(int eltId, double time, double *value
 void MEDCouplingLinearTime::getValueOnDiscTime(int eltId, int dt, int it, double *value) const throw(INTERP_KERNEL::Exception)
 {
   if(dt==_start_dt && it==_start_it)
-    if(_array)
-      _array->getTuple(eltId,value);
-    else
-      throw INTERP_KERNEL::Exception("dt it match with start time but no start array existing.");
+    {
+      if(_array)
+        _array->getTuple(eltId,value);
+      else
+        throw INTERP_KERNEL::Exception("dt it match with start time but no start array existing.");
+    }
   if(dt==_end_dt && it==_end_it)
-    if(_end_array)
-      _end_array->getTuple(eltId,value);
-    else
-      throw INTERP_KERNEL::Exception("dt it match with end time but no end array existing.");
+    {
+      if(_end_array)
+        _end_array->getTuple(eltId,value);
+      else
+        throw INTERP_KERNEL::Exception("dt it match with end time but no end array existing.");
+    }
   else
     throw INTERP_KERNEL::Exception(EXCEPTION_MSG);
 }