iiasa / ixmp

The ix modeling platform for integrated and cross-cutting scenario analysis
https://docs.messageix.org/ixmp
Apache License 2.0
38 stars 112 forks source link

Advise users to check GAMS log file #511

Closed glatterf42 closed 10 months ago

glatterf42 commented 10 months ago

https://github.com/iiasa/ixmp/blob/e764f63c38d8327f41c7f9c81318552695de06a2/ixmp/model/gams.py#L195-L224

As suggested by @volker-krey, upon GAMS errors, users should not only check the .lst file, but also the .log file. I'm not entirely sure what the exact name of these files is, but we can most likely add a line here that checks if such a file exists and points the user to it.

khaeru commented 10 months ago

One could duplicate line 199 to create log_file path, and then line 220 to print it out, if it exists.

glatterf42 commented 10 months ago

Are the .log files named exactly the same as the .lst files except for the ending?

khaeru commented 10 months ago

Yes, unless overridden, which we generally do not do. See https://www.gams.com/latest/docs/UG_GamsCall.html#GAMSAOlogfile