I have a nonlinear solver written in C++ interfaced to AMPL. I get the following error message after running it:
"error running ./mynonlinearsolver:
termination code 139; core file written"
However the code does terminate and gets the correct results but somehow at the very end I still have this error message my write_sol() function looks the following:
"write_sol(char* msg, double* x, NULL, NULL);"
The "msg" will actually print. However when I type
"display x;"
it will display the starting point, but when I check separately the x pointer does point to the correct solution so somehow the x pointer I'm passing to write_sol() doesn't make it into the .sol file. Could this be because I'm using a double* instead of real*?
Any help is much appreciated!
Best,
Gyorgy