executablebooks / jupyter-book

Create beautiful, publication-quality books and documents from computational content.

Home Page:http://jupyterbook.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue on page /chapter3/Cavity2D.html Code not working

marc-git opened this issue · comments

Hi,
this code doesn't run anymore as is. Adding the data type to the domain fixes the first error:
self.domain = create_rectangle(MPI.COMM_WORLD,[np.array([0, 0]), np.array([1, 1])], [N, N], CellType.triangle, np.float64, GhostMode.none)

Then I get:
AttributeError: 'Vector' object has no attribute 'set'

related to
self.zero_p.x.set(0.0)

Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.

If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).

Welcome to the EBP community! 🎉

Hi @marc-git, this is the issue tracker for Jupyter Book. Did you mean to file a report here?

no definitely not!