adding a small test for aquifer keywords
This commit is contained in:
@@ -21,8 +21,6 @@
|
|||||||
#define OPM_OUTPUT_SUMMARY_HPP
|
#define OPM_OUTPUT_SUMMARY_HPP
|
||||||
|
|
||||||
#include <opm/parser/eclipse/EclipseState/Schedule/Group/Group.hpp>
|
#include <opm/parser/eclipse/EclipseState/Schedule/Group/Group.hpp>
|
||||||
|
|
||||||
// TODO: following the convention here, it should be removed.
|
|
||||||
#include <opm/output/data/Aquifer.hpp>
|
#include <opm/output/data/Aquifer.hpp>
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|||||||
@@ -258,6 +258,22 @@ BOOST_AUTO_TEST_CASE(blocks) {
|
|||||||
names.begin(), names.end() );
|
names.begin(), names.end() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOST_AUTO_TEST_CASE(aquifer) {
|
||||||
|
const auto input = "AAQR\n"
|
||||||
|
" 1 2 /\n"
|
||||||
|
"AAQT\n"
|
||||||
|
" 1 /\n"
|
||||||
|
"AAQP\n"
|
||||||
|
" 1 2 3/\n";
|
||||||
|
const auto summary = createSummary( input );
|
||||||
|
const auto keywords = { "AAQP", "AAQP", "AAQP", "AAQR", "AAQR", "AAQT" };
|
||||||
|
const auto names = sorted_keywords( summary );
|
||||||
|
|
||||||
|
BOOST_CHECK_EQUAL_COLLECTIONS(
|
||||||
|
keywords.begin(), keywords.end(),
|
||||||
|
names.begin(), names.end() );
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(regions) {
|
BOOST_AUTO_TEST_CASE(regions) {
|
||||||
const auto input = "ROIP\n"
|
const auto input = "ROIP\n"
|
||||||
"1 2 3 /\n"
|
"1 2 3 /\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user