executablebooks / jupyter-book

Create beautiful, publication-quality books and documents from computational content.
http://jupyterbook.org
BSD 3-Clause "New" or "Revised" License
3.76k stars 652 forks source link

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

Closed marc-git closed 4 months ago

marc-git commented 4 months ago

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)

welcome[bot] commented 4 months ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
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! :tada:

agoose77 commented 4 months ago

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

marc-git commented 4 months ago

no definitely not!