mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
#3100 Well Path Import : Improve test of valid values before adding well path point
This commit is contained in:
1 parent
ede6ebef90
commit
bb91a79515
1 file changed
+12
-10
@@ -210,17 +210,8 @@ void RifWellPathImporter::readAllAsciiWellData(const QString& filePath)
|
||||
if (stream.good()) // If we can, assume this line is a well point entry
|
||||
{
|
||||
stream >> y >> tvd >> md;
|
||||
if (!stream.eof() && !stream.good())
|
||||
{
|
||||
// -999 or otherwise to few numbers before some word
|
||||
if (x != -999)
|
||||
{
|
||||
// Error in file: missing numbers at this line
|
||||
|
||||
}
|
||||
stream.clear();
|
||||
}
|
||||
else
|
||||
if (x != HUGE_VAL && y != HUGE_VAL && tvd != HUGE_VAL && md != HUGE_VAL)
|
||||
{
|
||||
if (!fileWellDataArray.size())
|
||||
{
|
||||
@@ -234,6 +225,17 @@ void RifWellPathImporter::readAllAsciiWellData(const QString& filePath)
|
||||
|
||||
hasReadWellPointInCurrentWell = true;
|
||||
}
|
||||
|
||||
if (!stream.good())
|
||||
{
|
||||
// -999 or otherwise to few numbers before some word
|
||||
if (x != -999)
|
||||
{
|
||||
// Error in file: missing numbers at this line
|
||||
|
||||
}
|
||||
stream.clear();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user