# dcg_get

Retrieves the number of the current iteration.

## Syntax

dcg_get(n, x, b, RCI_request, ipar, dpar, tmp, itercount)

## Description

The routine dcg_get retrieves the current iteration number of the solutions process.

## Input Parameters

n

  INTEGER. Contains the size of the problem, and the sizes of arrays x and b.

x

  DOUBLE PRECISION array of size n. Contains the initial approximation vector to the solution.

b

  DOUBLE PRECISION array of size n. Contains the right-hand side vector.

RCI_request

  INTEGER. This parameter is not used.

ipar

  INTEGER array of size 128. Refer to the CG Common Parameters.

dpar

  DOUBLE PRECISION array of size `128`. Refer to the CG Common Parameters.

tmp

  DOUBLE PRECISION array of size `(n,4)`. Refer to the CG Common Parameters.

## Output Parameters

itercount

  INTEGER argument. Contains the value of the current iteration number.

## Return Values

The routine dcg_get does not return any value.

Parent topic: Iterative Sparse Solvers based on Reverse Communication Interface (RCI ISS)