MODFLOW-USGS / mt3d-usgs

MT3D-USGS Repository
23 stars 12 forks source link

Fix constant conc. boundary #41

Closed emorway-usgs closed 5 years ago

emorway-usgs commented 5 years ago

The code originally introduced in commit 141f400 negates the constant concentration boundary condition.

C--RESET ICBUND TO ABS(ICBUND) FOR CONSTANT CONCENTRATION CELLS
      DO INDEX=1,NCOMP
        DO KK=1,NLAY
          DO II=1,NROW
            DO JJ=1,NCOL
              IF(ICBUND(JJ,II,KK,INDEX).LT.0) THEN
                ICBUND(JJ,II,KK,INDEX)=ABS(ICBUND(JJ,II,KK,INDEX))
              ENDIF
            ENDDO
          ENDDO
        ENDDO
      ENDDO  

None of our tests used this boundary condition and so it went undetected until now. In trying to determine why this code was added, did it have something to do with transport through dry cells that can happen with the use of MF-NWT?

langevin-usgs commented 5 years ago

Attached is an mt3d example that demonstrates the problem.
p1mt3d.zip

vivekbedekar commented 5 years ago

Moved the loop into the right place, within an IF statement.