Skip to content
Snippets Groups Projects
Commit 474770a6 authored by Markus Blatt's avatar Markus Blatt
Browse files

Adapt test to new parallel interface.

add mising inlcude

Thank you very much Bård for providing this patch.
I apologize for the caused inconvenience.


[[Imported from SVN: r1093]]
parent 43bfe07a
No related branches found
No related tags found
No related merge requests found
......@@ -96,8 +96,8 @@ void testCoarsenIndices(int N)
std::cout << rank <<": coarse indices: " <<coarseIndices << std::endl;
std::cout << rank <<": coarse remote indices:"<<coarseRemote <<std::endl;
typedef Dune::Interface<ParallelIndexSet> Interface;
typedef Dune::BufferedCommunicator<ParallelIndexSet> Communicator;
typedef Dune::Interface Interface;
typedef Dune::BufferedCommunicator Communicator;
Interface interface;
interface.build(remoteIndices, Dune::EnumItem<GridFlag,GridAttributes::owner>(), Dune::EnumItem<GridFlag, GridAttributes::copy>());
Communicator communicator;
......
......@@ -44,7 +44,7 @@ int main(int argc, char** argv)
remoteIndices.rebuild<false>();
typedef Dune::Interface<ParallelIndexSet> Interface;
typedef Dune::Interface Interface;
Interface interface;
......
......@@ -11,6 +11,7 @@
#include <dune/common/sllist.hh>
#include <dune/common/static_assert.hh>
#include <map>
#include <set>
#include <utility>
#include <iostream>
#include <algorithm>
......
......@@ -331,8 +331,8 @@ void testIndicesBuffered(MPI_Comm comm)
RemoteIndices overlapIndices(distIndexSet, distIndexSet, comm);
overlapIndices.rebuild<false>();
Dune::Interface<ParallelIndexSet> accuInterface;
Dune::Interface<ParallelIndexSet> overlapInterface;
Dune::Interface accuInterface;
Dune::Interface overlapInterface;
Dune::EnumItem<GridFlags,owner> sourceFlags;
Dune::Combine<Dune::EnumItem<GridFlags,overlap>,Dune::EnumItem<GridFlags,owner>,GridFlags> destFlags;
// Dune::Bool2Type<true> flag;
......@@ -345,7 +345,7 @@ void testIndicesBuffered(MPI_Comm comm)
//accuInterface.print();
Dune::BufferedCommunicator<ParallelIndexSet> accumulator, overlapExchanger;
Dune::BufferedCommunicator accumulator, overlapExchanger;
accumulator.build<Array>(accuInterface);
......@@ -597,15 +597,15 @@ void testRedistributeIndicesBuffered(MPI_Comm comm)
std::cout<<redistributeIndices<<std::endl;
Interface<ParallelIndexSet> redistributeInterface, overlapInterface;
Interface redistributeInterface, overlapInterface;
EnumItem<GridFlags,owner> fowner;
EnumItem<GridFlags,overlap> foverlap;
redistributeInterface.build(redistributeIndices, fowner, fowner);
overlapInterface.build(overlapIndices, fowner, foverlap);
BufferedCommunicator<ParallelIndexSet> redistribute;
BufferedCommunicator<ParallelIndexSet> overlapComm;
BufferedCommunicator redistribute;
BufferedCommunicator overlapComm;
redistribute.build(array, redistributedArray, redistributeInterface);
overlapComm.build<Array>(overlapInterface);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment