Fixing the crash on retreiving the fractureActive index on none dual porosity again.

p4#: 20326
This commit is contained in:
Jacob Støren 2013-02-01 09:26:43 +01:00
parent 66f0bc03bd
commit df40d89fe9

View File

@ -3005,6 +3005,7 @@ int ecl_grid_get_active_fracture_index3(const ecl_grid_type * ecl_grid , int i ,
*/
int ecl_grid_get_active_fracture_index1(const ecl_grid_type * ecl_grid , int global_index) {
if (!ecl_grid->fracture_index_map) return -1;
return ecl_grid->fracture_index_map[global_index];
}