From 4b64780daef337916c4e94a50df3f3c98625d9e1 Mon Sep 17 00:00:00 2001 From: Pierre Horgue Date: Thu, 4 Jul 2024 10:21:12 +0200 Subject: [PATCH] DEV: change currentEventEndTime --- libraries/toolsGIS/eventFile/eventFile.C | 2 +- libraries/toolsGIS/eventFile/eventFile.H | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/toolsGIS/eventFile/eventFile.C b/libraries/toolsGIS/eventFile/eventFile.C index 242e683e..29f81fe0 100644 --- a/libraries/toolsGIS/eventFile/eventFile.C +++ b/libraries/toolsGIS/eventFile/eventFile.C @@ -79,7 +79,7 @@ Foam::scalar Foam::eventFile::currentEventStartTime() const else return dates_[iterator_]; } -const Foam::scalar& Foam::eventFile::currentEventEndTime() const +Foam::scalar Foam::eventFile::currentEventEndTime() const { if (iterator_ < ndates_-1) return dates_[iterator_+1]; else return GREAT; diff --git a/libraries/toolsGIS/eventFile/eventFile.H b/libraries/toolsGIS/eventFile/eventFile.H index d551d04f..15115f71 100644 --- a/libraries/toolsGIS/eventFile/eventFile.H +++ b/libraries/toolsGIS/eventFile/eventFile.H @@ -110,7 +110,7 @@ public: const scalar& currentValue(const label& id) const {return currentValues_[id];} const scalarList& currentValues() const {return currentValues_;} scalar currentEventStartTime() const; - const scalar& currentEventEndTime() const; + scalar currentEventEndTime() const; void storeOldValues() { oldOldValues_ = oldValues_; oldValues_ = currentValues_;