Skip to content
Snippets Groups Projects
Commit c7d41845 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Also add TimeloopRuns

parent c3720d73
No related branches found
No related tags found
1 merge request!98WIP: Graph datahandling
...@@ -110,6 +110,7 @@ class GraphDataHandling(pystencils.datahandling.SerialDataHandling): ...@@ -110,6 +110,7 @@ class GraphDataHandling(pystencils.datahandling.SerialDataHandling):
argument_list = [argument_list] argument_list = [argument_list]
def run(self, time_steps=1): def run(self, time_steps=1):
self.parent.call_queue.append(TimeloopRun(self, time_steps))
super().run(time_steps) super().run(time_steps)
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
......
...@@ -71,3 +71,6 @@ def test_graph_datahandling(): ...@@ -71,3 +71,6 @@ def test_graph_datahandling():
opt_params = {'target': 'gpu', 'gpu_indexing_params': {'block_size': (8, 4, 2)}} opt_params = {'target': 'gpu', 'gpu_indexing_params': {'block_size': (8, 4, 2)}}
lbm_step: LatticeBoltzmannStep = ldc_setup(domain_size=(10, 15), optimization=opt_params) lbm_step: LatticeBoltzmannStep = ldc_setup(domain_size=(10, 15), optimization=opt_params)
print(lbm_step._data_handling) print(lbm_step._data_handling)
# Hier stehen alle aufgerufenen Aktionen drinnen. Die Klassen kommen aus pystencils.datahandling.graph_datahandling
print(lbm_step._data_handling.call_queue)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment