中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

KmlScaissGmresInitWithoutMat?I

初始化数据结构,,用于无矩阵求解的初始化,需要与用户自定义矩阵向量乘功能一并使用。

接口定义

C Interface:

int KmlScaissGmresInitWithoutMatSI(KmlScasolverTask **handle, int nstripes, const int *stripeWidth, MPI_Comm comm);

int KmlScaissGmresInitWithoutMatDI(KmlScasolverTask **handle, int nstripes, const int *stripeWidth, MPI_Comm comm);

参数

参数名

类型

描述

输入/输出

handle

KmlScasolverTask **

求解器句柄,handle不可为空指针。

输入/输出

           

nstripes

int

nstripes为存储在当前MPI进程中的矩阵数,目前只能取1。

输入

stripeWidth

int *

stripeWidth为当前MPI进程中的矩阵行数。该变量的生命周期与handle相同。

输入

           
           
           
           

comm

MPI_Comm

为MPI进程通信域。

输入

返回值

返回值

类型

描述

KMLSS_NO_ERROR

int

正常执行。

KMLSS_NULL_ARGUMENT

int

handle,stripeWidth中存在空参数。

        

KMLSS_NOT_IMPLEMENTED

int

参数nstripes不等于1。

KMLSS_NO_MEMORY

int

内存不足。