|
20 | 20 |
|
21 | 21 | #include "RiaLogging.h"
|
22 | 22 | #include "RiaPorosityModel.h"
|
| 23 | +#include "RiaPreferencesSystem.h" |
23 | 24 | #include "RiaResultNames.h"
|
24 | 25 | #include "RiaWeightedMeanCalculator.h"
|
25 | 26 |
|
@@ -61,6 +62,8 @@ void RigWellTargetCandidatesGenerator::generateCandidates( RimEclipseCase*
|
61 | 62 | {
|
62 | 63 | if ( !eclipseCase->ensureReservoirCaseIsOpen() ) return;
|
63 | 64 |
|
| 65 | + bool isLoggingEnabled = RiaPreferencesSystem::current()->isLoggingActivatedForKeyword( "RigWellTargetMapping" ); |
| 66 | + |
64 | 67 | auto activeCellCount = getActiveCellCount( eclipseCase );
|
65 | 68 | if ( !activeCellCount )
|
66 | 69 | {
|
@@ -140,11 +143,12 @@ void RigWellTargetCandidatesGenerator::generateCandidates( RimEclipseCase*
|
140 | 143 |
|
141 | 144 | if ( startCell.has_value() )
|
142 | 145 | {
|
143 |
| - RiaLogging::info( QString( "Cluster %1 start cell: [%2 %3 %4] " ) |
144 |
| - .arg( clusterId ) |
145 |
| - .arg( startCell->i() + 1 ) |
146 |
| - .arg( startCell->j() + 1 ) |
147 |
| - .arg( startCell->k() + 1 ) ); |
| 146 | + if ( isLoggingEnabled ) |
| 147 | + RiaLogging::info( QString( "Cluster %1 start cell: [%2 %3 %4] " ) |
| 148 | + .arg( clusterId ) |
| 149 | + .arg( startCell->i() + 1 ) |
| 150 | + .arg( startCell->j() + 1 ) |
| 151 | + .arg( startCell->k() + 1 ) ); |
148 | 152 |
|
149 | 153 | growCluster( eclipseCase, startCell.value(), limits, data, filterVector, clusters, clusterId, timeStepIdx, maxIterations );
|
150 | 154 | numClustersFound++;
|
@@ -204,15 +208,18 @@ void RigWellTargetCandidatesGenerator::generateCandidates( RimEclipseCase*
|
204 | 208 | int clusterId = 1;
|
205 | 209 | for ( const auto& s : statistics )
|
206 | 210 | {
|
207 |
| - RiaLogging::info( QString( "Cluster #%1 Statistics" ).arg( s.id ) ); |
208 |
| - RiaLogging::info( QString( "Number of cells: %1" ).arg( s.numCells ) ); |
209 |
| - RiaLogging::info( QString( "Total PORV*SOIL: %1" ).arg( s.totalPorvSoil ) ); |
210 |
| - RiaLogging::info( QString( "Total PORV*SGAS: %1" ).arg( s.totalPorvSgas ) ); |
211 |
| - RiaLogging::info( QString( "Total PORV*(SOIL+SGAS): %1" ).arg( s.totalPorvSoilAndSgas ) ); |
212 |
| - RiaLogging::info( QString( "Total FIPOIL: %1" ).arg( s.totalFipOil ) ); |
213 |
| - RiaLogging::info( QString( "Total FIPGAS: %1" ).arg( s.totalFipGas ) ); |
214 |
| - RiaLogging::info( QString( "Average Permeability: %1" ).arg( s.permeability ) ); |
215 |
| - RiaLogging::info( QString( "Average Pressure: %1" ).arg( s.pressure ) ); |
| 211 | + if ( isLoggingEnabled ) |
| 212 | + { |
| 213 | + RiaLogging::info( QString( "Cluster #%1 Statistics" ).arg( s.id ) ); |
| 214 | + RiaLogging::info( QString( "Number of cells: %1" ).arg( s.numCells ) ); |
| 215 | + RiaLogging::info( QString( "Total PORV*SOIL: %1" ).arg( s.totalPorvSoil ) ); |
| 216 | + RiaLogging::info( QString( "Total PORV*SGAS: %1" ).arg( s.totalPorvSgas ) ); |
| 217 | + RiaLogging::info( QString( "Total PORV*(SOIL+SGAS): %1" ).arg( s.totalPorvSoilAndSgas ) ); |
| 218 | + RiaLogging::info( QString( "Total FIPOIL: %1" ).arg( s.totalFipOil ) ); |
| 219 | + RiaLogging::info( QString( "Total FIPGAS: %1" ).arg( s.totalFipGas ) ); |
| 220 | + RiaLogging::info( QString( "Average Permeability: %1" ).arg( s.permeability ) ); |
| 221 | + RiaLogging::info( QString( "Average Pressure: %1" ).arg( s.pressure ) ); |
| 222 | + } |
216 | 223 |
|
217 | 224 | addValuesForClusterId( totalPorvSoil, clusters, clusterId, s.totalPorvSoil );
|
218 | 225 | addValuesForClusterId( totalPorvSgas, clusters, clusterId, s.totalPorvSgas );
|
|
0 commit comments