Skip to content

Commit

Permalink
modernize ex06
Browse files Browse the repository at this point in the history
  • Loading branch information
kinnala committed Jun 15, 2024
1 parent 70dc10d commit bd16209
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/examples/ex06.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,15 @@

e1 = ElementQuad1()
e = ElementQuad2()
mapping = MappingIsoparametric(m, e1)
ib = Basis(m, e, mapping, 4)
basis = Basis(m, e, intorder=4)

K = asm(laplace, ib)
K = laplace.assemble(basis)

f = asm(unit_load, ib)
f = unit_load.assemble(basis)

x = solve(*condense(K, f, D=ib.get_dofs()))
x = solve(*condense(K, f, D=basis.get_dofs()))

M, X = ib.refinterp(x, 3)
M, X = basis.refinterp(x, 3)

if __name__ == "__main__":
from os.path import splitext
Expand Down

0 comments on commit bd16209

Please sign in to comment.