PFLOTRAN: Make parsing of faults more robust

Remove logging text causing noise, write out message only when PFLOTRAN file is found.
This commit is contained in:
Magne Sjaastad 2024-09-11 09:32:11 +02:00
parent 8ea818f03e
commit a3a740b722
2 changed files with 4 additions and 12 deletions

View File

@ -1061,7 +1061,7 @@ void RifEclipseInputFileTools::parsePflotranInputFile( const QString& fileName,
{
QStringList gridSectionFilenames;
RiaLogging::info( "Looking for 'Pflotran' fault definitions in " + fileName );
RiaLogging::info( "Looking for faults in 'PFLOTRAN' file: " + fileName );
{
// Find all referenced grdecl files in a pflotran input file, in the GRID section, example
@ -1137,15 +1137,9 @@ void RifEclipseInputFileTools::parsePflotranInputFile( const QString& fileName,
{
QFileInfo fi( gridSectionFilename );
QDir currentFileFolder = fi.absoluteDir();
QString absoluteFilePath = currentFileFolder.absoluteFilePath( words[1] );
QFile grdeclFilename( absoluteFilePath );
if ( !grdeclFilename.open( QFile::ReadOnly ) ) continue;
auto currentFaultCount = faults->size();
readFaults( grdeclFilename, 0, faults, nullptr );
auto currentFaultCount = faults->size();
QString absoluteFilePath = currentFileFolder.absoluteFilePath( words[1] );
parseAndReadFaults( absoluteFilePath, faults );
if ( currentFaultCount != faults->size() )
{
RiaLogging::info( "Imported faults from " + absoluteFilePath );

View File

@ -181,8 +181,6 @@ void RifReaderInterface::importFaults( const QStringList& fileSet, cvf::Collecti
if ( !isDataFileFound )
{
RiaLogging::info( "No *.DATA file is found" );
for ( const auto& filename : fileSet )
{
if ( filename.endsWith( ".IN", Qt::CaseInsensitive ) )