mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#4762 Fix reset_actnum libecl crash on load
This commit is contained in:
-4
@@ -290,18 +290,14 @@ 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) {
|
||||
if (coarse_cell->active_index == -1) {
|
||||
coarse_cell->active_index = *active_index;
|
||||
(*active_index) += 1;
|
||||
}
|
||||
}
|
||||
|
||||
if (active_value & CELL_ACTIVE_FRACTURE) {
|
||||
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 );
|
||||
int_vector_append( coarse_cell->active_values , active_value );
|
||||
|
||||
Reference in New Issue
Block a user