mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4453 Dual Porosity : Use ACTNUM value 3 when creating values from PORV
This commit is contained in:
9
ThirdParty/Ert/lib/ecl/ecl_kw_functions.cpp
vendored
9
ThirdParty/Ert/lib/ecl/ecl_kw_functions.cpp
vendored
@@ -143,9 +143,16 @@ ecl_kw_type * ecl_kw_alloc_actnum(const ecl_kw_type * porv_kw, float porv_limit)
|
||||
const float * porv_values = ecl_kw_get_float_ptr(porv_kw);
|
||||
int * actnum_values = ecl_kw_get_int_ptr( actnum_kw);
|
||||
|
||||
// When PORV is used as criteria, make sure all active cells are assigned both
|
||||
// active matrix and active fracture. This will make sure that both single porosity
|
||||
// models and dual porosity models in initialized with the correct bit mask
|
||||
// See documentation in top of ecl_grid.cpp
|
||||
//
|
||||
const int combinedActnumValueForMatrixAndFracture = CELL_ACTIVE_MATRIX + CELL_ACTIVE_FRACTURE;
|
||||
|
||||
for (int i=0; i < size; i++) {
|
||||
if (porv_values[i] > porv_limit)
|
||||
actnum_values[i] = 1;
|
||||
actnum_values[i] = combinedActnumValueForMatrixAndFracture;
|
||||
else
|
||||
actnum_values[i] = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user