PURPOSE

This subroutine provides a collection of vector utilities primarily used in iterative algorithms. Several processing options are included, as determined by the parameter IOPT. Generally {X} represents the solution values and {Y} the change in solution values, or the solution at a different iteration. The norm RNORM is the ratio of solution increment to solution value.

The following options are implemented:

IOPT IALPHA {X} on Output RNORM
0 Not Used Unchanged || {X} ||
1 -1 {X}={X}-{Y} || Y(i) / ( X(i)-Y(i) ) ||
1 +1 {X}={X}+{Y} || Y(i) / ( X(i)+Y(i) ) ||
2 Not Used Unchanged || ( X(i)-Y(i) ) / X(i) ||
3 Not Used {X}={Y} || ( Y(i)-X(i)) / Y(i) ||

SYNOPSIS

CALL FMSVAN (LUX, IALPHA, LUY, INORM, RNORM, IOPT)

INPUT PARAMETERS

OUTPUT PARAMETERS:

DESCRIPTION:

This subroutine is a collection of vector utilities that are typically used in iterative algorithms. The computed norm RNORM may be used to test for convergence.

The parameter IOPT determines if the vector {X} is modified and how the norm is computed. The following options are implemented: