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

SWB: undefined behavior if no "solve" directive present. #6

Open
smwesten-usgs opened this issue Dec 4, 2013 · 1 comment
Open
Labels

Comments

@smwesten-usgs
Copy link
Owner

A user sent in a control file that contained neither a "SOLVE" nor a "SOLVE_NO_TS_FILE" directive, with the following result:

swb problem

It appears that if SWB has not actually run the simulation, undefined variable names creep into the routine responsible for naming output image files. Fix would be to test for at least one of the SOLVE statements or to test for valid variable values before attempting to formulate the name of the output file.

@ghost
Copy link

ghost commented Dec 4, 2013

Vic Kelson
[email protected]

On Dec 3, 2013, at 7:08 PM, Steve Westenbroek [email protected] wrote:

A user sent in a control file that contained neither a "SOLVE" nor a "SOLVE_NO_TS_FILE" directive, with the following result:

It appears that if SWB has not actually run the simulation, undefined variable names creep into the routine responsible for naming output image files. Fix would be to test for at least one of the SOLVE statements or to test for valid variable values before attempting to formulate the name of the output file.


Reply to this email directly or view it on GitHub.

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

No branches or pull requests

1 participant