Skip to content

Commit

Permalink
Slightly adjusted poly2 function.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Jun 6, 2024
1 parent e3475d0 commit 09aa361
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/hfx_load_balance_methods.F
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09aa361

Please sign in to comment.