Skip to content

Instantly share code, notes, and snippets.

@wence-
Created March 24, 2016 11:09
Show Gist options
  • Save wence-/8b296c2a86360b3bc4c0 to your computer and use it in GitHub Desktop.
Save wence-/8b296c2a86360b3bc4c0 to your computer and use it in GitHub Desktop.
from firedrake import *
mesh = UnitSquareMesh(10, 10)
V = FunctionSpace(mesh, 'CG', 1)
u = TrialFunction(V)
v = TestFunction(V)
f = Function(V)
solve(u*v*dx == v*dx, f, options_prefix="foo_")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment