mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
use if constexpr to eliminate some solvent code
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Opm
|
||||
, segment_phase_densities_(numberOfSegments(), std::vector<EvalWell>(num_components_, 0.0)) // number of phase here?
|
||||
{
|
||||
// not handling solvent or polymer for now with multisegment well
|
||||
if (has_solvent) {
|
||||
if constexpr (has_solvent) {
|
||||
OPM_THROW(std::runtime_error, "solvent is not supported by multisegment well yet");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user