Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_pdata
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argupta
openfpm_pdata
Commits
562281b1
Commit
562281b1
authored
Jul 01, 2017
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing Metis distribution test
parent
4e64da5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
20 deletions
+24
-20
CHANGELOG.md
CHANGELOG.md
+6
-7
src/Decomposition/Distribution/Distribution_unit_tests.hpp
src/Decomposition/Distribution/Distribution_unit_tests.hpp
+18
-13
No files found.
CHANGELOG.md
View file @
562281b1
...
@@ -5,17 +5,16 @@ All notable changes to this project will be documented in this file.
...
@@ -5,17 +5,16 @@ All notable changes to this project will be documented in this file.
### Added
### Added
-
Introduced getDomainIterator for Cell-list
-
Introduced getDomainIterator for Cell-list
-
Vortex in Cell example
-
Example to show how to add sensors in SPH/particle based methods (see)
-
Example to show how to add sensors in SPH/particle based methods (see)
-
Vortex in Cell example
-
Vortex in Cell example
-
Interpolation functions (see Numerics/vortex_in_cell example)
-
Interpolation functions (see Numerics/vortex_in_cell example)
-
Gray-scott 3d example (see Grid/gray_scott_3d example)
-
Gray-scott 3d example
with stencil iterator optimixation
(see Grid/gray_scott_3d example)
-
HDF5 Check point restart for vector_dist particles (see
...
)
-
HDF5 Check point restart for vector_dist particles (see
Vector/1_HDF5_save_and_load
)
-
Raw reader for grid (see ...)
-
Raw reader for grid (see ...)
-
A way to specify names for pro
eprties and select properties to write
-
A way to specify names for pro
perties and select properties to write (in PROGRESS)
-
Ghost put on grid
-
Ghost put on grid
(see Vortex in Cell example)
-
getDomainIterator stencil for faster stencil codes iterators
-
getDomainIterator stencil for faster stencil codes iterators
see (Grid/gray_scott_3d example)
-
Agebraic multigrid solvers interface for linear systems
-
Agebraic multigrid solvers interface for linear systems
(see Vortex in Cell example)
### Fixed
### Fixed
-
Installation of PETSC in case with MUMPS try without MUMPS
-
Installation of PETSC in case with MUMPS try without MUMPS
...
...
src/Decomposition/Distribution/Distribution_unit_tests.hpp
View file @
562281b1
...
@@ -91,7 +91,8 @@ BOOST_AUTO_TEST_CASE( Metis_distribution_test)
...
@@ -91,7 +91,8 @@ BOOST_AUTO_TEST_CASE( Metis_distribution_test)
BOOST_REQUIRE
(
met_dist
.
getUnbalance
()
<
0.03
);
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
;
size_t
b
=
GS_SIZE
*
GS_SIZE
*
GS_SIZE
/
5
;
...
@@ -130,27 +131,31 @@ BOOST_AUTO_TEST_CASE( Metis_distribution_test)
...
@@ -130,27 +131,31 @@ BOOST_AUTO_TEST_CASE( Metis_distribution_test)
BOOST_REQUIRE
(
met_dist
.
getUnbalance
()
<
0.06
);
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
// check that match
bool
test
;
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"
);
test
=
compare
(
"0_vtk_metis_distribution.vtk"
,
"src/Decomposition/Distribution/test_data/vtk_metis_distribution_osx_test.vtk"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
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"
);
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
);
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"
);
test
=
compare
(
"0_vtk_metis_distribution.vtk"
,
"src/Decomposition/Distribution/test_data/vtk_metis_distribution_test.vtk"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
test
=
compare
(
"0_vtk_metis_distribution_red.vtk"
,
"src/Decomposition/Distribution/test_data/vtk_metis_distribution_red_test.vtk"
);
test
=
compare
(
"0_vtk_metis_distribution_red.vtk"
,
"src/Decomposition/Distribution/test_data/vtk_metis_distribution_red_test.vtk"
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
BOOST_REQUIRE_EQUAL
(
true
,
test
);
#endif
#endif
}
// Copy the Metis distribution
// Copy the Metis distribution
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment