Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/run-system-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: System tests

on:
pull_request:
types: [labeled]

jobs:
run-system-tests:
if: ${{ github.event.label.name == 'trigger-system-tests' }}
uses: precice/tutorials/.github/workflows/system-tests.yml@develop
with:
suites: python-bindings
build_args: PYTHON_BINDINGS_PR:${{ github.event.number }},PYTHON_BINDINGS_REF:${{ github.event.pull_request.head.sha }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ docs/_build
docs/.docs_venv
*.egg-info
__pycache__
env
**/.venv
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 3.5.0

* Fixed passing custom MPI communicators to the Participant https://github.com/precice/python-bindings/pull/256

## 3.4.0

* Added support for documentation rendering https://github.com/precice/python-bindings/pull/250
Expand Down
8 changes: 4 additions & 4 deletions cyprecice/cyprecice.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ cdef class Participant:
Rank of the process
solver_process_size : int
Size of the process
communicator: mpi4py.MPI.Intracomm, optional
communicator: mpi4py.MPI.Comm, optional
Custom MPI communicator to use

Returns
Expand All @@ -82,10 +82,10 @@ cdef class Participant:
pass

def __cinit__ (self, solver_name, configuration_file_name, solver_process_index, solver_process_size, communicator=None):
cdef void* communicator_ptr
cdef size_t c_comm_addr;
if communicator:
communicator_ptr = <void*> communicator
self.thisptr = new CppParticipant.Participant (convert(solver_name), convert(configuration_file_name), solver_process_index, solver_process_size, communicator_ptr)
c_comm_addr = MPI._addressof(communicator)
self.thisptr = new CppParticipant.Participant (convert(solver_name), convert(configuration_file_name), solver_process_index, solver_process_size, <void*>c_comm_addr)
else:
self.thisptr = new CppParticipant.Participant (convert(solver_name), convert(configuration_file_name), solver_process_index, solver_process_size)
pass
Expand Down
5 changes: 5 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ The preCICE python bindings
precice
MigrationGuide
ReleaseGuide

.. toctree::
:caption: External pages:

Coupling API overview <https://precice.org/couple-your-code-api.html>
1 change: 1 addition & 0 deletions examples/solverdummy/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ venv
.idea
*.log
__pycache__
precice-profiling
Loading