Salome HOME
projects
/
tools
/
medcoupling.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Generalization of unstructured grid supported by the remapper.
[tools/medcoupling.git]
/
src
/
MEDCoupling
/
MEDCouplingTimeLabel.cxx
diff --git
a/src/MEDCoupling/MEDCouplingTimeLabel.cxx
b/src/MEDCoupling/MEDCouplingTimeLabel.cxx
index e91f08a4e76f546428a2c0ec830194b4edce0ee3..7026c3f11bea01bb170c7c75ba3eeac51e4f9851 100644
(file)
--- a/
src/MEDCoupling/MEDCouplingTimeLabel.cxx
+++ b/
src/MEDCoupling/MEDCouplingTimeLabel.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
2
CEA/DEN, EDF R&D
+// Copyright (C) 2007-201
3
CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-16,12
+16,13
@@
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+// Author : Anthony Geay (CEA/DEN)
#include "MEDCouplingTimeLabel.hxx"
using namespace ParaMEDMEM;
#include "MEDCouplingTimeLabel.hxx"
using namespace ParaMEDMEM;
-
unsigned in
t TimeLabel::GLOBAL_TIME=0;
+
std::size_
t TimeLabel::GLOBAL_TIME=0;
TimeLabel::TimeLabel():_time(GLOBAL_TIME++)
{
TimeLabel::TimeLabel():_time(GLOBAL_TIME++)
{
@@
-47,3
+48,12
@@
void TimeLabel::updateTimeWith(const TimeLabel& other) const
if(_time<other._time)
_time=other._time;
}
if(_time<other._time)
_time=other._time;
}
+
+/*!
+ * This method has to be called with a lot of care. It set agressively the time in this with the
+ * time in \a other.
+ */
+void TimeLabel::forceTimeOfThis(const TimeLabel& other) const
+{
+ _time=other._time;
+}