mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix invalid parsing of line with keyword end tag and comment
* Add error text when size differs * #9845: Remove invalid parsing of data in comment line The line '/ -- 123 123' was parsed incorrectly, and values 123 123 was added to the list of valid values for the keyword.
This commit is contained in:
@@ -42,7 +42,8 @@ class RifEclipseInputPropertyLoader
|
||||
{
|
||||
public:
|
||||
static void createInputPropertiesFromKeywords( RigEclipseCaseData* eclipseCase,
|
||||
const std::vector<RifEclipseKeywordContent>& keywordContent );
|
||||
const std::vector<RifEclipseKeywordContent>& keywordContent,
|
||||
QString* errorText );
|
||||
|
||||
// Returns map of assigned resultName and Eclipse Keyword.
|
||||
static std::map<QString, QString> readProperties( const QString& fileName, RigEclipseCaseData* eclipseCase );
|
||||
@@ -56,7 +57,8 @@ private:
|
||||
|
||||
static bool isInputPropertyCandidate( const RigEclipseCaseData* caseData,
|
||||
const std::string& eclipseKeyword,
|
||||
size_t numberOfValues );
|
||||
size_t numberOfValues,
|
||||
QString* errorText );
|
||||
|
||||
static bool appendNewInputPropertyResult( RigEclipseCaseData* caseData,
|
||||
const QString& resultName,
|
||||
|
||||
Reference in New Issue
Block a user