Skip to content

Commit

Permalink
Add debug timers to import of UNRST files
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Oct 31, 2024
1 parent e6a58d7 commit 9a1c54c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ApplicationLibCode/FileInterface/RifReaderOpmCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ( ... )
{
Expand Down Expand Up @@ -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();
Expand All @@ -907,6 +911,8 @@ void RifReaderOpmCommon::buildMetaData( RigEclipseCaseData* eclipseCaseData, caf
isImportOfCompleteMswDataEnabled() );

restartAccess->close();

RiaLogging::logTimeElapsed( "Completed import of simulation well data" );
}
else
{
Expand Down

0 comments on commit 9a1c54c

Please sign in to comment.