Skip to content

Commit 1a23648

Browse files
mjrenomjreno
authored andcommitted
fix dis mesh_face_x array
1 parent 0f25200 commit 1a23648

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Utilities/Export/DisNCMesh.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,12 @@ subroutine add_mesh_data(this)
508508
cell_x = NF90_FILL_DOUBLE
509509
cell_y = NF90_FILL_DOUBLE
510510
do j = 1, this%dis%nrow
511-
x = this%dis%xorigin
512511
y = this%dis%celly(j) + this%dis%yorigin
513512
do i = 1, this%dis%ncol
513+
x = this%dis%cellx(i) + this%dis%xorigin
514514
cell_x(cnt) = x
515515
cell_y(cnt) = y
516516
cnt = cnt + 1
517-
x = this%dis%cellx(i) + this%dis%xorigin
518517
end do
519518
end do
520519

0 commit comments

Comments
 (0)