Git Product home page Git Product logo

Comments (2)

emorway-usgs avatar emorway-usgs commented on June 25, 2024

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.

emorway-usgs avatar emorway-usgs commented on June 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.