n-dim / ecohydraulical-feedback

ecohydraulical feedback model for simulation of banded vegetation pattern formation
1 stars 2 forks source link

error catching in open()-statements #4

Closed n-dim closed 12 years ago

n-dim commented 12 years ago

use iostat in open() to show error messages

n-dim commented 12 years ago

at the moment, if the params.txt file is not available the program stops with: "Fortran runtime error: End of file". No word about a file read error...

n-dim commented 12 years ago

params.txt gets generated as an empty file, if it doesn't exist. So use status='old'.