From 14c22ea35b2402e65d20b0646cffbc30ae2f4cff Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 1 Jul 2010 09:27:59 +0000 Subject: [PATCH] Warning suppression. --- .../MEDCouplingTimeDiscretization.cxx | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx b/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx index ff1a30ad3..aa307459c 100644 --- a/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx +++ b/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx @@ -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); } -- 2.39.2