Unit 0 to 6 are reservered for Fortran standard I/O and should not be used. MODFLOW also reservers 98 and 99 for its temporary files. The problem is your name file is declaring the list to use 6 as the unit number with:
LIST 6 list.txt
Typically, its best to make unit numbers >100 and they need to be unique for each file that is being opened (you can reuse the unit number after that point when referencing the file).
For example,
DATA 121 input.txt
makes input.txt associated with unit number 121. If you want to reference the file by unit you could do something like
EXTERNAL 121.
Note if you use in the place of MODFLOW-2005, MODFLOW-OWHM (based off of 2005), unit numbers are optional for packages.
So you could change:
LIST 6 list.txt
with just
LIST list.txt
Also you can reference data files by name for full path, such as
DATA 121 ./dir/input.txt
could be referenced as:
EXTERNAL 121
or
EXTERNAL
./dir/input.txt
or
EXTERNAL input.txt
Note if you reference just the filename and it is not unique an error is raised saying you must specify the full path due to not knowing which file to use.
Code and Download page:
Main Landing Website
Main Documentation (I usually recommend the first 20 pages and Appendix 4 for new users):
If you program in Fortran, this is my attempt at a lot of library files to help with coding:
https://code.usgs.gov/fortran/bif
Hope that helps out,
Scott
|
This email has been received from outside of DOI - Use caution before clicking on links, opening attachments, or responding.
|