我要评分
获取效率
正确性
完整性
易理解

KmlAmgPrecondSetup

Construct a preconditioner.

Interface Definition

C interface: KmlAmgStatus KmlAmgPrecondSetup(KmlAmgPrecondH precond, KmlAmgMatrixH matrix);

Parameters

Parameter

Type

Description

Input/Output

precond

KmlAmgPrecondH

Preconditioner handle

Input/Output

matrix

KmlAmgMatrixH

Matrix handle

Input

Return Value

Return Value

Type

Description

KMLAMG_SUCCESS

int

Successful execution.

KMLAMG_ERR_INVALID_PARAM

int

Invalid parameter.

KMLAMG_ERR_UNSUPPORTED

int

Unsupported feature.

KMLAMG_ERR_NULL_POINTER

int

Null pointer

KMLAMG_ERR_NO_REQUIRED_FIELD

int

Required field not set.

KMLAMG_ERR_NO_MEMORY

int

Memory allocation failed.

KMLAMG_ERR_UNKNOWN_TYPE

int

Unknown type.

KMLAMG_ERR_UNEXPECTED_CALL_ORDER

int

Unexpected call order.

KMLAMG_ERR_NO_RESOURCE

int

Resources not ready.

KMLAMG_ERR_INCONSISTENT

int

Inconsistent information transferred in different phases.

KMLAMG_ERR_UNKNOWN_ERROR

int

Unknown error.

Dependencies

#include "amg4c.h"