Skip to content
Snippets Groups Projects
Commit f6d151bb authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

polynomial: correctly determine order of polynomial with only zeros

parent b3278dff
No related branches found
No related tags found
1 merge request!82add mo_polynomial with tests
Pipeline #279203 passed with stages
in 9 minutes
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment