Skip to content

Commit

Permalink
Adding a new test for issue #39. Also closes #39 and #29
Browse files Browse the repository at this point in the history
  • Loading branch information
langevin-usgs committed Feb 24, 2019
1 parent a40efe6 commit 1127a24
Show file tree
Hide file tree
Showing 28 changed files with 790,956 additions and 8 deletions.
1 change: 1 addition & 0 deletions autotest/t002_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,6 @@ def test_mfusg():
exclude = list(config.exclude)
exclude.append('.cmp')
namefiles = get_namefiles(config.testpaths[2], exclude=exclude)
#namefiles = ['../test-cmp/test054_gwfu-cln/model01.nam']
for namefile in namefiles:
run_mfusg(namefile)
4 changes: 4 additions & 0 deletions autotest/t999_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ def test_teardown():
print('Removing ' + config.target_release)
os.remove(config.target_release)

if os.path.isfile(config.zbudusg_target):
print('Removing ' + config.zbudusg_target)
os.remove(config.zbudusg_target)

return

if __name__ == '__main__':
Expand Down
3 changes: 1 addition & 2 deletions src/glo2basu1.f
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,7 @@ SUBROUTINE SGLO2BAS8ARDIS(IUDIS,IOUT,IUCLN,IUGNC,IUGNC2,IUGNCn)
ENDDO
ELSE
C10B----read IVC, for IVSD. GT. 0.
IF(NLAY.GT.1)
* CALL U1DINTNJA(IVC,IATMP,ANAME,NJATMP,INDIS,IOUT,IDSYMRD)
CALL U1DINTNJA(IVC,IATMP,ANAME,NJATMP,INDIS,IOUT,IDSYMRD)
ENDIF
C
C--------------------------------------------------------------------------
Expand Down
5 changes: 4 additions & 1 deletion src/gwf2bcf-lpf-u1.f
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,9 @@ SUBROUTINE GWF2BCFU1BDADJ(KSTP,KPER)
END IF
HD=HNEW(JJ)
IF(IVC(IIS).EQ.1.AND.JJ.GT.N)THEN !VERTICAL DIRECTION DOWN
IF(LAYCON(K+1).NE.3 .AND. LAYCON(K+1).NE.2) GO TO 122 !CSP 2 SHOULD BE 1
KK = K+1
IF(NLAY.EQ.1) KK = K
IF(LAYCON(KK).NE.3 .AND. LAYCON(KK).NE.2) GO TO 122 !CSP 2 SHOULD BE 1
TMP=HD
IF(NOVFC.EQ.0)THEN
IF(TMP.LT.TOP(JJ)) HD=TOP(JJ)
Expand Down Expand Up @@ -3629,6 +3631,7 @@ SUBROUTINE SGWF2LPFU1VCONDV(K)
ISLOC = ISYM(II)
IF(IBOUND(JJ).NE.0) THEN
KK = K+1
IF(NLAY.EQ.1) KK = K
C
C4--------------CALCULATE VERTICAL HYDRAULIC CONDUCTIVITY FOR CELL.
IF(LAYVKA(K).EQ.0) THEN
Expand Down
11 changes: 6 additions & 5 deletions src/utl7u1.f
Original file line number Diff line number Diff line change
Expand Up @@ -2740,23 +2740,24 @@ SUBROUTINE U1DRELNJA(ARRAY,IAG,ANAME,NJAG,IN,IOUT,IDSYMRD)
RETURN
ENDIF
C
NJAGS = (NJAG - NODES) / 2
NJAGS = (NJAG - NODES) / 2
ALLOCATE(TEMP(NJAGS))
C1-------READ SYMMETRIC DATA IN TEMP LOCATION FOR SUBSURFACE NODES
CALL U1DREL(TEMP,ANAME,NJAGS,K,IN,IOUT)
C1A------FILL INTO UNSYMMETRIC TEMPU LOCATION
ALLOCATE(TEMPU(NJAG))
DO N=1,NODES
IIC = 0 ! ITERATION COUNTER OF GROUNDWATER CONNECTIONS
DO II = IA(N)+1,IA(N+1)-1
JJ = JA(II)
IF(JJ.GT.N)THEN
IF(JJ.GT.N.AND. JJ.LE. NODES)THEN
IIC = IIC + 1
IIS = JAS(II)
TEMPU(II) = TEMP(IIS)
TEMPU(ISYM(II)) = TEMP(IIS)
ARRAY(IIS) = TEMP(IIC)
ENDIF
ENDDO
ENDDO
DEALLOCATE(TEMP)
RETURN
ELSE
C2------READ UNSYMMETRIC DATA IN TEMPU LOCATION AND TRANSFER
ALLOCATE(TEMPU(NJAG))
Expand Down
Binary file added test-cmp/test054_gwfu-cln/.cmp/model01.hds.cmp
Binary file not shown.
Loading

0 comments on commit 1127a24

Please sign in to comment.