mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -430,7 +430,7 @@ namespace Opm
|
||||
swat = eps_transf_[cell].wat.smax;
|
||||
} else {
|
||||
const int wpos = phase_usage_.phase_pos[BlackoilPhases::Aqua];
|
||||
const int np = phase_usage_.num_phases;
|
||||
const int np = BlackoilPhases::MaxNumPhases;
|
||||
double s[np];
|
||||
s[wpos] = swat;
|
||||
double pc[np];
|
||||
|
||||
Reference in New Issue
Block a user