From 072f882a997a0afccdbcc722e1a60191604e626d Mon Sep 17 00:00:00 2001 From: Pierre Horgue Date: Thu, 4 Jul 2024 10:21:12 +0200 Subject: [PATCH] BUG: fix missing libPMFtoolsGIS dependency --- libraries/numericalMethods/Make/options | 5 ++++- libraries/toolsGIS/eventFile/eventFile.C | 2 +- libraries/toolsGIS/eventFile/eventFile.H | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libraries/numericalMethods/Make/options b/libraries/numericalMethods/Make/options index 1b2f872d..1d4ef58f 100644 --- a/libraries/numericalMethods/Make/options +++ b/libraries/numericalMethods/Make/options @@ -5,4 +5,7 @@ EXE_INC = \ LIB_LIBS = \ -lfiniteVolume \ - -lmeshTools + -lmeshTools \ + -L$(FOAM_USER_LIBBIN) \ + -lPMFtoolsGIS + 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_;