Comments (2)
Richard Winston had a look in ModelMuse and the source code, and responded: "I think I found the issue. Data set 1 of the reaction package in MT3D-USGS includes an extra variable, IREACTION, that is not present in in MT3DMS. ModelMuse does not write a value for that variable. Because that variable is not present, MT3D-USGS activates the following code starting on line 51 of rct1.f.
100 IF(IERR.NE.0) THEN
IRCTOP=1
IGETSC=0
BACKSPACE (INRCT)
READ(INRCT,'(2I10)') ISOTHM,IREACT
ENDIF
This code sets IRCTOP to 1 which is different from the value specified in the input file.
This same code is present in MT3DMS but doesn't get activated there because MT3DMS does not attempt to read IREACTION. I suspect this code is present for backwards compatibility with MT3D.
I think the best way to handle this would be to insert a similar if statement to the one above that would read only 4 variables instead of 5. It should supply a default value for IREACTION. If an error occurs in reading the 4 variables, the above if statement can be used for backwards compatibility with MT3D.
I will modify ModelMuse to write a default value for IREACTION until I can get to more fully supporting MT3D-USGS."
from mt3d-usgs.
A solution was offered by Richard Winston and adopted with commit b15eaa4
Here is Richard's suggestion:
I have updated ModelMuse to write a default value of 0 for IREACTION. you can get the updated version from the following URLs.
32-bit version: ftp://ftpext.usgs.gov/pub/er/va/reston/rbwinst/ModelMuse32_3_9_0_24.zip
64-bit version: ftp://ftpext.usgs.gov/pub/er/va/reston/rbwinst/ModelMuse64_3_9_0_24.zip
To install, replace your existing version of ModelMuse.exe with the one from the zip file.
The following is my suggested change to rct1.f starting at line 48.
C--READ AND ECHO SORPTION ISOTHERM TYPE AND FLAG IREACT
READ(INRCT,'(6I10)',ERR=100,IOSTAT=IERR)
& ISOTHM,IREACT,IRCTOP,IGETSC,IREACTION
100 IF(IERR.NE.0) THEN
! Backwards compatibility with MT3DMS.
IREACTION=0
IERR = 0
BACKSPACE (INRCT)
READ(INRCT,'(4I10)',ERR=101,IOSTAT=IERR)
& ISOTHM,IREACT,IRCTOP,IGETSC
ENDIF
101 IF(IERR.NE.0) THEN
IRCTOP=1
IGETSC=0
IREACTION=0
BACKSPACE (INRCT)
READ(INRCT,'(2I10)') ISOTHM,IREACT
ENDIF
from mt3d-usgs.
Related Issues (20)
- Crash in LKT HOT 1
- LKNODE in LKT is not set properly with MODFLOW 6 models HOT 3
- Setting of LKT terms when using MF6-generated flow fields HOT 2
- Code should stop when UZT, LKT, or SFT package is used with FT6 linker input
- MT3D and MF6 HOT 1
- Bad input on GWT test problem HOT 1
- LKT example output file shows time value higher than simulation time
- Incorrect CTS unit number in documentation HOT 1
- GWT passes locally, but fails on Travis HOT 2
- help with input error? HOT 7
- MT3D-USGS crashes with the attached model. HOT 9
- MT3D-USGS version is missing from LIST output file HOT 1
- sft_crnkNic fails on Windows and macOS HOT 2
- Constant concentration condition (ICBUND < 0) is not persistent HOT 4
- MT3D-USGS input instructions show NROW/NCOL for some arrays HOT 1
- Crash as soon as MODFLOWSTYLEARRAYS is added HOT 2
- End Loops HOT 1
- Multiple solid phases for kinetic ED/EA reactions HOT 4
- MT3D-USG - GWV8 HOT 3
- MT3D-USGS doesn't handle recharge and EVT properly with MODFLOW 6 models.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mt3d-usgs.