mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2066 Observed Data : Improve detection of required header lines
This commit is contained in:
@@ -584,6 +584,8 @@ std::vector<std::string> RifEclipseUserDataParserTools::findValidHeaderLines(std
|
||||
std::string line;
|
||||
bool continueParsing = true;
|
||||
bool hasStepType = false;
|
||||
size_t minimunRequiredExtraHeaderLines = 0;
|
||||
|
||||
while (continueParsing)
|
||||
{
|
||||
posAtTableDataStart = streamData.tellg();
|
||||
@@ -615,6 +617,12 @@ std::vector<std::string> RifEclipseUserDataParserTools::findValidHeaderLines(std
|
||||
|
||||
columnCount = words.size();
|
||||
|
||||
minimunRequiredExtraHeaderLines = RifEclipseUserDataKeywordTools::computeRequiredHeaderLineCount(words);
|
||||
|
||||
headerLines.push_back(line);
|
||||
}
|
||||
else if (headerLines.size() < minimunRequiredExtraHeaderLines)
|
||||
{
|
||||
headerLines.push_back(line);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user