Add solvent to phaseUsage
This commit is contained in:
parent
acc0f81260
commit
daecfa7e55
@ -38,6 +38,7 @@ namespace Opm
|
|||||||
int num_phases;
|
int num_phases;
|
||||||
int phase_used[MaxNumPhases];
|
int phase_used[MaxNumPhases];
|
||||||
int phase_pos[MaxNumPhases];
|
int phase_pos[MaxNumPhases];
|
||||||
|
bool has_solvent;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Check or assign presence of a formed, free phase. Limited to
|
/// Check or assign presence of a formed, free phase. Limited to
|
||||||
|
@ -66,6 +66,12 @@ namespace Opm
|
|||||||
OPM_THROW(std::runtime_error, "Cannot handle cases with no OIL, i.e. water-gas systems.");
|
OPM_THROW(std::runtime_error, "Cannot handle cases with no OIL, i.e. water-gas systems.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add solvent info
|
||||||
|
pu.has_solvent = false;
|
||||||
|
if (phase.active(Phase::SOLVENT)) {
|
||||||
|
pu.has_solvent = true;
|
||||||
|
}
|
||||||
|
|
||||||
return pu;
|
return pu;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,6 +118,12 @@ namespace Opm
|
|||||||
OPM_THROW(std::runtime_error, "Cannot handle cases with no OIL, i.e. water-gas systems.");
|
OPM_THROW(std::runtime_error, "Cannot handle cases with no OIL, i.e. water-gas systems.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add solvent info
|
||||||
|
pu.has_solvent = false;
|
||||||
|
if (phase.active(Phase::SOLVENT)) {
|
||||||
|
pu.has_solvent = true;
|
||||||
|
}
|
||||||
|
|
||||||
return pu;
|
return pu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user