Skip to content
ForCADDocumentation

check_constraint_residuals Subroutine

public pure subroutine check_constraint_residuals(rowptr, col, val, powers, points, weights, rtol, atol, ok)

Test each centered homogeneous CSR residual in a common radix scale. Reuse the validation copy of each coefficient and exponent to store its product with the control weight. The final component checks the denominator whenever weights are present. For each component the signed sum, its absolute-term bound and atol share one exponent.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: rowptr(:)
integer, intent(in) :: col(:)
real(kind=rk), intent(inout) :: val(:)
integer, intent(inout) :: powers(:)
real(kind=rk), intent(in) :: points(:,:)
real(kind=rk), intent(in) :: weights(:)
real(kind=rk), intent(in) :: rtol
real(kind=rk), intent(in) :: atol
logical, intent(out) :: ok