Skip to content

Commit

Permalink
revise a little
Browse files Browse the repository at this point in the history
  • Loading branch information
GitPaean committed Aug 15, 2024
1 parent 44c8aad commit 631c4b3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions opm/models/ptflash/flashindices.hh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ namespace Opm {
*
* \tparam PVOffset The first index in a primary variable vector.
*/
// TODO: The indices class should handle whether phase is active, not the FluidSystem
template <class TypeTag, int PVOffset>
class FlashIndices
: public EnergyIndices<PVOffset + getPropValue<TypeTag, Properties::NumComponents>(),
Expand All @@ -53,11 +54,11 @@ public:
static constexpr bool waterEnabled = false;
static constexpr bool gasEnabled = true;
static constexpr bool oilEnabled = true;
static constexpr bool waterPhaseIdx = -1;
static constexpr bool waterGasIdx = 0;
static constexpr bool waterOilIdx = 1;
static constexpr bool compositionSwitchIdx = -1;
static constexpr bool numPhases = 3;
static constexpr int waterPhaseIdx = -1;
// static constexpr int waterGasIdx = 0;
// static constexpr int waterOilIdx = 1;
static constexpr int compositionSwitchIdx = -1;
static constexpr int numPhases = 2;
unsigned canonicalToActiveComponentIndex(unsigned solventCompIdx){return solventCompIdx;};
//! number of equations/primary variables
static const int numEq = numComponents + EnergyIndices::numEq_;
Expand Down

0 comments on commit 631c4b3

Please sign in to comment.