Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file SCREEN with filename CON #3

Closed
mbussieck opened this issue Jun 4, 2020 · 1 comment
Closed

file SCREEN with filename CON #3

mbussieck opened this issue Jun 4, 2020 · 1 comment

Comments

@mbussieck
Copy link

In err_stat.mod the file SCREEN uses file name CON to write to the console. I guess the intention on the SCREEN file is to write messages from TIMES to the GAMS log. This works okay on Windows with lo=1 (the current default). A much better way is to use the empty string as a file name (FILE SCREEN / '' /;). This works platform independent and writes to the GAMS log independent of if this goes to con or /dev/tty, stdout, or a log file.

@Antti-L
Copy link
Collaborator

Antti-L commented Jun 4, 2020

Thanks for the comment. Using CON here stems from the early days of TIMES. Your suggestion of changing it will most likely be taken in the next versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants