2017-10-04 07:59:38 -05:00
|
|
|
#include "gtest/gtest.h"
|
|
|
|
|
|
|
|
#include "RifReaderEclipseRft.h"
|
|
|
|
#include "RifEclipseRftAddress.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
//TEST(RifReaderEclipseRftTest, TestRifEclipseRftAddress)
|
|
|
|
TEST(DISABLED_RifReaderEclipseRftTest, TestRifEclipseRftAddress)
|
|
|
|
{
|
2018-02-03 02:14:53 -06:00
|
|
|
QString filename = "C:\\Users\\Rebecca Cox\\Dropbox\\norne\\norne\\NORNE_ATW2013.RFT";
|
2017-10-04 09:13:17 -05:00
|
|
|
|
|
|
|
RifReaderEclipseRft reader(filename);
|
2017-10-04 07:59:38 -05:00
|
|
|
|
|
|
|
std::vector<RifEclipseRftAddress> addresses = reader.eclipseRftAddresses();
|
|
|
|
|
|
|
|
/*for (RifEclipseRftAddress address : addresses)
|
|
|
|
{
|
|
|
|
std::cout << address.wellName() << std::endl;
|
|
|
|
}*/
|
|
|
|
|
|
|
|
for (RifEclipseRftAddress address : addresses)
|
|
|
|
{
|
|
|
|
std::vector<double> values;
|
|
|
|
reader.values(address, &values);
|
|
|
|
EXPECT_TRUE(values.size() > 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
ASSERT_TRUE(addresses.size() > 0);
|
|
|
|
|
|
|
|
std::vector<double> values;
|
|
|
|
reader.values(addresses[0], &values);
|
|
|
|
ASSERT_TRUE(values.size() > 0);
|
|
|
|
|
|
|
|
std::cout << "First value: " << values.front() << ", last value: " << values.back() << std::endl;
|
|
|
|
}
|