Skip to content
Snippets Groups Projects
Commit e7b592a2 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

convert to use `Dune::TestSuite`

parent 0f97d2b0
Branches
Tags
1 merge request!261CollectiveCommunication: use `const` references or pointers where possible
......@@ -6,10 +6,13 @@
#include <dune/common/parallel/mpihelper.hh>
#include <dune/common/parallel/mpicollectivecommunication.hh>
#include <dune/common/test/testsuite.hh>
#include <iostream>
int main(int argc, char** argv)
{
Dune::TestSuite t;
typedef Dune::MPIHelper Helper;
Helper& mpi = Helper::instance(argc, argv);
......@@ -40,12 +43,12 @@ int main(int argc, char** argv)
#endif
for(int i=0; i<length; ++i)
{
assert( std::abs( values[i] - sum ) < 1e-8 );
assert( std::abs( val[i] - sum ) < 1e-8 );
t.check( std::abs( values[i] - sum ) < 1e-8 );
t.check( std::abs( val[i] - sum ) < 1e-8 );
}
}
std::cout << "We are at the end!"<<std::endl;
return 0;
return t.exit();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment