19#include "arccore/alina/MessagePassingUtils.h"
20#include "arccore/alina/AlinaLib.h"
22#include "./SampleProblemCommon.h"
24#include <gtest/gtest.h>
26double constant_deflation(
int, ptrdiff_t,
void*)
33TEST(alina_test_mpi, DistributedAlinaLib)
37 int comm_rank = world.rank;
38 int comm_size = world.size;
43 using ColumnType = Int32;
47 std::vector<ColumnType> ptr;
48 std::vector<ColumnType> col;
49 std::vector<double> val;
50 std::vector<double> rhs;
52 Int32 chunk = sample_problem_distributed(comm_rank, comm_size, n, 1, ptr, col, val, rhs);
57 prm.
setString(
"local.coarsening.type",
"smoothed_aggregation");
58 prm.
setString(
"local.relax.type",
"spai0");
59 prm.
setString(
"isolver.type",
"bicgstabl");
60 prm.
setString(
"dsolver.type",
"skyline_lu");
68 1, constant_deflation,
nullptr, prm);
72 std::cout <<
"Iterations: " << cnv.iterations << std::endl
73 <<
"Error: " << cnv.residual << std::endl;
CSR Matrix view used in AlinaLib.
Handle parameters for Alina.
void setString(const char *name, const char *value)
Set floating point parameter in the parameter list.
View of an array of elements of type T.
1D data vector with value semantics (STL style).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Convenience wrapper around MPI_Comm.