Skip to content

Commit

Permalink
Scooch closer to main
Browse files Browse the repository at this point in the history
  • Loading branch information
MTCam committed Jul 27, 2024
1 parent 3406a9d commit 24e17ae
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions grudge/models/wave.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

import grudge.geometry as geo
import grudge.op as op
from grudge.dof_desc import DISCR_TAG_BASE, as_dofdesc, DD_VOLUME_ALL
from grudge.dof_desc import DD_VOLUME_ALL, DISCR_TAG_BASE, as_dofdesc
from grudge.models import HyperbolicOperator

# {{{ constant-velocity

# {{{ constant-velocity

class WeakWaveOperator(HyperbolicOperator):
r"""This operator discretizes the wave equation
Expand Down
1 change: 1 addition & 0 deletions test/mesh_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def get_mesh(self, resolution, mesh_order=4):


class BoxMeshBuilder(MeshBuilder):
resolutions: ClassVar[Sequence[Hashable]] = [4, 8, 16]

def __init__(self, ambient_dim=2, group_cls=None):
self.ambient_dim = ambient_dim
Expand Down
21 changes: 13 additions & 8 deletions test/test_dt_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,24 @@
PytestPyOpenCLArrayContextFactory,
PytestPytatoPyOpenCLArrayContextFactory,
)
from grudge.discretization import make_discretization_collection
import grudge.op as op

import mesh_data
import pytest

from meshmode import _acf # noqa: F401

pytest_generate_tests = pytest_generate_tests_for_array_contexts(
[PytestPyOpenCLArrayContextFactory,
PytestPytatoPyOpenCLArrayContextFactory])

import logging

import mesh_data
import pytest

import grudge.op as op
from grudge.discretization import make_discretization_collection


logger = logging.getLogger(__name__)
from meshmode import _acf # noqa: F401


@pytest.mark.parametrize("name", ["interval", "box2d", "box3d"])
@pytest.mark.parametrize("tpe", [False, True])
Expand Down Expand Up @@ -71,8 +77,7 @@ def test_geometric_factors_regular_refinement(actx_factory, name, tpe):

order = 4
min_factors = []
resolutions = [2, 4, 8]
for resolution in resolutions:
for resolution in builder.resolutions:
mesh = builder.get_mesh(resolution, order)
dcoll = make_discretization_collection(actx, mesh, order=order)
min_factors.append(
Expand Down

0 comments on commit 24e17ae

Please sign in to comment.