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

Replaceability

KML_SCASOLVER supports multiple processes and threads on multiple nodes, which can replace the multi-node and multi-process function of PETSc.

Table 1 describes the mapping between replaceable interfaces and corresponding interfaces of the PETSc (only optimized interfaces are provided).

Table 1 Replacement mapping of PETSc

PETSc Interface

KML_SCASOLVER Interface

KSPCreate

KmlScaissCgInitStripesDI

KSPSetTolerances

KmlScaissCgSetDII

KSPSolve

KmlScaissCgSolveDI

KSPGetIterationNumber/ KSPGetResidualNorm

KmlScaissCgGetDII/ KmlScaissCgGetDID

KSPDestroy

KmlScaissCgCleanDI

The preceding interfaces are C interfaces. For details, see the section about KML_SCASOLVER function syntax in Kunpeng Math Library Developer Guide.