-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated ERT to bbab02e02630924471760a7e9357825ad414e2e9
Integrated fix for MSW reading of large wells
- Loading branch information
Showing
11 changed files
with
152 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
ThirdParty/Ert/devel/python/test/ert_tests/ecl/test_ecl_sum.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# !/usr/bin/env python | ||
# Copyright (C) 2014 Statoil ASA, Norway. | ||
# | ||
# The file 'test_ecl_sum.py' is part of ERT - Ensemble based Reservoir Tool. | ||
# | ||
# ERT is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# ERT is distributed in the hope that it will be useful, but WITHOUT ANY | ||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. | ||
# | ||
# See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html> | ||
# for more details. | ||
from ert.ecl import EclSum | ||
from ert.test import ExtendedTestCase | ||
|
||
try: | ||
from unittest2 import skipIf | ||
except ImportError: | ||
from unittest import skipIf | ||
|
||
class EclSumTest(ExtendedTestCase): | ||
def setUp(self): | ||
self.test_file = self.createTestPath("Statoil/ECLIPSE/Gurbat/ECLIPSE.SMSPEC") | ||
self.ecl_sum = EclSum(self.test_file) | ||
|
||
def test_time_range_year(self): | ||
real_range = self.ecl_sum.timeRange(interval="1y", extend_end = False) | ||
extended_range = self.ecl_sum.timeRange(interval="1y", extend_end = True) | ||
assert real_range[-1] < extended_range[-1] | ||
|
||
def test_time_range_day(self): | ||
real_range = self.ecl_sum.timeRange(interval = "1d", extend_end = False) | ||
extended_range = self.ecl_sum.timeRange(interval = "1d", extend_end = True) | ||
assert real_range[-1] == extended_range[-1] | ||
|
||
def test_time_range_month(self): | ||
real_range = self.ecl_sum.timeRange(interval = "1m", extend_end = False) | ||
extended_range = self.ecl_sum.timeRange(interval = "1m", extend_end = True) | ||
assert real_range[-1] < extended_range[-1] |
43 changes: 43 additions & 0 deletions
43
ThirdParty/Ert/devel/python/test/ert_tests/well/test_ecl_well2.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import datetime | ||
import os.path | ||
|
||
from ert.ecl import EclGrid, EclFile, EclFileFlagEnum | ||
from ert.test import ExtendedTestCase | ||
from ert.util.ctime import CTime | ||
from ert.well import WellInfo, WellConnection, WellTypeEnum, WellConnectionDirectionEnum, WellSegment | ||
|
||
|
||
|
||
class EclWellTest2(ExtendedTestCase): | ||
grid = None | ||
|
||
|
||
def getGrid(self): | ||
if EclWellTest2.grid is None: | ||
EclWellTest2.grid = EclGrid( self.createTestPath("Statoil/ECLIPSE/Troll/Ref2014/T07-4A-W2014-06.EGRID")) | ||
|
||
return EclWellTest2.grid | ||
|
||
|
||
def checkWell(self , rst_file): | ||
segment_length = [2660 , 20 , 121 , 1347.916 , 20.585 , 56.249 , 115.503 , 106.978 , 47.124 , 279.529, | ||
128.534 , 165.33 , 59.97 , 936.719 ] | ||
|
||
well_info = WellInfo( self.getGrid() , self.createTestPath( os.path.join("Statoil/ECLIPSE/Troll/Ref2014" , rst_file ))) | ||
well_time_line = well_info["F4BYH"] | ||
for well_state in well_time_line: | ||
self.assertTrue( well_state.isMultiSegmentWell() ) | ||
self.assertTrue( well_state.hasSegmentData() ) | ||
|
||
for index,length in enumerate(segment_length): | ||
segment = well_state.igetSegment(index) | ||
self.assertFloatEqual( segment.length() , length ) | ||
|
||
|
||
|
||
|
||
def testWell(self): | ||
self.checkWell("T07-4A-W2014-06.X0695") | ||
self.checkWell("T07-4A-W2014-06.X0709") | ||
self.checkWell("T07-4A-W2014-06.UNRST") | ||
|