ecl_subsidence_type * ecl_subsidence_alloc( const ecl_grid_type * ecl_grid, const ecl_file_type * init_file) { ecl_subsidence_type * ecl_subsidence = util_malloc( sizeof * ecl_subsidence ); ecl_subsidence->init_file = init_file; ecl_subsidence->grid_cache = ecl_grid_cache_alloc( ecl_grid ); ecl_subsidence->aquifer_cell = ecl_grav_common_alloc_aquifer_cell( ecl_subsidence->grid_cache , init_file ); ecl_subsidence->surveys = hash_alloc(); return ecl_subsidence; }
ecl_grav_type * ecl_grav_alloc( const ecl_grid_type * ecl_grid, const ecl_file_type * init_file) { ecl_grav_type * ecl_grav = util_malloc( sizeof * ecl_grav ); ecl_grav->init_file = init_file; ecl_grav->grid_cache = ecl_grid_cache_alloc( ecl_grid ); ecl_grav->aquifer_cell = ecl_grav_common_alloc_aquifer_cell( ecl_grav->grid_cache , ecl_grav->init_file ); ecl_grav->surveys = hash_alloc(); ecl_grav->std_density = hash_alloc(); return ecl_grav; }