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

Linebreak error-handling #20

Open
norihiro-w opened this issue Mar 4, 2016 · 0 comments
Open

Linebreak error-handling #20

norihiro-w opened this issue Mar 4, 2016 · 0 comments
Labels

Comments

@norihiro-w
Copy link
Contributor

(reported by @laubeg, copied from envinf/ogs5-trunk )

OGS5 is sometimes pretty sensitive to linebreaks in input files at the wrong positions and doesn't provide very meaningfull warnings/errors. There are two examples, where I experienced that:

1. Sourceterm direct conditions

If the file of direct conditions looks like this

8 -0.00005
9 -0.00005

OGS perfectly applies the sourceterms to node 8 & 9. If it looks like this:

8 -0.00005
9 -0.00005

It "terminates normally" but only applied a sourceterm to one of the nodes. There is no warning or error at all. The only difference between the two files is an extra line at the end, which is, in my opinion, a dangerous pitfall because if you're not especially aware of the problem, you probably wont notice it at all.

2. Linebreak before #STOP in *.gli

This file-ending in the *.gli file

#SURFACE
$NAME
rightWall
$POLYLINES
perimeterRight

#STOP

lets OGS wait in this state:

---------------------------------------------
Data input:

forever. The problem is the linebreak before the #STOP. If you changed more than one file before starting the job, it is very hard to find this error. I could not reproduce this error for other input files.

@norihiro-w norihiro-w added the bug label Mar 4, 2016
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