Skip to content

Commit

Permalink
remove unused(?) TestSolution
Browse files Browse the repository at this point in the history
  • Loading branch information
majosm committed Aug 13, 2024
1 parent f210bc9 commit 40bc1d3
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions test/test_navierstokes.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,39 +521,6 @@ def get_boundaries(self):
return super().get_boundaries()


class TestSolution(FluidManufacturedSolution):
"""Trivial manufactured solution."""

def __init__(self, dim=2, density=1, pressure=1, velocity=None):
"""Init the man soln."""
super().__init__(dim)
if velocity is None:
velocity = make_obj_array([0 for _ in range(dim)])
assert len(velocity) == dim
self._vel = velocity
self._rho = density
self._pressure = pressure

def get_mesh(self, n):
"""Get the mesh."""
return super().get_mesh(n)

def get_boundaries(self, dcoll, actx, t):
"""Get the boundaries."""
return super().get_boundaries(dcoll, actx, t)

def get_solution(self, x, t):
"""Return sym soln."""
density = 1*x[0]
energy = 2*x[1]**2
mom = make_obj_array([i*x[0]*x[1] for i in range(self._dim)])
pressure = x[0]*x[0]*x[0]
temperature = x[1]*x[1]*x[1]

return make_conserved(dim=self._dim, mass=density, momentum=mom,
energy=energy), pressure, temperature


# @pytest.mark.parametrize("nspecies", [0, 10])
@pytest.mark.parametrize("order", [1, 2, 3])
@pytest.mark.parametrize(("dim", "manufactured_soln", "mu"),
Expand Down

0 comments on commit 40bc1d3

Please sign in to comment.