Komplex
Development
|
Creation routines for constructing a preconditioner for a Komplex matrix. More...
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "az_aztec.h"
#include "azk_komplex.h"
Functions | |
void | AZK_create_precon (int *options, double *params, int *proc_config, double *x, double *b, AZ_MATRIX *Amat, AZ_PRECOND **Prec) |
Create a Preconditioner for a Komplex matrix. More... | |
Creation routines for constructing a preconditioner for a Komplex matrix.
KOMPLEX is an add-on module to AZTEC that allows users to solve complex-valued linear systems. As such, all Aztec preconditioners are available. To learn how to set preconditioner options, please see the Aztec 2.1 User Guide.
void AZK_create_precon | ( | int * | options, |
double * | params, | ||
int * | proc_config, | ||
double * | x, | ||
double * | b, | ||
AZ_MATRIX * | Amat, | ||
AZ_PRECOND ** | Prec | ||
) |
Create a Preconditioner for a Komplex matrix.
Constructs a preconditioner for a Komplex matrix Amat. All preconditioning options available in Aztec are supported.
options | (In) Determines specific preconditioner method and other parameters. |
params | (In) Drop tolerance and convergence tolerance info. |
proc_config | (In) Machine configuration. proc_config[AZ_node] is the node number. proc_config[AZ_N_procs] is the number of processors. |
x | (In/Out) Komplex version of initial guess and solution. May be modified depending on preconditioner options. |
b | (In/Out) Komplex version of RHS. May be modified depending on preconditioner options. |
Amat | (In) Komplex version of matrix stored as an AZ_MATRIX structure. |
Prec | (Out) Preconditioner for Amat stored as an AZ_PRECOND structure. |