swatInitScaling(): Rename array size parameter
This commit renames the 'np' parameter used to allocate small arrays for saturations and capillary pressures to 'max_np' to better reflect its purpose. Suggested by: [at] atgeirr
This commit is contained in:
parent
4da2c5862d
commit
e8901775cd
@ -430,10 +430,10 @@ 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 = BlackoilPhases::MaxNumPhases;
|
const int max_np = BlackoilPhases::MaxNumPhases;
|
||||||
double s[np] = { 0.0 };
|
double s[max_np] = { 0.0 };
|
||||||
s[wpos] = swat;
|
s[wpos] = swat;
|
||||||
double pc[np] = { 0.0 };
|
double pc[max_np] = { 0.0 };
|
||||||
funcForCell(cell).evalPc(s, pc, &(eps_transf_[cell]));
|
funcForCell(cell).evalPc(s, pc, &(eps_transf_[cell]));
|
||||||
if (pc[wpos] > 1.0e-8) {
|
if (pc[wpos] > 1.0e-8) {
|
||||||
eps_transf_[cell].wat.pcFactor *= pcow/pc[wpos];
|
eps_transf_[cell].wat.pcFactor *= pcow/pc[wpos];
|
||||||
|
Loading…
Reference in New Issue
Block a user