Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run demo_periodic3d_topological.py out-of-the-box #90

Open
adityasatyadeep opened this issue Nov 6, 2023 · 2 comments
Open

Comments

@adityasatyadeep
Copy link

Hi, I was trying to use dolfinx to implement periodic boundary conditions and came across the dolfinx_mpc package.
However, when I try to run the demo_periodic3d_topological.py example, I run into numerous errors, like default_scalar_type cannot be imported from dolfinx and the default parameters passed into create_periodic_constraint_topological() don't seem to be correct. I suspect the demo is out-of-date; is there a more updated demo that I can take a look at?
For reference, I'm running Python 3.9.9, dolfinx 0.6.0, and dolfinx_mpc 0.6.1.

@jorgensd
Copy link
Owner

jorgensd commented Nov 6, 2023

How did you download the demo?
There are branches for the demos of each release:
v0.7.0: https://github.com/jorgensd/dolfinx_mpc/blob/v0.7.0.post1/python/demos/demo_periodic3d_topological.py
v0.6.0: https://github.com/jorgensd/dolfinx_mpc/blob/v0.6.1.post1/python/demos/demo_periodic3d_topological.py

To me it seems like you are trying to use the main branch, which is aiming to be up to date with DOLFINx main.

@jorgensd
Copy link
Owner

@astrotheory6 did you resolve your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants