---
title: KmlAmgPrecondSetApplyOptions
description: "进行预条件子参数设置执行。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0987.html
sourcePath: /source/zh/kunpenghpcs/hpckit/devg/kunpengaccel_kml_0987.html
indexId: 1b7d0b28e9f44245c61f574a1ccf54a3c81136b13f9233ced4442ca095f877be61
---
# KmlAmgPrecondSetApplyOptions

进行预条件子参数设置执行。

#### 接口定义

C Interface：KmlAmgStatus KmlAmgPrecondSetApplyOptions(KmlAmgPrecondH precond, const KmlAmgPrecondApplyOptions* options);


#### 参数

| 参数名 | 类型 | 描述 | 输入/输出 |
| --- | --- | --- | --- |
| precond | KmlAmgPrecondH | 预条件子句柄 | 输入/输出 |
| options | KmlAmgPrecondApplyOptions | 预条件子求解配置选项 | 输入 |


#### 返回值

| 返回值 | 类型 | 描述 |
| --- | --- | --- |
| KMLAMG\_SUCCESS | int | 运行成功 |
| KMLAMG\_ERR\_INVALID\_PARAM | int | 参数无效 |
| KMLAMG\_ERR\_UNSUPPORTED | int | 功能暂不支持 |
| KMLAMG\_ERR\_NULL\_POINTER | int | 空指针 |
| KMLAMG\_ERR\_NO\_REQUIRED\_FIELD | int | 没有设置必需字段 |
| KMLAMG\_ERR\_NO\_MEMORY | int | 内存分配失败 |
| KMLAMG\_ERR\_UNKNOWN\_TYPE | int | 未知的类型 |
| KMLAMG\_ERR\_UNEXPECTED\_CALL\_ORDER | int | 预期之外的调用顺序 |
| KMLAMG\_ERR\_NO\_RESOURCE | int | 资源未就绪 |
| KMLAMG\_ERR\_INCONSISTENT | int | 不同阶段传递的信息不一致 |
| KMLAMG\_ERR\_UNKNOWN\_ERROR | int | 未知错误 |


#### 结构体说明

KmlAmgPrecondApplyOptions结构体描述（暂无配置项）：

| 字段名 | 类型 | 描述 |
| --- | --- | --- |
| fieldMask | uint64\_t | 配置生效的字段掩码。非0的位代表配置对应字段指定的值，0的位代表使用默认值，暂无可配置的掩码位。 |


#### 依赖

#include "amg4c.h"
