Skip to content
Snippets Groups Projects
Commit 265ea118 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Adding unit test files

parent 2a10426b
No related branches found
No related tags found
No related merge requests found
Showing
with 64911 additions and 30037 deletions
......@@ -321,15 +321,13 @@ public:
return g.getNChilds(id);
}
/*! \brief Print current graph and save it to file with name test_graph_[id]
*
* \param id to attach to the filename
/*! \brief Print current graph and save it to file
*
*/
void write(const std::string & file)
{
VTKWriter<DistGraph_CSR<nm_v, nm_e>, DIST_GRAPH> gv2(g);
gv2.write(file);
gv2.write(std::to_string(file + ".vtk"));
}
const DistParMetisDistribution<dim, T> & operator=(const DistParMetisDistribution<dim, T> & dist)
......
......@@ -346,9 +346,9 @@ BOOST_AUTO_TEST_CASE( DistParmetis_distribution_test)
// write the first decomposition
pmet_dist.write("vtk_dist_parmetis_distribution_0");
if (v_cl.getProcessingUnits() == 0)
if (v_cl.getProcessUnitID() == 0)
{
bool test = compare("vtk_dist_parmetis_distribution_0.vtk","src/Decomposition/Distribution/test_data/vtk_dist_parmetis_distribution_0_test.vtk");
bool test = compare("vtk_dist_parmetis_distribution_0","src/Decomposition/Distribution/test_data/vtk_dist_parmetis_distribution_0_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
}
......
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