| 1 |
// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root |
| 2 |
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception |
| 3 |
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
| 4 |
// vi: set et ts=4 sw=2 sts=2: |
| 5 |
|
| 6 |
// start with including some headers |
| 7 |
#define DISABLE_AMG_DIRECTSOLVER 1 |
| 8 |
|
| 9 |
#include <iostream> // for input/output to shell |
| 10 |
#include <fstream> // for input/output to files |
| 11 |
#include <vector> // STL vector class |
| 12 |
#include <complex> |
| 13 |
|
| 14 |
#include <cmath> // Yes, we do some math here |
| 15 |
|
| 16 |
#include <dune/common/alignedallocator.hh> |
| 17 |
#include <dune/common/classname.hh> |
| 18 |
#include <dune/common/debugalign.hh> |
| 19 |
#include <dune/common/fvector.hh> |
| 20 |
#include <dune/common/fmatrix.hh> |
| 21 |
#if HAVE_VC |
| 22 |
#include <dune/common/simd/vc.hh> |
| 23 |
#endif |
| 24 |
#include <dune/common/timer.hh> |
| 25 |
#include <dune/istl/istlexception.hh> |
| 26 |
#include <dune/istl/basearray.hh> |
| 27 |
#include <dune/istl/bvector.hh> |
| 28 |
#include <dune/istl/bcrsmatrix.hh> |
| 29 |
#include <dune/istl/operators.hh> |
| 30 |
#include <dune/istl/solvers.hh> |
| 31 |
#include <dune/istl/preconditioners.hh> |
| 32 |
#include <dune/istl/paamg/amg.hh> |
| 33 |
#include <dune/istl/paamg/pinfo.hh> |
| 34 |
|
| 35 |
#include <dune/istl/test/laplacian.hh> |
| 36 |
#include <dune/istl/test/multirhstest.hh> |
| 37 |
|
| 38 |
int main (int argc, char ** argv) |
| 39 |
{ |
| 40 |
test_all<float>(); |
| 41 |
test_all<double>(); |
| 42 |
|
| 43 |
test_all<Dune::AlignedNumber<double> >(); |
| 44 |
|
| 45 |
#if HAVE_VC |
| 46 |
test_all<Vc::float_v>(); |
| 47 |
test_all<Vc::double_v>(); |
| 48 |
test_all<Vc::Vector<double, Vc::VectorAbi::Scalar>>(); |
| 49 |
test_all<Vc::SimdArray<double,2>>(); |
| 50 |
// test_all<Vc::SimdArray<double,2,Vc::Vector<double, Vc::VectorAbi::Scalar>,1>>(); |
| 51 |
test_all<Vc::SimdArray<double,8>>(); |
| 52 |
// test_all<Vc::SimdArray<double,8,Vc::Vector<double, Vc::VectorAbi::Scalar>,1>>(); |
| 53 |
#endif |
| 54 |
|
| 55 |
test_all<double>(8); |
| 56 |
|
| 57 |
return 0; |
| 58 |
} |