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:
Bård Skaflestad 2014-07-29 11:12:08 +02:00
parent 871160b7a0
commit 62f654b52c

View File

@ -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];