From 90fdcf964e8743dbe1a47e1597fe746646749d6e Mon Sep 17 00:00:00 2001 From: Ishaan Desai Date: Wed, 26 Jul 2023 14:36:43 +0200 Subject: [PATCH] Add cimport numpy to resolve seg fault originating from using Cython --- CHANGELOG.md | 2 +- cyprecice/cyprecice.pyx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8205aa17..724cf985 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cyprecice/cyprecice.pyx b/cyprecice/cyprecice.pyx index 9a6c3a70..056f9b2a 100644 --- a/cyprecice/cyprecice.pyx +++ b/cyprecice/cyprecice.pyx @@ -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