Skip to content

Commit

Permalink
Fix EclRegressionTest.cpp-functionality to accept extra keywords only…
Browse files Browse the repository at this point in the history
… from the second deck
  • Loading branch information
lisajulia committed Apr 11, 2024
1 parent eab2675 commit b2ba9f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion test_util/EclRegressionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void ECLRegressionTest::printDeviationReport()

void ECLRegressionTest::compareKeywords(const std::vector<std::string> &keywords1, const std::vector<std::string> &keywords2, const std::string &reference) {

if (!acceptExtraKeywords) {
if (!(acceptExtraKeywords or acceptExtraKeywordsBoth)) {
if (keywords1 != keywords2) {
std::cout << "not same keywords in " << reference << std::endl;

Expand Down
1 change: 0 additions & 1 deletion test_util/EclRegressionTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ class ECLRegressionTest: public ECLFilesComparator {
//Accept extra keywords in both simulations and compare only the keywords available in both runs
void setAcceptExtraKeywordsBoth(bool acceptExtraKeywordsArg) {
this->acceptExtraKeywordsBoth = acceptExtraKeywordsArg;
this->acceptExtraKeywords = acceptExtraKeywordsArg;
}

void setIntegrationTest(bool inregrationTestArg) {
Expand Down

0 comments on commit b2ba9f3

Please sign in to comment.