# dcgmrhs_get

Retrieves the number of the current iteration.

## Syntax

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

## Description

The routine dcgmrhs_get retrieves the current iteration number of the solving process.

### Note

To use this routine with the name dcg_get, switch on the compiler preprocessor and include the files mkl_solver.h for C/C++, or mkl_solver.f77 for FORTRAN.

## Input Parameters

n

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

x

  DOUBLE PRECISION matrix of size n-by-nrhs. Contains the initial approximation to the solution vectors.

nrhs

  INTEGER. This parameter sets the number of right-hand sides.

b

  DOUBLE PRECISION matrix of size `(nrhs,n)`. Contains the right-hand side .

RCI_request

  INTEGER. This parameter is not used.

ipar

  INTEGER array of size (128+2*nrhs). Refer to the CG Common Parameters.

dpar

  DOUBLE PRECISION array of size (128+2*nrhs). Refer to the CG Common Parameters.

tmp

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

## Output Parameters

itercount

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

## Return Values

The routine dcgmrhs_get does not return any value.

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