Esempio n. 1
0
bool gen_data_initialize(gen_data_type * gen_data , int iens , const char * init_file , rng_type * rng) {
  if (init_file != NULL) {
    if (!gen_data_fload_with_report_step(gen_data , init_file , 0))
      util_abort("%s: could not find file:%s \n",__func__ , init_file);
    return true;
  } else
    return false; /* No init performed ... */
}
Esempio n. 2
0
bool gen_data_initialize(gen_data_type * gen_data , int iens , const char * init_file , rng_type * rng) {
  bool ret = false; 
  if (init_file) {
    if (!gen_data_fload_with_report_step(gen_data , init_file , 0))
      util_abort("%s: could not find file:%s \n",__func__ , init_file);
    ret = true; 
  }
  return ret; 
}
Esempio n. 3
0
bool gen_data_initialize(gen_data_type * gen_data , int iens , const char * init_file , rng_type * rng) {
  bool ret = false;
  if (init_file) {
    forward_load_context_type * load_context = forward_load_context_alloc( NULL , false , NULL , NULL , NULL );

    forward_load_context_select_step(load_context, 0);
    if (!gen_data_fload_with_report_step(gen_data , init_file , load_context))
      util_abort("%s: could not find file:%s \n",__func__ , init_file);
    ret = true;

    forward_load_context_free( load_context );
  }
  return ret;
}
Esempio n. 4
0
bool gen_data_forward_load(gen_data_type * gen_data , const char * ecl_file , const forward_load_context_type * load_context) {
  return gen_data_fload_with_report_step( gen_data , ecl_file , load_context);
}
Esempio n. 5
0
bool gen_data_forward_load(gen_data_type * gen_data , const char * ecl_file , const ecl_sum_type * ecl_sum, const ecl_file_type * restart_file , int report_step) {
  return gen_data_fload_with_report_step( gen_data , ecl_file , report_step );
}
Esempio n. 6
0
bool gen_data_fload( gen_data_type * gen_data , const char * filename) {
  return gen_data_fload_with_report_step( gen_data , filename , 0);
}