Skip to content
ForCADDocumentation

multipatch_projective_weight_scale Subroutine

public pure subroutine multipatch_projective_weight_scale(Wa, Wb, tol, weight_scale, ok, scale_power, powers)

Compare positive denominator coefficients in a common exponent for each ratio.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in), contiguous :: Wa(:)
real(kind=rk), intent(in), contiguous :: Wb(:)
real(kind=rk), intent(in) :: tol
real(kind=rk), intent(out) :: weight_scale
logical, intent(out) :: ok
integer, intent(out), optional :: scale_power

The factor is weight_scale * radix**scale_power. Without this output a scalar factor must fit.

integer, intent(in), optional :: powers(:,:)

Binary exponents of the two oriented trace coefficient arrays when kept in scaled form.