fixed some jenkins warnings

This commit is contained in:
Trine Mykkeltvedt 2022-06-28 13:28:49 +02:00
parent 3d8826fc28
commit 659ae7e846
3 changed files with 5 additions and 5 deletions

View File

@ -369,7 +369,7 @@ unsigned cubicRoots(SolContainer* sol,
// Find one real root of a depressed cubic using hyperbolic method. Different solutions depending on
// sign of p
Scalar t;
Scalar t = 0;
if (p < 0) {
// Help calculation
Scalar theta = (1.0 / 3.0) * acosh( ((-3.0 * abs(q)) / (2.0 * p)) * sqrt(-3.0 / p) );

View File

@ -177,8 +177,8 @@ namespace Opm {
unsigned phaseIdx,
unsigned compIdx)
{
assert(0 <= phaseIdx && phaseIdx < numPhases);
assert(0 <= compIdx && compIdx < numComponents);
assert(phaseIdx < numPhases);
assert(compIdx < numComponents);
LhsEval phi = PengRobinsonMixture::computeFugacityCoefficient(fluidState, paramCache, phaseIdx, compIdx);

View File

@ -182,8 +182,8 @@ namespace Opm {
unsigned phaseIdx,
unsigned compIdx)
{
assert(0 <= phaseIdx && phaseIdx < numPhases);
assert(0 <= compIdx && compIdx < numComponents);
assert(phaseIdx < numPhases);
assert(compIdx < numComponents);
// TODO: here the derivatives for the phi are dropped. Should we keep the derivatives against the pressure
// and temperature?