mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 09:22:13 -05:00
#4965 Fix crash when importing Eclipse input case.
Added guard to avoid importing faults from the input property files when faults already exists in the eclipse case. Faults can theoretically appear in any of the files, but reading and appending them to the existing fault collection is not currently supported.
This commit is contained in:
1 parent
ed59f0b618
commit
44b9e52e1b
1 file changed
+4
-1
@@ -103,7 +103,10 @@ bool RifEclipseInputPropertyLoader::readInputPropertiesFromFiles( RimEclipseInpu
|
||||
inputPropertyCollection->inputProperties.push_back( inputProperty );
|
||||
}
|
||||
|
||||
if ( importFaults )
|
||||
// Avoid importing faults from the input property files when faults already exists in
|
||||
// the eclipse case. Faults can theoretically appear in any of the files, but reading
|
||||
// and appending them to the existing fault collection is not currently supported.
|
||||
if ( importFaults && eclipseCaseData->mainGrid()->faults().empty() )
|
||||
{
|
||||
cvf::Collection<RigFault> faultCollection;
|
||||
RifEclipseInputFileTools::parseAndReadFaults( propertyFileName, &faultCollection );
|
||||
|
||||
Reference in new issue
Block a user