Skip to content
ForCADDocumentation

normalize_field_constraints Subroutine

public pure subroutine normalize_field_constraints(rowptr, col, val, weights, valid)

Convert homogeneous CSR rows to ordinary rational field coefficients. Exponent scaling avoids overflow in A_ijw_j; Aw=0 certifies the denominator.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: rowptr(:)
integer, intent(in) :: col(:)
real(kind=rk), intent(inout) :: val(:)
real(kind=rk), intent(in) :: weights(:)
logical, intent(out) :: valid