Skip to content

Commit

Permalink
ex18 as exx27, 30 #534
Browse files Browse the repository at this point in the history
  • Loading branch information
gdmcbain committed Jan 7, 2021
1 parent f976251 commit 0afa4ff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/examples/ex18.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,9 @@ def body_force(v, w):

velocity, pressure = np.split(uvp, [A.shape[0]])

basis['psi'] = InteriorBasis(mesh, ElementTriP2())
basis['psi'] = InteriorBasis(mesh, ElementTriP2(), quadrature=basis['u'].quadrature)
A = asm(laplace, basis['psi'])
vorticity = asm(rot, basis['psi'],
w=[basis['psi'].interpolate(velocity[i::2])
for i in range(2)])
vorticity = asm(rot, basis['psi'], w=basis['u'].interpolate(velocity))
psi = solve(*condense(A, vorticity, D=basis['psi'].find_dofs()))


Expand Down

0 comments on commit 0afa4ff

Please sign in to comment.