mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2434 Eclipse input property: fix import for keywords without data
Keywords without data does not have a trailing '/'.
This commit is contained in:
committed by
Magne Sjaastad
parent
a47edd4fa6
commit
53af120f39
@@ -88,6 +88,11 @@ std::pair<std::string, std::vector<float>>
|
||||
{
|
||||
std::vector<float> values;
|
||||
|
||||
auto isKeywordWithoutData = []( const std::string& keyword ) {
|
||||
std::vector<std::string> keywords = { "ECHO", "NOECHO" };
|
||||
return std::find( keywords.begin(), keywords.end(), keyword ) != keywords.end();
|
||||
};
|
||||
|
||||
const auto commentChar = '-';
|
||||
const auto commentString = "--";
|
||||
|
||||
@@ -133,7 +138,9 @@ std::pair<std::string, std::vector<float>>
|
||||
{
|
||||
keywordName = line;
|
||||
if ( keywordName == "FAULTS" ) isFaultKeyword = true;
|
||||
if ( isKeywordWithoutData( keywordName ) ) isEndTokenKeywordRead = true;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user