rniswon / mfnwt

MODFLOW-NWT - Version: 1.1.0 Newton Formulation for MODFLOW-2005 For more information go to http://water.usgs.gov/ogw/modflow-nwt
4 stars 7 forks source link

Model should stop when linker file is listed in the main name file #35

Closed emorway-usgs closed 5 years ago

emorway-usgs commented 5 years ago

Issues arose in MT3D-USGS when a formatted linker file was listed in the main name file of MODFLOW. See this issue on the MT3D-USGS repo for more information. The fix is to stop MODFLOW under these circumstances with a message that informs the user to only use the LMT input file to specify the name and unit number of the linker file.

emorway-usgs commented 5 years ago

MODFLOW model will now exit when linker file is specified in name file. Users will need to delete the linker file line in the name file in order to get the model to run. The problem with opening up the linker file in the name file is that OPEN() statement in SGWF2BAS7OPEN() is missing the DELIM='APOSTROPHE' argument that exists inside LMT8BAS7AR() (see below). MT3D is expecting that text inside a formatted linker file has apostrophes.

     OPEN(IUMT3D,FILE=FNAME,FORM='FORMATTED',ACTION=ACTION(2),
&      STATUS='REPLACE',DELIM='APOSTROPHE')