Don't use variable-length arrays
We only support up to 'BlackoilPhases::MaxNumPhases' different phases (and components), so there's no need to pretend otherwise.
This commit is contained in:
parent
871160b7a0
commit
62f654b52c
@ -430,7 +430,7 @@ namespace Opm
|
|||||||
swat = eps_transf_[cell].wat.smax;
|
swat = eps_transf_[cell].wat.smax;
|
||||||
} else {
|
} else {
|
||||||
const int wpos = phase_usage_.phase_pos[BlackoilPhases::Aqua];
|
const int wpos = phase_usage_.phase_pos[BlackoilPhases::Aqua];
|
||||||
const int np = phase_usage_.num_phases;
|
const int np = BlackoilPhases::MaxNumPhases;
|
||||||
double s[np];
|
double s[np];
|
||||||
s[wpos] = swat;
|
s[wpos] = swat;
|
||||||
double pc[np];
|
double pc[np];
|
||||||
|
Loading…
Reference in New Issue
Block a user