diff --git a/src/hfx_load_balance_methods.F b/src/hfx_load_balance_methods.F index 6403947fb5..e846745108 100644 --- a/src/hfx_load_balance_methods.F +++ b/src/hfx_load_balance_methods.F @@ -1810,10 +1810,12 @@ END FUNCTION estimate_basic !> \return ... ! ************************************************************************************************** REAL(KIND=dp) FUNCTION poly2(x, a0, a1, a2) - INTEGER :: x - REAL(KIND=dp) :: a0, a1, a2 + INTEGER, INTENT(IN) :: x + REAL(KIND=dp), INTENT(IN) :: a0, a1, a2 + REAL(KIND=dp) :: r - poly2 = a0 + a1*x + a2*x*x + r = REAL(x, KIND=dp) + poly2 = a0 + (a1 + a2*r)*r END FUNCTION poly2 END FUNCTION cost_model