Skip to content

Potential incompatibility with Numpy 1.26.4 #37

@bmlowe4

Description

@bmlowe4

Description

I've been getting some seg faults from the code when running with numpy 1.26.4. Behavior goes away when using numpy 1.22.4. If reproducible on your end, you could simply limit the numpy version in the setup.py.

Steps to reproduce issue

  1. pip install numpy==1.26.4
  2. cd /path/to/pysurf
  3. pip install .
  4. find yourself a nice cgns file
  5. run the python script:

    from pysurf import tsurf_tools
    from mpi4py import MPI
    nodes, sectionDict = tsurf_tools.getCGNSsections("path/to/file.cgns")

Current behavior

Seg fault, seems to be occuring on line 33 of tsurf_tools.py: arraySizes = cgnsAPI.cgnsapi.readcgns(inputFile, comm.py2f())
I put a print statement at the beginning of cgnsAPI.F90::readCGNS (line 70) in the Fortran code, but the code seg faults before getting there.
MPT ERROR: Rank 0(g:0) received signal SIGSEGV(11)

Expected behavior

No seg fault.

Code versions

  • Operating System: TOSS 4
  • Python: Python 3.9.5 and 3.12
  • MPI: HPE MPT 2.28 04/24/23 12:22:36-mraymond
  • CGNS: 4.3.0
  • PETSc: N/A
  • Compiler: ifort (IFORT) 19.1.3.304 20200925
  • This repository:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions