Skip to content

Commit

Permalink
Merge pull request equinor#1280 from agchitu/ertshell-runpath
Browse files Browse the repository at this point in the history
Making sure the ertshell is creating the run path
  • Loading branch information
joakim-hove authored Oct 25, 2016
2 parents 52435d6 + 022d280 commit f4861e3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/python/ert_gui/shell/simulations.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,15 @@ def ensembleExperiment(self, line):
simulation_runner = EnkfSimulationRunner(self.ert())

now = time.time()

print("Ensemble Experiment started at: %s" % datetime.now().isoformat(sep=" "))

iteration_count = 0
active_realization_mask = BoolVector(default_value = True, initial_size = self.ert().getEnsembleSize())
simulation_runner.createRunPath(active_realization_mask, iteration_count)

simulation_runner.runWorkflows(HookRuntime.PRE_SIMULATION)

print("Start simulations!")
num_successful_realizations = simulation_runner.runEnsembleExperiment()

success = self.ert().analysisConfig().haveEnoughRealisations(num_successful_realizations, self.ert().getEnsembleSize())
Expand Down

0 comments on commit f4861e3

Please sign in to comment.