From 2229affcb0126292e2bd34c119cbaef53f5b45a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A5rd=20Skaflestad?= Date: Tue, 29 Jul 2014 11:12:08 +0200 Subject: [PATCH] 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. --- opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp b/opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp index f51dde880..1b22a97d6 100644 --- a/opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp +++ b/opm/core/props/satfunc/SaturationPropsFromDeck_impl.hpp @@ -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];