mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add debug timers to import of UNRST files
This commit is contained in:
parent
e6a58d7559
commit
9a1c54c7d6
@ -741,7 +741,9 @@ void RifReaderOpmCommon::setupInitAndRestartAccess()
|
||||
{
|
||||
try
|
||||
{
|
||||
RiaLogging::resetTimer( "Starting import of meta data from " + QString::fromStdString( m_restartFileName ) );
|
||||
m_restartFile = std::make_unique<EclIO::ERst>( m_restartFileName );
|
||||
RiaLogging::logTimeElapsed( "Completed import of meta data" );
|
||||
}
|
||||
catch ( ... )
|
||||
{
|
||||
@ -890,6 +892,8 @@ void RifReaderOpmCommon::buildMetaData( RigEclipseCaseData* eclipseCaseData, caf
|
||||
auto task = progress.task( "Handling well information", 10 );
|
||||
if ( loadWellDataEnabled() && !m_restartFileName.empty() )
|
||||
{
|
||||
RiaLogging::resetTimer( "Start import of simulation well data" );
|
||||
|
||||
auto restartAccess = std::make_unique<RifEclipseUnifiedRestartFileAccess>();
|
||||
restartAccess->setRestartFiles( QStringList( QString::fromStdString( m_restartFileName ) ) );
|
||||
restartAccess->open();
|
||||
@ -907,6 +911,8 @@ void RifReaderOpmCommon::buildMetaData( RigEclipseCaseData* eclipseCaseData, caf
|
||||
isImportOfCompleteMswDataEnabled() );
|
||||
|
||||
restartAccess->close();
|
||||
|
||||
RiaLogging::logTimeElapsed( "Completed import of simulation well data" );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user