Skip to content

Commit

Permalink
Add cimport numpy to resolve seg fault originating from using Cython
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Jul 26, 2023
1 parent e630547 commit 90fdcf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ All notable changes to this project will be documented in this file.

## 2.5.0.3

* Stop using `_` before variables names which are defined using `cdef`. Necessary for compatibility with [Cython v3.0.0](https://cython.readthedocs.io/en/latest/src/userguide/migrating_to_cy30.html#)
* Add `cimport numpy` to avoid a segmentation fault originating from using Cython v3.0.0.

## 2.5.0.2

Expand Down
1 change: 1 addition & 0 deletions cyprecice/cyprecice.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The python module precice offers python language bindings to the C++ coupling li
"""

cimport cyprecice
cimport numpy
import numpy as np
from mpi4py import MPI
import warnings
Expand Down

0 comments on commit 90fdcf9

Please sign in to comment.