Пример #1
0
 def set_history_source(ert, value):
     history_source_enum = history_source_type.resolveName(str(value))
     sched_file = ert.main.ecl_config.get_sched_file
     refcase = ert.main.ecl_config.get_refcase
     if history_source_enum.value() == 0:
         history = HistoryType.alloc_from_sched_file(sched_file)
     if history_source_enum.value() == 1:
         history = HistoryType.alloc_from_refcase(refcase, True)
     if history_source_enum.value() == 2: 
         history = HistoryType.alloc_from_refcase(refcase, False)
     ert.main.model_config.set_history_source(history, sched_file, refcase)
Пример #2
0
 def set_history_source(ert, value):
     history_source = history_source_type.resolveName(str(value))
     ert.enkf.model_config_get_history_source(ert.model_config,
                                              history_source.value())
Пример #3
0
 def set_history_source(ert, value):
     history_source = history_source_type.resolveName(str(value))
     ert.enkf.model_config_get_history_source(ert.model_config, history_source.value())