Commit 562281b1 authored by incardon's avatar incardon

Fixing Metis distribution test

parent 4e64da5d
......@@ -5,17 +5,16 @@ All notable changes to this project will be documented in this file.
### Added
- Introduced getDomainIterator for Cell-list
- Vortex in Cell example
- Example to show how to add sensors in SPH/particle based methods (see)
- Vortex in Cell example
- Interpolation functions (see Numerics/vortex_in_cell example)
- Gray-scott 3d example (see Grid/gray_scott_3d example)
- HDF5 Check point restart for vector_dist particles (see ...)
- Gray-scott 3d example with stencil iterator optimixation (see Grid/gray_scott_3d example)
- HDF5 Check point restart for vector_dist particles (see Vector/1_HDF5_save_and_load)
- Raw reader for grid (see ...)
- A way to specify names for proeprties and select properties to write
- Ghost put on grid
- getDomainIterator stencil for faster stencil codes iterators
- Agebraic multigrid solvers interface for linear systems
- A way to specify names for properties and select properties to write (in PROGRESS)
- Ghost put on grid (see Vortex in Cell example)
- getDomainIterator stencil for faster stencil codes iterators see (Grid/gray_scott_3d example)
- Agebraic multigrid solvers interface for linear systems (see Vortex in Cell example)
### Fixed
- Installation of PETSC in case with MUMPS try without MUMPS
......
......@@ -91,7 +91,8 @@ BOOST_AUTO_TEST_CASE( Metis_distribution_test)
BOOST_REQUIRE(met_dist.getUnbalance() < 0.03);
met_dist.write("vtk_metis_distribution");
if (v_cl.getProcessUnitID() == 0)
{met_dist.write("vtk_metis_distribution");}
size_t b = GS_SIZE * GS_SIZE * GS_SIZE / 5;
......@@ -130,27 +131,31 @@ BOOST_AUTO_TEST_CASE( Metis_distribution_test)
BOOST_REQUIRE(met_dist.getUnbalance() < 0.06);
met_dist.write("vtk_metis_distribution_red");
if (v_cl.getProcessUnitID() == 0)
{met_dist.write("vtk_metis_distribution_red");}
// check that match
bool test;
#ifdef HAVE_OSX
if (v_cl.getProcessUnitID() == 0)
{
#ifdef HAVE_OSX
test = compare("0_vtk_metis_distribution.vtk", "src/Decomposition/Distribution/test_data/vtk_metis_distribution_osx_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
test = compare("0_vtk_metis_distribution_red.vtk","src/Decomposition/Distribution/test_data/vtk_metis_distribution_red_osx_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
test = compare("0_vtk_metis_distribution.vtk", "src/Decomposition/Distribution/test_data/vtk_metis_distribution_osx_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
test = compare("0_vtk_metis_distribution_red.vtk","src/Decomposition/Distribution/test_data/vtk_metis_distribution_red_osx_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
#elif __GNUC__ == 6 && __GNUC_MINOR__ == 3
#elif __GNUC__ == 6 && __GNUC_MINOR__ == 3
test = compare("0_vtk_metis_distribution.vtk", "src/Decomposition/Distribution/test_data/vtk_metis_distribution_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
test = compare("0_vtk_metis_distribution_red.vtk","src/Decomposition/Distribution/test_data/vtk_metis_distribution_red_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
test = compare("0_vtk_metis_distribution.vtk", "src/Decomposition/Distribution/test_data/vtk_metis_distribution_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
test = compare("0_vtk_metis_distribution_red.vtk","src/Decomposition/Distribution/test_data/vtk_metis_distribution_red_test.vtk");
BOOST_REQUIRE_EQUAL(true,test);
#endif
#endif
}
// Copy the Metis distribution
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment