Skip to content

Commit

Permalink
load VTU saved from MSH 4.1 rather than directly
Browse files Browse the repository at this point in the history
  • Loading branch information
gdmcbain committed Aug 23, 2021
1 parent dac551a commit f799d23
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 9,242 deletions.
3 changes: 1 addition & 2 deletions docs/examples/ex24.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
from skfem import *
from skfem.models.poisson import vector_laplace, laplace
from skfem.models.general import divergence, rot
from skfem.io.json import from_file

mesh = from_file(Path(__file__).parent / 'meshes' / 'backward-facing_step.json')
mesh = Mesh.load(Path(__file__).parent / 'meshes' / 'backward-facing_step.vtu')

element = {'u': ElementVectorH1(ElementTriP2()),
'p': ElementTriP1()}
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/ex27.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def __init__(self,
length: float = 35.):

self.mesh = Mesh.load(
Path(__file__).parent / 'meshes' / 'backward-facing_step.msh'
Path(__file__).parent / 'meshes' / 'backward-facing_step.vtu'
)
self.basis = {variable: Basis(self.mesh, e, intorder=3)
for variable, e in self.element.items()}
Expand Down
Loading

0 comments on commit f799d23

Please sign in to comment.