Skip to content
Snippets Groups Projects
Commit d84b23b7 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Add requirements.txt for CI

parent 4a764771
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,23 @@ def main(write_output=True): ...@@ -34,7 +34,23 @@ def main(write_output=True):
queue = cl.CommandQueue(cl_ctx) queue = cl.CommandQueue(cl_ctx)
from meshmode.mesh.generation import generate_regular_rect_mesh from meshmode.mesh.generation import generate_regular_rect_mesh
mesh = generate_regular_rect_mesh(a=(-0.5, -0.5), b=(0.5, 0.5)) mesh = generate_regular_rect_mesh(a=(-0.5, -0.5), b=(0.5, 0.5),
n=(6, 6), order=4)
def m(x):
result = np.empty_like(x)
result[0] = (
1.5*x[0] + np.cos(x[0])
+ 0.1*np.sin(10*x[1]))
result[1] = (
0.05*np.cos(10*x[0])
+ 1.3*x[1] + np.sin(x[1]))
if len(x) == 3:
result[2] = x[2]
return result
from meshmode.mesh.processing import map_mesh
mesh = map_mesh(mesh, m)
discr = Discretization(cl_ctx, mesh, order=4) discr = Discretization(cl_ctx, mesh, order=4)
...@@ -47,11 +63,12 @@ def main(write_output=True): ...@@ -47,11 +63,12 @@ def main(write_output=True):
vec = op(queue) vec = op(queue)
bvis = shortcuts.make_boundary_visualizer(discr, 4) vis = shortcuts.make_visualizer(discr, 4)
vis.write_vtk_file("geo.vtu", [
])
print(vec[0].shape) bvis = shortcuts.make_boundary_visualizer(discr, 4)
print(discr.zeros(queue).shape) bvis.write_vtk_file("bgeo.vtu", [
bvis.write_vtk_file("geo.vtu", [
("normals", vec) ("normals", vec)
]) ])
......
numpy
git+git://github.com/inducer/islpy
git+git://github.com/pyopencl/pyopencl
git+git://github.com/inducer/loopy
git+https://gitlab.tiker.net/inducer/dagrt.git
git+https://gitlab.tiker.net/inducer/leap.git
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment