Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
argupta
openfpm_pdata
Commits
562281b1
Commit
562281b1
authored
7 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing Metis distribution test
parent
4e64da5d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+6
-7
6 additions, 7 deletions
CHANGELOG.md
src/Decomposition/Distribution/Distribution_unit_tests.hpp
+18
-13
18 additions, 13 deletions
src/Decomposition/Distribution/Distribution_unit_tests.hpp
with
24 additions
and
20 deletions
CHANGELOG.md
+
6
−
7
View file @
562281b1
...
...
@@ -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 pro
e
prties 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 prop
e
rties 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
...
...
This diff is collapsed.
Click to expand it.
src/Decomposition/Distribution/Distribution_unit_tests.hpp
+
18
−
13
View file @
562281b1
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment