// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- // vi: set et ts=4 sw=2 sts=2: #include #include #include #include #include template int createAggregates(Dune::Amg::AggregatesMap& aggregates, int size) { int index=0; int i=0; for(i=1; index VectorBlock; typedef Dune::BlockVector Vector; Vector b(20); Dune::Amg::AggregatesMap amap(20); int aggregates = createAggregates(amap, 20); Vector c(aggregates); b=100; typedef Dune::Amg::SequentialInformation SequentialInformation; SequentialInformation info; Dune::Amg::Transfer::restrictVector(amap, c, b, info); Dune::Amg::Transfer::prolongateVector(amap, c, b, 1); return 0; }