]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Addition of operations on fields and CONST_ON_INTER policy for Time discretization.
authorageay <ageay>
Mon, 1 Feb 2010 16:21:14 +0000 (16:21 +0000)
committerageay <ageay>
Mon, 1 Feb 2010 16:21:14 +0000 (16:21 +0000)
src/MEDCoupling/MEDCouplingFieldDouble.hxx
src/MEDCoupling/MEDCouplingTimeDiscretization.cxx

index 175db4479d531f069a1ea275e375a472f434bbe5..d27a42c7219eb9bc5c968baa54ada69915491c58 100644 (file)
@@ -40,7 +40,11 @@ namespace ParaMEDMEM
     NatureOfField getNature() const { return _nature; }
     void setNature(NatureOfField nat) throw(INTERP_KERNEL::Exception);
     void setTime(double val, int dt, int it) { _time_discr->setTime(val,dt,it); }
+    void setStartTime(double val, int dt, int it) { _time_discr->setStartTime(val,dt,it); }
+    void setEndTime(double val, int dt, int it) { _time_discr->setEndTime(val,dt,it); }
     double getTime(int& dt, int& it) const { return _time_discr->getTime(dt,it); }
+    double getStartTime(int& dt, int& it) const { return _time_discr->getStartTime(dt,it); }
+    double getEndTime(int& dt, int& it) const { return _time_discr->getEndTime(dt,it); }
     double getIJ(int tupleId, int compoId) const { return getArray()->getIJ(tupleId,compoId); }
     void setArray(DataArrayDouble *array);
     DataArrayDouble *getArray() const { return _time_discr->getArray(); }
index dbc0dc5f67081ec7422a3f7d9230f25447faf730..4946ba99bba200be37e0b2001763dab9a8f6f295 100644 (file)
@@ -625,6 +625,12 @@ bool MEDCouplingConstOnTimeInterval::isEqual(const MEDCouplingTimeDiscretization
     return false;
   if(std::fabs(_start_time-otherC->_start_time)>_time_tolerance)
     return false;
+  if(_end_dt!=otherC->_end_dt)
+    return false;
+  if(_end_it!=otherC->_end_it)
+    return false;
+  if(std::fabs(_end_time-otherC->_end_time)>_time_tolerance)
+    return false;
   return MEDCouplingTimeDiscretization::isEqual(other,prec);
 }