Skip to content

Enable run without mpi4py - #45

Merged
max-models merged 13 commits into
devel-tinyfrom
no-mpi
Oct 20, 2025
Merged

Enable run without mpi4py#45
max-models merged 13 commits into
devel-tinyfrom
no-mpi

Conversation

@spossann

Copy link
Copy Markdown
Member
  • moved mpi.py from Struphy to ddm/mpi.py

@spossann
spossann requested a review from max-models October 16, 2025 14:27
@max-models

Copy link
Copy Markdown
Member

Should we move mpi4py to an optional dependency so we can run the tests without installing MPI?

@spossann

Copy link
Copy Markdown
Member Author

Should we move mpi4py to an optional dependency so we can run the tests without installing MPI?

Done in 04e3980

Comment thread .github/workflows/testing.yml Outdated
Comment thread psydac/ddm/tests/test_cart_1d.py Outdated
Comment thread psydac/ddm/tests/test_cart_3d.py Outdated
if TYPE_CHECKING:
from mpi4py import MPI
else:
from psydac.ddm.mpi import mpi as MPI

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread psydac/ddm/tests/test_multicart_2d.py Outdated
Comment thread psydac/ddm/blocking_data_exchanger.py Outdated
Comment thread psydac/ddm/tests/test_cart_2d.py Outdated
Comment thread psydac/ddm/cart.py Outdated
Comment thread psydac/ddm/interface_data_exchanger.py Outdated
Comment thread psydac/ddm/mpi.py Outdated
Comment thread psydac/ddm/mpi.py Outdated
@max-models

Copy link
Copy Markdown
Member

Nice job! It's pretty cool that so few changes in the code were needed! Maybe this could be a suggestion for the upstream psydac repo to implement too.

@spossann spossann self-assigned this Oct 20, 2025
@spossann
spossann marked this pull request as ready for review October 20, 2025 08:55
@max-models

Copy link
Copy Markdown
Member

Looks good now! I will merge it.

@max-models
max-models merged commit 6d4f44e into devel-tiny Oct 20, 2025
18 checks passed
@max-models
max-models deleted the no-mpi branch October 20, 2025 13:45
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

Successfully merging this pull request may close these issues.

2 participants