-
Notifications
You must be signed in to change notification settings - Fork 79
Description
Hello, Everyone,
I am new to dolfinx. When I excuted the diffusion_code.py in chapter2, I found there were some problems about xdmf as follows.
And the Diffusion_Gaussian_function_error.md is also attached.
RuntimeError Traceback (most recent call last)
Cell In [1], line 31
28 boundary_facets = mesh.locate_entities_boundary(
29 domain, fdim, lambda x: np.full(x.shape[1], True, dtype=bool))
30 bc = fem.dirichletbc(PETSc.ScalarType(0), fem.locate_dofs_topological(V, fdim, boundary_facets), V)
---> 31 xdmf = io.XDMFFile(domain.comm, "diffusion.xdmf", "w")
32 xdmf.write_mesh(domain)
34 # Define solution variable, and interpolate initial solution for visualization in Paraview
Could anyone give me some help?
Best regards,
Lei