mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4580 Import Eclipse RFT data as part of ensemble import
This commit is contained in:
20
ApplicationCode/Application/Tools/RiaCurveMerger.cpp
Normal file
20
ApplicationCode/Application/Tools/RiaCurveMerger.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "RiaCurveMerger.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <time.h>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
template<>
|
||||
bool XValueComparator<double>::equals(const double& lhs, const double& rhs)
|
||||
{
|
||||
double eps = 1.0e-12 * std::max(std::fabs(lhs), std::fabs(rhs));
|
||||
return std::fabs(lhs - rhs) < eps;
|
||||
}
|
||||
|
||||
template<>
|
||||
double XValueComparator<time_t>::diff(const time_t& lhs, const time_t& rhs)
|
||||
{
|
||||
return difftime(lhs, rhs);
|
||||
}
|
||||
Reference in New Issue
Block a user