Skip to content

Commit

Permalink
Update example_mpi_lake_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
quaquel committed Nov 27, 2023
1 parent be58e00 commit d088b48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ema_workbench/examples/example_mpi_lake_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def lake_problem(

if __name__ == "__main__":
# run with mpiexec -n 4 python -m mpi4py.futures example_mpi_lake_model.py
starttime = time.time()

ema_logging.log_to_stderr(ema_logging.INFO, pass_root_logger_level=False)

Expand Down Expand Up @@ -123,3 +124,5 @@ def lake_problem(

with MPIEvaluator(lake_model) as evaluator:
res = evaluator.perform_experiments(n_scenarios, n_policies)

print(time.time() - starttime)

0 comments on commit d088b48

Please sign in to comment.