Skip to content
Snippets Groups Projects
Commit f373eed8 authored by Martin Bauer's avatar Martin Bauer
Browse files

Tests for simplifications + postprocessing + small fixes

parent c2b4f229
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ import numpy as np
def vector_field_interpolator(vector_field):
from scipy.interpolate import RegularGridInterpolator
coordinates = [np.arange(s) + 0.5 for s in vector_field.shape[:-1]]
return RegularGridInterpolator(*coordinates, vector_field)
return RegularGridInterpolator(coordinates, values=vector_field)
def scalar_field_interpolator(scalar_field):
......
......@@ -16,8 +16,7 @@ def create_simplification_strategy(lb_method, cse_pdfs=False, cse_global=False,
s = SimplificationStrategy()
expand = partial(apply_to_all_assignments, operation=sp.expand)
expand.__name__ = "expand"
expand = apply_to_all_assignments(sp.expand)
if isinstance(lb_method, MomentBasedLbMethod):
s.add(expand)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment