fxing the warning related to compIdx in PTFlash

This commit is contained in:
Kai Bao 2022-06-27 11:19:26 +02:00
parent 41a489c9ad
commit 1728d53371

View File

@ -1092,6 +1092,7 @@ protected:
for (unsigned idx = 0; idx < num_deri; ++idx) { for (unsigned idx = 0; idx < num_deri; ++idx) {
L_eval.setDerivative(idx, deriL[idx]); L_eval.setDerivative(idx, deriL[idx]);
} }
}
// set up the mole fractions // set up the mole fractions
for (unsigned compIdx = 0; compIdx < numComponents; ++compIdx) { for (unsigned compIdx = 0; compIdx < numComponents; ++compIdx) {
@ -1099,7 +1100,6 @@ protected:
fluid_state.setMoleFraction(FluidSystem::gasPhaseIdx, compIdx, y[compIdx]); fluid_state.setMoleFraction(FluidSystem::gasPhaseIdx, compIdx, y[compIdx]);
} }
fluid_state.setLvalue(L_eval); fluid_state.setLvalue(L_eval);
}
} //end updateDerivatives } //end updateDerivatives
// TODO: or use typename FlashFluidState::Scalar // TODO: or use typename FlashFluidState::Scalar