Skip to content

Commit 3879e80

Browse files
committed
Update hello-grudge.py to use the new dcoll constructor
1 parent 2ab0de5 commit 3879e80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/hello-grudge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# BEGINEXAMPLE
1111
import numpy as np
1212
import pyopencl as cl
13-
from grudge.discretization import DiscretizationCollection
13+
from grudge.discretization import make_discretization_collection
1414
import grudge.op as op
1515
from meshmode.mesh.generation import generate_box_mesh
1616
from meshmode.array_context import PyOpenCLArrayContext
@@ -27,7 +27,7 @@
2727
mesh = generate_box_mesh((coords,),
2828
boundary_tag_to_face={"left": ["-x"],
2929
"right": ["+x"]})
30-
dcoll = DiscretizationCollection(actx, mesh, order=1)
30+
dcoll = make_discretization_collection(actx, mesh, order=1)
3131

3232

3333
def initial_condition(x):

0 commit comments

Comments
 (0)