Skip to content

Commit

Permalink
Merge pull request #70 from vanroekel/evaluateCubicBug
Browse files Browse the repository at this point in the history
Fixes a bug in evaluate cubic
  • Loading branch information
mnlevy1981 authored Apr 12, 2018
2 parents 04136cf + f6746fd commit 534fc38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/cvmix_math.F90
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function cvmix_math_evaluate_cubic(coeffs, x_in, fprime)
cvmix_math_evaluate_cubic = cvmix_math_evaluate_cubic + &
coeffs(i)*(x_in**(i-1))
if (present(fprime).and.(i.gt.2)) &
fprime = fprime + real(i-1,cvmix_r8)*(x_in**(i-2))
fprime = fprime + coeffs(i)*real(i-1,cvmix_r8)*(x_in**(i-2))
end do

end function cvmix_math_evaluate_cubic
Expand Down

0 comments on commit 534fc38

Please sign in to comment.