snopt / snopt-interface

C/C++ API for SNOPT7
MIT License
27 stars 12 forks source link

Confusing errors when setting summOn parameter to false in snInit #32

Open mlooz opened 3 years ago

mlooz commented 3 years ago

We are using the C interface of Snopt in our project, and experience unexpected behavior when calling snInit with the summOn parameter set to false. The reported error is this:

At line 572 of file src/sn40bfil.f Fortran runtime error: End of file

A different error appears when using the toyA.c example and modifying line 104 to read:

snInit( &toy, "ToyA", "ToyA.out", 0 );

(toyA.zip)

Then, an error code for "Invalid arguments" is reported. I did not find much about this parameter in the documentation, can somebody explain how to use it correctly?