Skip to content
Snippets Groups Projects
Commit 7f1120f6 authored by mattijs's avatar mattijs
Browse files

BUG: solarCalculator: time wraparound. Fixes #3258

parent 96ada1dd
No related branches found
No related tags found
1 merge request!722RELEASE: develop branch to master
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com \\ / A nd | www.openfoam.com
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2015-2022 OpenCFD Ltd. Copyright (C) 2015-2024 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
...@@ -95,7 +95,7 @@ void Foam::solarCalculator::calculateBetaTheta() ...@@ -95,7 +95,7 @@ void Foam::solarCalculator::calculateBetaTheta()
dict_.readEntry("startTime", startTime_); dict_.readEntry("startTime", startTime_);
const scalar LST = startTime_ + runTime/3600.0; const scalar LST = startTime_ + std::fmod(runTime/3600.0, 24);
const scalar LON = dict_.get<scalar>("longitude"); const scalar LON = dict_.get<scalar>("longitude");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment