Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Grudge array context #28

Draft
wants to merge 313 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
313 commits
Select commit Hold shift + click to select a range
3126548
Use transformations with 1D and 2D diff kernels
nchristensen Feb 23, 2021
f83a2c7
fix tests
nchristensen Feb 23, 2021
5f6588d
Merge remote-tracking branch 'upstream/main'
nchristensen Mar 12, 2021
7024356
Push current to update multiple dispatch branch
nchristensen Mar 24, 2021
c1d9e23
Move tags to separate file and rename
nchristensen Mar 25, 2021
cff6e74
add initial ParameterValue tag
nchristensen Mar 26, 2021
dd8e365
uncomment ParameterValue tags
nchristensen Mar 26, 2021
2991339
fix variable name
nchristensen Mar 27, 2021
0e46617
Use diff kernel from generator function for now
nchristensen Mar 27, 2021
e2dbb4b
Make all diff kernels use the same generator function
nchristensen Mar 27, 2021
829267b
optimize face_mass kernel, fix strides on prefetches
nchristensen Apr 6, 2021
5219df7
remove ptx file
nchristensen Apr 6, 2021
bae19e9
re-implement accidentally blown away autotuner changes
nchristensen May 1, 2021
9eddf34
re-add elwise_linear autotuner support
nchristensen May 2, 2021
e656a74
move face_mass kernel generator to separate function
nchristensen May 2, 2021
d40e385
add face_mass support in autotuner + update exhaustive search
nchristensen May 3, 2021
0e3010d
move option settings to grudge_array_context
nchristensen May 3, 2021
98d08d0
testing order 4
nchristensen May 4, 2021
c280dee
Merge remote-tracking branch 'upstream/main'
nchristensen May 4, 2021
1754f00
Add basic on-the-fly autotuning support
nchristensen May 18, 2021
cabca66
Merge up to c7e79e5
nchristensen May 24, 2021
89bda2a
fixes to make work with newer loopy
nchristensen May 25, 2021
d381b43
push wave-op with temporary delation
nchristensen May 25, 2021
3ee450c
Add generic test function for mxm kernels
nchristensen May 31, 2021
5a4414b
More autotuning support
nchristensen Jun 1, 2021
0044fa5
Add autotuner support for nodes
nchristensen Jun 11, 2021
3d04db9
set memory layout in flatten
Jun 11, 2021
46ea990
push current in preparation for merge
nchristensen Jun 21, 2021
4a9c19f
Merge changes from main branch
nchristensen Jun 21, 2021
e51bbcf
Auto tuner improvements
nchristensen Jul 16, 2021
bc8b49d
Enable resample by mat autotuning
nchristensen Jul 16, 2021
fb73133
distinguish between time steps
nchristensen Jul 16, 2021
c6c870d
allow elwise_linear kernel to accept nonsquare operations
nchristensen Jul 23, 2021
68a9368
fix output labels
nchristensen Jul 23, 2021
ee33013
Add support for testing runs restarted at arbitrary point
nchristensen Jul 30, 2021
3d27e23
turn on face_mass optimization in random search
nchristensen Aug 5, 2021
e138314
Åremove old comments
nchristensen Aug 5, 2021
6ab57e0
use spaces instead of tabs
nchristensen Aug 5, 2021
1262b68
workaround for Lassen weirdness
nchristensen Aug 5, 2021
4139ddc
change starting parameters
nchristensen Aug 6, 2021
4a3f142
Merge branch 'grudge-array-context-update' of github.com:nchristensen…
nchristensen Aug 6, 2021
1433f11
Allow semi-constant total number of points
nchristensen Aug 12, 2021
6832a1e
merge changes
nchristensen Aug 12, 2021
dde17bf
merge changes
nchristensen Aug 12, 2021
9b836e8
Delete HEAD marker
nchristensen Aug 12, 2021
b9911ce
fix bandwidth calculation
Aug 16, 2021
fc83ff4
variable for search method
nchristensen Aug 17, 2021
307b325
Merge branch 'grudge-array-context-update' of github.com:nchristensen…
nchristensen Aug 17, 2021
f681840
preparing for merge
nchristensen Aug 23, 2021
b67da86
pull down upstream
nchristensen Aug 23, 2021
0b28da7
add comment to run_tests.py
nchristensen Aug 23, 2021
eed156d
remove binary file
nchristensen Aug 23, 2021
c7cf575
push hjson files
nchristensen Aug 24, 2021
1074080
merge upstream
nchristensen Aug 24, 2021
ae0509d
wrap tags in list
nchristensen Aug 25, 2021
e1075ef
Merge commit 'b197e6198689fcac2c0dfd503286e28806e9502f' into grudge-a…
nchristensen Sep 20, 2021
59cb35a
Use default_entrypoint.name
nchristensen Sep 20, 2021
958d5d4
use default_entrypoint
nchristensen Sep 20, 2021
821b14d
Merge commit '9e88251de1c1b8754447c9c8cfdf416f1f6112bc' into grudge-a…
nchristensen Sep 21, 2021
64314c9
add stack implementation
nchristensen Oct 5, 2021
12ed9cc
Add KernelData tags to rest of einsum calls for wave-op-mpi example
nchristensen Oct 11, 2021
a77ec74
Fix area_elements merge conflict
nchristensen Oct 11, 2021
72ae5ca
Put opencl event in dictionary
nchristensen Oct 11, 2021
7946267
Stub for parameter list creation
nchristensen Oct 11, 2021
6af48d4
Create autotune parameter list
nchristensen Oct 11, 2021
55a1688
add spock changes to run_tests.py
nchristensen Oct 12, 2021
aaee886
fix merge conflict
nchristensen Oct 12, 2021
a90a51a
start parallel autotuning with charm++
nchristensen Oct 12, 2021
fd737d4
Merge branch 'grudge-array-context-update' of github.com:nchristensen…
nchristensen Oct 12, 2021
f1b9632
fix indentation
nchristensen Oct 18, 2021
e008ff0
Don't specify output parameter in dt_non_geometric_factors
nchristensen Oct 18, 2021
35de234
Use array instead of map
nchristensen Oct 25, 2021
3241e5b
Functional pool autotuner
nchristensen Oct 26, 2021
9940c58
Working parallel autotuning
nchristensen Oct 26, 2021
592c5ee
push parallel_autotuning_v2.py
nchristensen Oct 27, 2021
dbf1b72
Overwrite Pool __init__ function
nchristensen Oct 28, 2021
7d8ce71
cleanup parallel autotuning code
nchristensen Oct 28, 2021
be8b914
Merge remote-tracking branch 'upstream/main' into grudge-array-contex…
nchristensen Nov 1, 2021
70aee06
Update parallel autotuning code
nchristensen Nov 1, 2021
c894ae0
More parallel autotuning code
nchristensen Nov 1, 2021
7d607c6
Separate parameter space creation and transformation application
nchristensen Nov 1, 2021
127c6cd
More wave-op autotuning support
nchristensen Nov 13, 2021
0aacb25
Merge upstream changes
nchristensen Nov 13, 2021
61ab347
Transformation generator improvements, move KernelDataTag
nchristensen Nov 13, 2021
ca0ef57
Fix file writing, refactor array contexts a bit
nchristensen Nov 16, 2021
caa3a2c
Change wave op defaults
nchristensen Dec 1, 2021
ffe5a19
Merge upstream changes to wave-op-mpi
nchristensen Dec 1, 2021
666e0af
Array context refactoring
nchristensen Dec 2, 2021
d681328
Comment possibly unneeded thaw implementation
nchristensen Dec 4, 2021
5f93db9
Shrink search space a bit
nchristensen Dec 13, 2021
ff25c72
merge upstream changes
nchristensen Jan 10, 2022
378813f
Merge branch 'grudge-array-context-update' of github.com:nchristensen…
nchristensen Jan 10, 2022
67a9118
Fix tag imports
nchristensen Jan 11, 2022
82b7fcb
Get events directly from pyopencl array object
nchristensen Jan 12, 2022
6dc7aef
memoize einsum
nchristensen Jan 18, 2022
c7b7189
Move appication of einsum tags to separate method
nchristensen Jan 18, 2022
e418174
Fix tag imports
nchristensen Jan 25, 2022
2ddd97f
fix import
nchristensen Jan 27, 2022
cb0ff6e
Fix imports
nchristensen Jan 31, 2022
ae754e6
Fix merge conflict
nchristensen Jan 31, 2022
0454155
Handle EinsumArgsTags
nchristensen Jan 31, 2022
256414b
Implement thaw
nchristensen Jan 31, 2022
fe5608b
Merge branch 'grudge-array-context-update' of github.com:nchristensen…
nchristensen Jan 31, 2022
0b6c6c2
Update property name
nchristensen Feb 7, 2022
120f108
update actx_special calling code
nchristensen Feb 8, 2022
0cec662
Hack to fix unflatten for Fortran ordering
nchristensen Feb 9, 2022
4416224
Transform ctof kernels
nchristensen Feb 14, 2022
edb799e
resample by picking transformations
nchristensen Feb 22, 2022
c42c1b8
Remove test_results.txt
nchristensen Feb 22, 2022
4cc83d8
remove ci-support.sh
nchristensen Feb 22, 2022
d18888e
Remove empty file
nchristensen Feb 22, 2022
ee13843
Re-add blank line
nchristensen Feb 22, 2022
17ffcf6
Remove wave-min.py
nchristensen Feb 22, 2022
4301392
Remove unneded file
nchristensen Feb 22, 2022
e12aa6b
remove nvprof file
nchristensen Feb 22, 2022
4e8b2bc
remove unneeded nvprof and hjson files
nchristensen Feb 23, 2022
33ab088
remove more unneeded files
nchristensen Feb 23, 2022
daf4872
update requirements.txt
nchristensen Feb 23, 2022
38f0420
Cleanup compiler.py
nchristensen Feb 23, 2022
577650d
Remove blank lines
nchristensen Feb 23, 2022
b0072cd
flake8 fixes
nchristensen Feb 23, 2022
3cea7e2
Add note
nchristensen Feb 23, 2022
f0b4164
flake8 fixes
nchristensen Feb 24, 2022
f954f07
Merge remote-tracking branch 'upstream/main'
nchristensen Feb 24, 2022
d618e8f
grudge_array_context.py changes
nchristensen Feb 28, 2022
4c4e75e
Remove ptx files
nchristensen Mar 1, 2022
6001534
Merge branch 'upstream/main' into grudge-array-context
nchristensen Mar 1, 2022
f961465
remove transformations directory
nchristensen Mar 1, 2022
d1b9f3c
Single return tin dagrt-fusion.py
nchristensen Mar 1, 2022
63410ba
Allow pickling kernels
nchristensen Mar 1, 2022
14aac4a
merge changes
nchristensen Mar 7, 2022
0ff50a8
Update parallel autotuning code
nchristensen Mar 8, 2022
b0ac435
Update parallel autotuning code
nchristensen Mar 8, 2022
b631d3d
Parallel autotuning updates
nchristensen Mar 14, 2022
6011daf
fix merge conflicts
nchristensen Mar 15, 2022
6dcbd3d
Merge branch 'grudge-array-context' of github.com:nchristensen/grudge…
nchristensen Mar 15, 2022
0832a81
fix setup.py
nchristensen Mar 15, 2022
8b1e596
Inherit from MPIPyOpenCLArrayContext
nchristensen Mar 15, 2022
3558b25
Use strings instead of raw numbers for axis sizes
nchristensen Mar 15, 2022
40bc9ab
Actually remove quad_tag_to_group_factory
inducer Mar 15, 2022
0c44361
Remove get_distributed_boundary_swap_connection, DGDiscretizationWith…
inducer Mar 15, 2022
76725d6
Fix sectioning, remove DColl.order
inducer Mar 15, 2022
f42f141
Rip _get_dist_boundary_connections_single_vol out of DColl.__init__
inducer Mar 15, 2022
ef39455
Drop removed stuff from pylintrc
inducer Mar 17, 2022
85d9812
Support multiple volumes in a discretization collection
inducer Mar 17, 2022
dc600ec
Parallel autotuning changes
nchristensen Mar 23, 2022
3aa8f6e
Merge branch 'main' into multi-volume
majosm Mar 25, 2022
b3de25e
use partition-ID-enabled meshmode
majosm Mar 18, 2022
ea570ee
temporarily change meshmode branch
majosm Mar 21, 2022
7cc98f6
fix docs
majosm Mar 22, 2022
3aa2dcb
parallel autotuning fixes
nchristensen Mar 29, 2022
577b9ec
parallel autotuning fixes
nchristensen Mar 29, 2022
ccd01a1
Comment print statements, support for new resample kernel
nchristensen Apr 5, 2022
9a825a9
Transformations for small matrices
nchristensen Apr 6, 2022
053e484
Fix transformations for small einsum kernels
nchristensen Apr 7, 2022
f37e97d
Workaround for CUDA timing bug
nchristensen Apr 7, 2022
08740d4
Merge branch 'grudge-array-context' of github.com:nchristensen/grudge…
nchristensen Apr 7, 2022
4358331
Change unique program id method
nchristensen Apr 7, 2022
4d31441
Guard against zero length args in resampling kernel
nchristensen Apr 7, 2022
43bb708
KernelSavingAutotuningArrayContext
nchristensen Apr 7, 2022
18b11ff
resample by picking transformation fixes
nchristensen Apr 7, 2022
6d88ed5
Fix merge conflict
nchristensen Apr 7, 2022
e8ffd47
better bandwidth count
nchristensen Apr 9, 2022
a44b2ff
Shared memory fix for autotuner
nchristensen Apr 10, 2022
b7a3fb8
limit use of local memory
nchristensen Apr 10, 2022
ff6c73e
Merge remote-tracking branch 'origin/main' into multi-volume
majosm Apr 12, 2022
7ea9d73
Merge remote-tracking branch 'origin/multi-volume' into multi-volume
majosm Apr 12, 2022
ee41a3f
exit if transformation file not found
nchristensen Apr 12, 2022
e66d68f
Restructure array contexts
nchristensen Apr 13, 2022
14f2762
Merge branch 'grudge-array-context' of github.com:nchristensen/grudge…
nchristensen Apr 13, 2022
2a04c59
point requirements.txt to loopy branch
nchristensen Apr 24, 2022
49f8589
merge upstream
nchristensen Apr 24, 2022
d0b93cd
Merge branch 'main' into grudge-array-context
nchristensen Apr 24, 2022
31b59bf
Move bs4 import
nchristensen Apr 24, 2022
88bcd26
Fix file creation
nchristensen Apr 25, 2022
c72b81a
Use absolute path to file creation
nchristensen Apr 25, 2022
fdc4f57
fix file creation
nchristensen Apr 25, 2022
5534936
Set to fortran layout before pickling
nchristensen Apr 25, 2022
6027392
Memory layout fixes
nchristensen Apr 26, 2022
e8fd9b2
Fix merge conflicts
nchristensen May 2, 2022
4737b1a
Merge branch 'grudge-array-context' of github.com:nchristensen/grudge…
nchristensen May 2, 2022
5ee00b4
Merge remote-tracking branch 'origin/main' into multi-volume
majosm May 2, 2022
e705304
Merge remote-tracking branch 'origin/multi-volume' into multi-volume
majosm May 2, 2022
7d2c974
Merge remote-tracking branch 'origin/main' into multi-volume
majosm May 23, 2022
c1b68c7
Merge remote-tracking branch 'origin/multi-volume' into multi-volume
majosm May 23, 2022
ea9d929
Merge remote-tracking branch 'upstream/main' into grudge-array-context
nchristensen Jun 1, 2022
2264117
Update autotuning script
nchristensen Jun 8, 2022
53e0b6b
Parallel autotuning fixes, support for element-contiguous data layout
nchristensen Jun 9, 2022
9762dbc
Test different local memory data layouts
nchristensen Jun 13, 2022
993ca1f
fix stride calculation
nchristensen Jun 14, 2022
98d4119
Allow testing different local memory data layouts
nchristensen Jun 14, 2022
656fc4b
Add alternative pool implementations
nchristensen Jun 15, 2022
f8efd52
Merge remote-tracking branch 'origin/main' into multi-volume
majosm Jun 21, 2022
d072923
Merge remote-tracking branch 'origin/multi-volume' into multi-volume
majosm Jun 21, 2022
b1372c3
Create queue outside of task
nchristensen Jun 24, 2022
69ded2e
Update charm4py script
nchristensen Jun 26, 2022
318e0c8
update charm4py script
nchristensen Jun 26, 2022
5620c0b
Merge remote-tracking branch 'origin/main' into multi-volume
majosm Jun 30, 2022
fe54464
Merge remote-tracking branch 'origin/multi-volume' into multi-volume
majosm Jun 30, 2022
09bac09
promote to part ID instead of using part ID helper
majosm Jun 29, 2022
c46a6b5
clarify part vs. partition terminology
majosm Jun 29, 2022
06ff8f6
account for explicit part_id attribute in InterPartAdjacencyGroup
majosm Jun 29, 2022
cac1b24
Merge remote-tracking branch 'origin/main' into multi-volume
majosm Jul 1, 2022
d7cd9db
Merge remote-tracking branch 'origin/multi-volume' into multi-volume
majosm Jul 1, 2022
fc4c3cb
Merge remote-tracking branch 'origin/main' into multi-volume
majosm Jul 3, 2022
4743538
Merge remote-tracking branch 'origin/multi-volume' into multi-volume
majosm Jul 3, 2022
49d627c
use dataclass instead of tuple for PartID
majosm Jul 4, 2022
b2219d8
move PartID conversion setup stuff into _normalize_mesh_part_ids
majosm Jul 4, 2022
a05c626
reset requirements.txt
majosm Jul 4, 2022
fb8a34b
accept general integral types as MPI ranks
majosm Jul 4, 2022
6397cdf
redesign inter-volume trace pair functions
majosm Mar 23, 2022
91b60e7
reapply zero addition to local_bdry_data
majosm Mar 25, 2022
65649df
handle all-Number cases
majosm Mar 25, 2022
429ce7b
cosmetic change
majosm Apr 1, 2022
917c212
fix bug
majosm Apr 1, 2022
337b994
tweak as_dofdesc normalization
majosm Apr 1, 2022
3c4e912
fix bugs
majosm Apr 1, 2022
ac98e49
don't try to create trace pair if there's no adjacency
majosm Apr 18, 2022
04f7330
forget about heterogeneous inter-volume trace pairs for now
majosm May 2, 2022
2d369e4
add FIXME
majosm May 4, 2022
2b13e5a
fix bug
majosm May 4, 2022
fd644cf
ignore flake8-bugbear error
majosm Jul 3, 2022
27b43f5
add temporary workaround for make_discretization_collection + EagerDG…
majosm Mar 25, 2022
e936a20
add volume_dd to make_visualizer
majosm Apr 1, 2022
06fcacc
implement multi-volume support in op
majosm Apr 1, 2022
f1f4cfc
fix doc in characteristic_lengthscales
majosm Apr 8, 2022
2a5fe53
fix memoization in a couple of spots
majosm Apr 8, 2022
e004677
get contextual volume tags for BoundayDomainTags as well
majosm Jul 3, 2022
bcfde03
tag some axes
majosm May 9, 2022
dd2ca36
Account for fp_bytes
nchristensen Jul 8, 2022
ffab94c
Fix merge conflict
nchristensen Jul 8, 2022
3894883
fix ArrayOrContainerT import
nchristensen Jul 11, 2022
08133d1
fix merge conflict
nchristensen Jul 11, 2022
e2980fe
Merge upstream
nchristensen Jul 11, 2022
e074d29
Fix merge conflicts
nchristensen Jul 12, 2022
9d035d7
Move queue creation back outside of task again
nchristensen Jul 13, 2022
71680b6
fix variable name
nchristensen Jul 13, 2022
1cb73b7
single indirection autotuning
nchristensen Jul 14, 2022
0248b32
Merge branch 'grudge-array-context' of github.com:nchristensen/grudge…
nchristensen Jul 14, 2022
1bb842c
add axis tags back
nchristensen Jul 18, 2022
c0e20dc
Fix some dimensions
nchristensen Jul 18, 2022
8f39651
Follow same pattern as upstream
nchristensen Jul 18, 2022
7b88934
Guard against DOF arrays with zero elements
nchristensen Jul 18, 2022
0a49f4d
guard against 0 elements
nchristensen Jul 18, 2022
9b7bf17
Guard against 0 element in 2to2 einsum
nchristensen Jul 18, 2022
e31106d
Guard against 0 elements
nchristensen Jul 18, 2022
d132fe3
Guard against 0 elements
nchristensen Jul 18, 2022
e007b5f
single indirection transformation generator
nchristensen Jul 19, 2022
d7a3829
Merge branch 'grudge-array-context' of github.com:nchristensen/grudge…
nchristensen Jul 19, 2022
1504227
Allow randomized index entries
nchristensen Jul 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .pylintrc-local.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
- arg: ignore
val:
- mappers
- gas_dynamics
- burgers.py
- diffusion.py
- dt_finding.py
- nd_calculus.py
- pml.py
- poisson.py
- second_order.py
- arg: ignored-modules
val:
- sympy
1 change: 1 addition & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def get_version():
"https://documen.tician.de/arraycontext/": None,
"https://documen.tician.de/meshmode/": None,
"https://documen.tician.de/loopy/": None,
"https://mpi4py.readthedocs.io/en/stable": None,
}

# index-page demo uses pyopencl via plot_directive
Expand Down
2 changes: 2 additions & 0 deletions examples/advection/var-velocity.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

from grudge.array_context import PyOpenCLArrayContext

from grudge.grudge_array_context import GrudgeArrayContext
from meshmode.dof_array import flatten
from meshmode.mesh import BTAG_ALL

Expand Down Expand Up @@ -100,6 +101,7 @@ def main(ctx_factory, dim=2, order=4, use_quad=False, visualize=False,
flux_type="upwind"):
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
#actx = GrudgeArrayContext(queue)
actx = PyOpenCLArrayContext(
queue,
allocator=cl_tools.MemoryPool(cl_tools.ImmediateAllocator(queue)),
Expand Down
2 changes: 1 addition & 1 deletion examples/advection/weak.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __call__(self, evt, basename, overwrite=True):
def main(ctx_factory, dim=2, order=4, visualize=False):
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)
actx = PyOpenCLArrayContext(
actx = GrudgeArrayContext(
queue,
allocator=cl_tools.MemoryPool(cl_tools.ImmediateAllocator(queue)),
force_device_scalars=True,
Expand Down
2 changes: 2 additions & 0 deletions examples/geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@

from grudge.array_context import PyOpenCLArrayContext

from grudge.grudge_array_context import GrudgeArrayContext
from grudge import DiscretizationCollection, shortcuts


def main(write_output=True):
cl_ctx = cl.create_some_context()
queue = cl.CommandQueue(cl_ctx)
#actx = GrudgeArrayContext(queue)
actx = PyOpenCLArrayContext(
queue,
allocator=cl_tools.MemoryPool(cl_tools.ImmediateAllocator(queue)),
Expand Down
6 changes: 3 additions & 3 deletions examples/hello-grudge.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import grudge.op as op
from meshmode.mesh.generation import generate_box_mesh
from meshmode.array_context import PyOpenCLArrayContext
from grudge.dof_desc import DTAG_BOUNDARY, FACE_RESTR_INTERIOR
from grudge.dof_desc import BoundaryDomainTag, FACE_RESTR_INTERIOR


ctx = cl.create_some_context()
Expand Down Expand Up @@ -51,8 +51,8 @@ def flux(dcoll, u_tpair):


vol_discr = dcoll.discr_from_dd("vol")
left_bndry = DTAG_BOUNDARY("left")
right_bndry = DTAG_BOUNDARY("right")
left_bndry = BoundaryDomainTag("left")
right_bndry = BoundaryDomainTag("right")

x_vol = actx.thaw(dcoll.nodes())
x_bndry = actx.thaw(dcoll.discr_from_dd(left_bndry).nodes())
Expand Down
1 change: 1 addition & 0 deletions examples/maxwell/cavities.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
def main(ctx_factory, dim=3, order=4, visualize=False):
cl_ctx = ctx_factory()
queue = cl.CommandQueue(cl_ctx)

actx = PyOpenCLArrayContext(
queue,
allocator=cl_tools.MemoryPool(cl_tools.ImmediateAllocator(queue)),
Expand Down
Loading