mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make sure we read the LAS file contents, too, when loading a project (#6507)
* Make sure we read the LAS file contents, too, when loading a project * Refactor WellPathCollection data loading on project open to simplify things a bit.
This commit is contained in:
@@ -511,26 +511,10 @@ bool RiaApplication::loadProject( const QString& projectFileName,
|
||||
if ( oilField == nullptr ) continue;
|
||||
if ( oilField->wellPathCollection == nullptr )
|
||||
{
|
||||
// printf("Create well path collection for oil field %i in loadProject.\n", oilFieldIdx);
|
||||
oilField->wellPathCollection = new RimWellPathCollection();
|
||||
}
|
||||
|
||||
if ( oilField->wellPathCollection )
|
||||
{
|
||||
oilField->wellPathCollection->loadDataAndUpdate();
|
||||
oilField->wellPathCollection->readWellPathFormationFiles();
|
||||
for ( RimWellPath* wellPath : oilField->wellPathCollection->wellPaths() )
|
||||
{
|
||||
RimFractureModelCollection* fractureModelCollection = wellPath->fractureModelCollection();
|
||||
if ( fractureModelCollection )
|
||||
{
|
||||
for ( RimFractureModel* fractureModel : fractureModelCollection->allFractureModels() )
|
||||
{
|
||||
fractureModel->loadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
oilField->wellPathCollection->loadDataAndUpdate();
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user