mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
parent
8ea818f03e
commit
a3a740b722
@ -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 );
|
||||
|
@ -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 ) )
|
||||
|
Loading…
Reference in New Issue
Block a user