Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into generic-part-bdry
Browse files Browse the repository at this point in the history
  • Loading branch information
majosm committed Jun 30, 2022
2 parents 07f68fe + 9d019fa commit 163acec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 4 additions & 5 deletions meshmode/discretization/connection/direct.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import numpy.linalg as la
from abc import ABC, abstractmethod

from typing import Sequence, Optional, List, Tuple
from typing import Generic, Sequence, Optional, List, Tuple
from pytools import memoize_method

import loopy as lp
Expand All @@ -33,12 +33,11 @@
DiscretizationElementAxisTag, DiscretizationDOFAxisTag)
from pytools import memoize_in, keyed_memoize_method
from arraycontext import (
ArrayContext, NotAnArrayContainerError,
ArrayContext, ArrayT, ArrayOrContainerT, NotAnArrayContainerError,
serialize_container, deserialize_container, make_loopy_program,
tag_axes
)
from arraycontext.metadata import NameHint
from arraycontext.container import ArrayT, ArrayOrContainerT

from meshmode.discretization import Discretization, ElementGroupBase
from meshmode.dof_array import DOFArray
Expand All @@ -54,7 +53,7 @@ def _reshape_and_preserve_tags(
# {{{ interpolation batch

@dataclass
class InterpolationBatch:
class InterpolationBatch(Generic[ArrayT]):
"""One interpolation batch captures how a batch of elements *within* an
element group should be an interpolated. Note that while it's possible that
an interpolation batch takes care of interpolating an entire element group
Expand Down Expand Up @@ -178,7 +177,7 @@ def _global_from_element_indices(
# {{{ _FromGroupPickData

@dataclass
class _FromGroupPickData:
class _FromGroupPickData(Generic[ArrayT]):
"""Represents information needed to pick DOFs from one source element
group to a target element group. Note that the connection between these
groups must be such that the information transfer can occur by indirect
Expand Down
3 changes: 1 addition & 2 deletions meshmode/dof_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@
from meshmode.transform_metadata import (
ConcurrentElementInameTag, ConcurrentDOFInameTag)
from arraycontext import (
ArrayContext, NotAnArrayContainerError,
ArrayContext, ArrayOrContainerT, NotAnArrayContainerError,
make_loopy_program, with_container_arithmetic,
serialize_container, deserialize_container, with_array_context,
rec_map_array_container, rec_multimap_array_container,
mapped_over_array_containers, multimapped_over_array_containers)
from arraycontext.container import ArrayOrContainerT

__doc__ = """
.. autoclass:: DOFArray
Expand Down

0 comments on commit 163acec

Please sign in to comment.