Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: cellxy in DIS #239

Merged
merged 1 commit into from
Oct 31, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/Model/GroundWaterFlow/gwf3dis8.f90
Original file line number Diff line number Diff line change
Expand Up @@ -682,14 +682,15 @@ subroutine grid_finalize(this)
enddo
enddo
!
! -- fill x,y coordinate arrays
! -- fill x,y coordinate arrays
this%cellx(1) = DHALF*this%delr(1)
this%celly(1) = DHALF*this%delc(1)
this%celly(this%nrow) = DHALF*this%delc(this%nrow)
do j = 2, this%ncol
this%cellx(j) = this%cellx(j-1) + DHALF*this%delr(j-1) + DHALF*this%delr(j)
enddo
do i = 2, this%nrow
this%celly(i) = this%celly(i-1) + DHALF*this%delc(i-1) + DHALF*this%delc(i)
! -- row number increases in negative y direction:
do i = this%nrow-1, 1, -1
this%celly(i) = this%celly(i+1) + DHALF*this%delc(i+1) + DHALF*this%delc(i)
enddo
!
! -- create and fill the connections object
Expand Down