mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Revert "#4762 Fix reset_actnum libecl crash on load"
We will check in a different fix on recommendation by libecl team
This reverts commit 047136e8b8
.
This commit is contained in:
parent
0fd7f40e46
commit
1255c877d7
12
ThirdParty/Ert/lib/ecl/ecl_coarse_cell.cpp
vendored
12
ThirdParty/Ert/lib/ecl/ecl_coarse_cell.cpp
vendored
@ -290,13 +290,17 @@ 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) {
|
||||
if (active_value & CELL_ACTIVE_MATRIX) {
|
||||
coarse_cell->active_index = *active_index;
|
||||
(*active_index) += 1;
|
||||
if (coarse_cell->active_index == -1) {
|
||||
coarse_cell->active_index = *active_index;
|
||||
(*active_index) += 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (active_value & CELL_ACTIVE_FRACTURE) {
|
||||
coarse_cell->active_fracture_index = *active_fracture_index;
|
||||
(*active_fracture_index) += 1;
|
||||
if (coarse_cell->active_fracture_index == -1) {
|
||||
coarse_cell->active_fracture_index = *active_fracture_index;
|
||||
(*active_fracture_index) += 1;
|
||||
}
|
||||
}
|
||||
|
||||
int_vector_append( coarse_cell->active_cells , global_index );
|
||||
|
Loading…
Reference in New Issue
Block a user