mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6203 Fracture Model: Allow trailing seperator in import of elastic table csv.
This commit is contained in:
@@ -79,7 +79,9 @@ RifElasticProperties
|
||||
{
|
||||
QStringList tokens = tokenize( line, "," );
|
||||
|
||||
if ( tokens.size() != 13 )
|
||||
// Plus one to allow trailing separator
|
||||
const int expectedTokens = 13;
|
||||
if ( !( tokens.size() == expectedTokens || tokens.size() == expectedTokens + 1 ) )
|
||||
{
|
||||
throw FileParseException( QString( "Incomplete data on line %1: %2" ).arg( lineNumber ).arg( filePath ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user