adding a small test for aquifer keywords

This commit is contained in:
Kai Bao 2020-10-02 22:28:46 +02:00
parent 2c0456da8a
commit e86e8796ec
2 changed files with 16 additions and 2 deletions

View File

@ -21,8 +21,6 @@
#define OPM_OUTPUT_SUMMARY_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 <map>

View File

@ -258,6 +258,22 @@ BOOST_AUTO_TEST_CASE(blocks) {
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) {
const auto input = "ROIP\n"
"1 2 3 /\n"