Skip to content

Commit

Permalink
contour2d.pyx: fixed maybe-uninitialized wng
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Oct 6, 2023
1 parent 3aa6830 commit f1e20d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contour2d.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ cdef void compute_contour_2d(double [:, :] data, coord, double[:] values, list c
cdef double d1, d2, d3, d4
cdef double val
cdef Contour ctr

x1 = 0.0; y1 = 0.0; x2 = 0.0; y2 = 0.0

for i in range(nx-1):
for j in range(ny-1):
d1 = data[i,j]
Expand Down

0 comments on commit f1e20d2

Please sign in to comment.