OpenCMISS / cm

www.opencmiss.org
60 stars 93 forks source link

Revert loading dynamic libraries in Python bindings with RTLD_GLOBAL #133

Closed adamreeve closed 11 years ago

adamreeve commented 11 years ago

Tracker item 3504.

This fixes a segfault when loading numpy after OpenCMISS in the Python bindings. I've updated OpenCMISS extras to use the single dynamic MKL library, libmkl_rt, so setting RTLD_GLOBAL is no longer required.

There's a segfault when using CMISSDistributedMatrix_DataRestore on a PETSc matrix, but this is unrelated to this change and is because matrestorearrayf90 in PETSc thinks matrix data should be a 2D Fortran array, which makes no sense for a sparse matrix. I'm not sure why this issue didn't come up previously, but I'll report this as a bug in the tracker and in PETSc (Why don't they have a proper bug tracker???).