Fixes by clang-tidy

This commit is contained in:
magnesj authored and Magne Sjaastad committed 2026-10-22 08:04:32 +02:00
1 parent 54cfb5efa3
commit c41194e7cb
5 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ class RiaTimer : public QObject, public caf::SignalEmitter
public:
RiaTimer();
~RiaTimer();
~RiaTimer() override;
void start( int intervalMs = 1000 );
void stop();
@@ -30,7 +30,7 @@ class RimBatchQueueLocal : public RimBatchQueue
public:
RimBatchQueueLocal();
~RimBatchQueueLocal();
~RimBatchQueueLocal() override;
void queueProcess( std::shared_ptr<RimProcess> process, int nProcessesPerTask ) override;
void stopProcess() override;
@@ -30,7 +30,7 @@ class RimBatchQueueLsf : public RimBatchQueueSlurm
public:
RimBatchQueueLsf();
~RimBatchQueueLsf();
~RimBatchQueueLsf() override;
QStringList generateCommand( QString script,
QString jobName,
@@ -32,7 +32,7 @@ class RimBatchQueueSlurm : public RimBatchQueue
public:
RimBatchQueueSlurm( RiaDefines::BatchSchedulerType schedulerType = RiaDefines::BatchSchedulerType::SLURM );
~RimBatchQueueSlurm();
~RimBatchQueueSlurm() override;
void queueProcess( std::shared_ptr<RimProcess> process, int nProcessesPerTask ) override;
void stopProcess() override;
@@ -1407,7 +1407,7 @@ static std::optional<LateralRefinementCorrection>
const double size2 = cellProperties->cellSize[d2];
double perm1 = cellProperties->permeability[d1];
double perm2 = cellProperties->permeability[d2];
if ( !( perm1 > 0.0 && perm2 > 0.0 ) )
if ( perm1 <= 0.0 || perm2 <= 0.0 )
{
perm1 = 1.0;
perm2 = 1.0;
@@ -1443,7 +1443,7 @@ static std::optional<LateralRefinementCorrection>
const double originalDenominator = std::log( originalRadius / wellRadius ) + skin;
const double refinedDenominator = std::log( refinedRadius / wellRadius ) + skin;
if ( !( wellRadius > 0.0 && originalDenominator > 0.0 && refinedDenominator > 0.0 ) )
if ( wellRadius <= 0.0 || originalDenominator <= 0.0 || refinedDenominator <= 0.0 )
{
warning(
std::format( "refined pressure equivalent radius {:.4g} is too small compared to well radius {:.4g}", refinedRadius, wellRadius ) );