19#include "arccore/alina/MessagePassingUtils.h"
20#include "arccore/alina/AlinaLib.h"
22#include "./SampleProblemCommon.h"
24#include <gtest/gtest.h>
28TEST(alina_test_mpi, DistributedAlinaLib)
32 int comm_rank = world.rank;
33 int comm_size = world.size;
38 using ColumnType = Int32;
42 std::vector<ColumnType> ptr;
43 std::vector<ColumnType> col;
44 std::vector<double> val;
45 std::vector<double> rhs;
47 Int32 chunk = sample_problem_distributed(comm_rank, comm_size, n, 1, ptr, col, val, rhs);
52 prm.
setString(
"local.coarsening.type",
"smoothed_aggregation");
53 prm.
setString(
"local.relax.type",
"spai0");
54 prm.
setString(
"isolver.type",
"bicgstabl");
55 prm.
setString(
"dsolver.type",
"skyline_lu");
67 std::cout <<
"Iterations: " << cnv.iterations << std::endl
68 <<
"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.
static Ref< IMessagePassingMng > createRef(MPI_Comm comm, bool clean_comm=false)
Creates a manager associated with the communicator comm.
InstanceType * get() const
Associated instance or nullptr if none.
Reference to an instance.
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.