Skip to content

Commit

Permalink
Merge pull request #458 from vsnever/fix/uninitialised_variable_in_qu…
Browse files Browse the repository at this point in the history
…adrature

Fix uninitialised variable warning in GaussianQuadrature
  • Loading branch information
jacklovell authored Aug 2, 2024
2 parents 66ee813 + a501470 commit 3e0f352
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cherab/core/math/integrators/integrators1d.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ cdef class GaussianQuadrature(Integrator1D):
double newval, oldval, error, x, c, d

oldval = INFINITY
newval = 0
ibegin = 0
c = 0.5 * (a + b)
d = 0.5 * (b - a)
Expand Down

0 comments on commit 3e0f352

Please sign in to comment.