Skip to content
Snippets Groups Projects
Commit 0913151e authored by mads's avatar mads
Browse files

thread -> non_blocking_simulation_thread

parent 22a5b668
No related branches found
No related tags found
2 merge requests!6Clustertools,!5Clustertools
Pipeline #
......@@ -8,7 +8,7 @@ class ClusterSimulation(Simulation):
Simulation.__init__(self, modelpath, htcfilename, hawc2exe=hawc2exe)
self.simulation_id = [f for f in os.listdir('.') if f.endswith('.in')][0][:-3]
self.resource.simulationThread.low_priority = False
self.thread = Thread(target=self.simulate)
self.non_blocking_simulation_thread = Thread(target=self.simulate)
self.start(1)
self.wait()
print (self.resource.simulationThread.res[1]) # print hawc2 output to stdout
......
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