mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4762 Fix reset_actnum libecl crash on load
This commit is contained in:
parent
d9b36a0228
commit
047136e8b8
12
ThirdParty/Ert/lib/ecl/ecl_coarse_cell.cpp
vendored
12
ThirdParty/Ert/lib/ecl/ecl_coarse_cell.cpp
vendored
@ -290,17 +290,13 @@ const int * ecl_coarse_cell_get_box_ptr( const ecl_coarse_cell_type * coarse_cel
|
|||||||
|
|
||||||
void ecl_coarse_cell_update_index( ecl_coarse_cell_type * coarse_cell , int global_index , int * active_index , int * active_fracture_index , int active_value) {
|
void ecl_coarse_cell_update_index( ecl_coarse_cell_type * coarse_cell , int global_index , int * active_index , int * active_fracture_index , int active_value) {
|
||||||
if (active_value & CELL_ACTIVE_MATRIX) {
|
if (active_value & CELL_ACTIVE_MATRIX) {
|
||||||
if (coarse_cell->active_index == -1) {
|
coarse_cell->active_index = *active_index;
|
||||||
coarse_cell->active_index = *active_index;
|
(*active_index) += 1;
|
||||||
(*active_index) += 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (active_value & CELL_ACTIVE_FRACTURE) {
|
if (active_value & CELL_ACTIVE_FRACTURE) {
|
||||||
if (coarse_cell->active_fracture_index == -1) {
|
coarse_cell->active_fracture_index = *active_fracture_index;
|
||||||
coarse_cell->active_fracture_index = *active_fracture_index;
|
(*active_fracture_index) += 1;
|
||||||
(*active_fracture_index) += 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int_vector_append( coarse_cell->active_cells , global_index );
|
int_vector_append( coarse_cell->active_cells , global_index );
|
||||||
|
Loading…
Reference in New Issue
Block a user