diff --git a/src/mo_polynomial.f90 b/src/mo_polynomial.f90 index e6aee44f881bb4b148cbb04dec162eea7db489ad..3dd9894e110e9438cb04c0ec8e21abc15e82e813 100644 --- a/src/mo_polynomial.f90 +++ b/src/mo_polynomial.f90 @@ -82,6 +82,7 @@ contains n = size(p) if (n == 0_i4) call error_message("mo_polynomial : p is an empty array.") + poly_order = 0_i4 do i = 1_i4, n if (abs(p(i)) > 0.0_dp) then poly_order = (n - i)