28 Declare_instanciable_sans_constructeur(
Solv_AMGX);
37 void Create_objects(
const Matrice_Morse&,
int blocksize)
override;
38 void Create_vectors(
const DoubleVect&)
override;
39 void Update_vectors(
const DoubleVect& secmem, DoubleVect& solution)
override;
43 int solve(ArrOfDouble& residual)
override;
44 int nbiter(ArrOfDouble& residual);
46 void finalize()
override
50 SolveurAmgX_.finalize();
54 AmgXSolver SolveurAmgX_;
56 PetscErrorCode petscToCSR(Mat& A, Vec& lhs_petsc, Vec& rhs_petsc);
57 PetscInt nRowsLocal, nRowsGlobal, nNz;
59 const PetscInt *colIndices =
nullptr, *rowOffsets =
nullptr;