mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Various linux fixes and missing includes
p4#: 20976
This commit is contained in:
@@ -102,12 +102,12 @@ void RifEclipseOutputFileTools::timeSteps(ecl_file_type* ecl_file, std::vector<Q
|
||||
double floorDayValue = cvf::Math::floor(dayValue);
|
||||
double dayFraction = dayValue - floorDayValue;
|
||||
|
||||
int seconds = (dayFraction * 24.0 * 60.0 * 60.0);
|
||||
int seconds = static_cast<int>(dayFraction * 24.0 * 60.0 * 60.0);
|
||||
QTime time(0, 0);
|
||||
time = time.addSecs(seconds);
|
||||
|
||||
QDate reportDate = simulationStart;
|
||||
reportDate = reportDate.addDays(floorDayValue);
|
||||
reportDate = reportDate.addDays(static_cast<int>(floorDayValue));
|
||||
|
||||
QDateTime reportDateTime(reportDate, time);
|
||||
if (std::find(timeStepsFound.begin(), timeStepsFound.end(), reportDateTime) == timeStepsFound.end())
|
||||
|
||||
Reference in New Issue
Block a user