Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Mar 25, 2024
1 parent 3a1898b commit 33787ba
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"outputs": [],
"source": [
"import dolfinx\n",
"from dolfinx.fem import FunctionSpace, Function\n",
"from dolfinx.fem import functionspace, function\n",
"from dolfinx.mesh import create_unit_cube\n",
"import dolfinx.geometry\n",
"import ufl\n",
Expand Down Expand Up @@ -244,7 +244,7 @@
"source": [
"from bempp.api.external import fenicsx\n",
"\n",
"fenics_space = FunctionSpace(mesh, (\"CG\", 1))\n",
"fenics_space = functionspace(mesh, (\"CG\", 1))\n",
"trace_space, trace_matrix = \\\n",
" fenicsx.fenics_to_bempp_trace_data(fenics_space)\n",
"bempp_space = bempp.api.function_space(trace_space.grid, \"DP\", 0)\n",
Expand Down Expand Up @@ -1791,7 +1791,7 @@
"outputs": [],
"source": [
"# Store the real part of the FEM solution\n",
"u = Function(fenics_space)\n",
"u = function(fenics_space)\n",
"u.vector[:] = np.ascontiguousarray(np.real(soln_fem))\n",
"\n",
"# Solution function with dirichlet data on the boundary\n",
Expand Down

0 comments on commit 33787ba

Please sign in to comment.