115 real(kind=
rp),
intent(out) :: coeffs(4)
116 real(kind=
rp),
intent(in) :: dt(10)
117 integer,
intent(in) :: order
119 call rzero(coeffs, 4)
127 coeffs(1) = (1 + dt(1)/(dt(1) + dt(2)))
128 coeffs(3) = -dt(1)**2/dt(2)/(dt(1) + dt(2))
129 coeffs(2) = coeffs(1) - coeffs(3)
131 coeffs(2) = (dt(1) + dt(2)) * (dt(1) + dt(2) + dt(3)) / &
132 (dt(1) * dt(2) * (dt(2) + dt(3)))
133 coeffs(3) = -dt(1) * (dt(1) + dt(2) + dt(3)) / &
134 (dt(2) * dt(3) * (dt(1) + dt(2)))
135 coeffs(4) = dt(1) * (dt(1) + dt(2)) / &
136 (dt(3) * (dt(2) + dt(3)) * (dt(1) + dt(2) + dt(3)))
137 coeffs(1) = coeffs(2) + coeffs(3) + coeffs(4)
138 coeffs = coeffs * dt(1)
140 call neko_error(
"The order of the BDF time scheme must be 1 to 3.")