Skip to content
Snippets Groups Projects
Commit be2f24d2 authored by David Hendriks's avatar David Hendriks
Browse files

updated stopping criterion MC

parent 42b448fc
No related branches found
No related tags found
No related merge requests found
......@@ -556,7 +556,15 @@ class evolution_functions:
# this can be set in the _monte_carlo_sampling_check_mass_threshold function or via _monte_carlo_sampling_check_custom_threshold
if self.grid_options["_monte_carlo_threshold_reached"]:
# TODO: Write a correct signalling of stopping the queue while
print("_monte_carlo_threshold_reached True. WHAT TO DO NOW??")
self.verbose_print(
"Monte-Carlo threshold reached. Signaling to stop processing the queue{}",
self.grid_options["verbosity"],
2,
)
# Queue is done:
self.grid_options["_queue_done"] = True
########
# Put system in the job queue
......@@ -573,6 +581,11 @@ class evolution_functions:
3,
)
########
# Handle stopping
if self.grid_options["_queue_done"] == True:
break
# Signal queue is done
self.grid_options["_queue_done"] = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment