YimingYAN / linSolve

C++ interface to MA27/MA57 from HSL Mathematical Software Library
1 stars 3 forks source link

Run time issue #1

Open jmogali opened 9 years ago

jmogali commented 9 years ago

Hi, I tried integrating your code into a c++ project of mine. I have a couple of issues and it would be great if you resolve it. My project uses MPI and libraries such as IPOPT and Eigen. When I tried to integrate your solver (just the MA27 part), I noticed that

  1. The values that I input into the matrix for linsolve somehow gets corrupted during the solving process. I included linSolve.h and MA27.h into my project headers and placed ma27d.f into my project src (enabled fortran in cmakelist)
  2. The code seems unable to coexist with the IPOPT library (linked via .so file) at runtime. After a run of the linSolve code, it seems to affect ipopt.so . Note, IPOPT also uses MA27, lapack and blas. My code alternates between ipopt and linsolve. After one round of ipopt and linsolve(same order), it seems to somehow affect ipopt when it goes to it for a second time.

It would be very helpful if you can help me with my problem. Let me know any debug information you require and also, it would be nice if you can share your cmakelist.txt (may be I am missing something there). If I may suggest, it would be nice if your project can output a library file for easier use.

longjianquan commented 4 years ago

i meet the same error.when i second use ipopt ,it report "corrupted double-linked list"