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 070f2456c4
commit 2229affcb0

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