mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add topology curves and show in additional track
* Add topology curves and default plot * Improve visual appearance * Update sub module opm-common * Add support for INCLUDE keyword to allow parsing of include files recursively * Search for *.DATA with fallback to *.SCH to automatically import WESEGLINK data * Find annulus branch based on MD diff on segment start * Stop growing device branch if segment starts at a lower MD than previous
This commit is contained in:
@@ -139,12 +139,43 @@ void RimFileSummaryCase::createRftReaderInterface()
|
||||
QFileInfo fileInfo( summaryHeaderFilename() );
|
||||
QString folder = fileInfo.absolutePath();
|
||||
|
||||
QString rftFileName = folder + "/" + fileInfo.completeBaseName() + ".RFT";
|
||||
QFileInfo rftFileInfo( rftFileName );
|
||||
|
||||
if ( rftFileInfo.exists() )
|
||||
QString rftFileName = folder + "/" + fileInfo.completeBaseName() + ".RFT";
|
||||
{
|
||||
m_rftCase()->setRftFileName( rftFileName );
|
||||
QFileInfo fi( rftFileName );
|
||||
|
||||
if ( fi.exists() )
|
||||
{
|
||||
m_rftCase()->setRftFileName( rftFileName );
|
||||
}
|
||||
}
|
||||
|
||||
if ( m_rftCase->dataDeckFilePath().isEmpty() )
|
||||
{
|
||||
// Search for *.DATA file in same folder as summary file. If not found, search for a schedule file.
|
||||
QString validDataDeckFileName;
|
||||
|
||||
QString dataDeckFileName = folder + "/" + fileInfo.completeBaseName() + ".DATA";
|
||||
QFileInfo fi( dataDeckFileName );
|
||||
|
||||
if ( fi.exists() )
|
||||
{
|
||||
validDataDeckFileName = dataDeckFileName;
|
||||
}
|
||||
else
|
||||
{
|
||||
QString scheduleFileName = folder + "/" + fileInfo.completeBaseName() + ".SCH";
|
||||
QFileInfo fi( scheduleFileName );
|
||||
|
||||
if ( fi.exists() )
|
||||
{
|
||||
validDataDeckFileName = scheduleFileName;
|
||||
}
|
||||
}
|
||||
|
||||
if ( !validDataDeckFileName.isEmpty() )
|
||||
{
|
||||
m_rftCase->setDataDeckFileName( dataDeckFileName );
|
||||
}
|
||||
}
|
||||
|
||||
m_summaryEclipseRftReader =
|
||||
|
||||
Reference in New Issue
Block a user