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

Rename: WaldUndWiesenSimulation -> Simulation

parent d3674fdd
No related branches found
No related tags found
No related merge requests found
Pipeline #21590 canceled
...@@ -22,7 +22,7 @@ from pystencils_autodiff.walberla import ( ...@@ -22,7 +22,7 @@ from pystencils_autodiff.walberla import (
SweepCreation, SweepOverAllBlocks, UniformBlockforestFromConfig, WalberlaMain, WalberlaModule) SweepCreation, SweepOverAllBlocks, UniformBlockforestFromConfig, WalberlaMain, WalberlaModule)
class WaldUndWiesenSimulation(): class Simulation():
def _get_sweep_class_name(prefix='Kernel'): def _get_sweep_class_name(prefix='Kernel'):
ctr = 0 ctr = 0
...@@ -46,7 +46,7 @@ class WaldUndWiesenSimulation(): ...@@ -46,7 +46,7 @@ class WaldUndWiesenSimulation():
self._boundary_handling = boundary_handling self._boundary_handling = boundary_handling
self._lb_model_name = 'GeneratedLatticeModel' self._lb_model_name = 'GeneratedLatticeModel'
self._flag_field_dtype = 'uint32_t' self._flag_field_dtype = 'uint32_t'
self._kernel_class_generator = WaldUndWiesenSimulation._get_sweep_class_name() self._kernel_class_generator = Simulation._get_sweep_class_name()
self._with_gui = False self._with_gui = False
self._with_gui_default = False self._with_gui_default = False
self._boundary_kernels = {} self._boundary_kernels = {}
......
...@@ -21,7 +21,7 @@ from pystencils_autodiff.graph_datahandling import GraphDataHandling ...@@ -21,7 +21,7 @@ from pystencils_autodiff.graph_datahandling import GraphDataHandling
from pystencils_autodiff.walberla import ( from pystencils_autodiff.walberla import (
DefinitionsHeader, FieldAllocation, FlagFieldAllocation, GetParameter, DefinitionsHeader, FieldAllocation, FlagFieldAllocation, GetParameter,
ResolveUndefinedSymbols, UniformBlockforestFromConfig, WalberlaMain, WalberlaModule) ResolveUndefinedSymbols, UniformBlockforestFromConfig, WalberlaMain, WalberlaModule)
from pystencils_autodiff.wald_und_wiesen_simulation import WaldUndWiesenSimulation from pystencils_autodiff.wald_und_wiesen_simulation import Simulation
from pystencils_walberla.cmake_integration import ManualCodeGenerationContext from pystencils_walberla.cmake_integration import ManualCodeGenerationContext
...@@ -66,7 +66,7 @@ def test_wald_wiesen_simulation(): ...@@ -66,7 +66,7 @@ def test_wald_wiesen_simulation():
dh.add_arrays('x, y') dh.add_arrays('x, y')
dh.add_arrays('w, z', gpu=True) dh.add_arrays('w, z', gpu=True)
sim = WaldUndWiesenSimulation(dh, ctx) sim = Simulation(dh, ctx)
print(sim._create_module()) print(sim._create_module())
...@@ -82,7 +82,7 @@ def test_wald_wiesen_lbm(): ...@@ -82,7 +82,7 @@ def test_wald_wiesen_lbm():
del lbm_step.data_handling.gpu_arrays.ldc_pdf_tmp del lbm_step.data_handling.gpu_arrays.ldc_pdf_tmp
sim = WaldUndWiesenSimulation(lbm_step.data_handling, sim = Simulation(lbm_step.data_handling,
ctx, ctx,
lbm_step.boundary_handling, lbm_step.boundary_handling,
create_lb_collision_rule(lbm_step.method, optimization=opt_params)) create_lb_collision_rule(lbm_step.method, optimization=opt_params))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment