Commit 7f804364 authored by Pietro Incardona's avatar Pietro Incardona

Adding Periodic boundary conditions for vector distributed

parent 867d559c
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
###### Other
*.vtk
AUTHORS
COPYING
ChangeLog
INSTALL
NEWS
README
Makefile
Makefile.in
config.status
configure
numerics
**/.deps
**/src/config
aclocal.m4
**/autom4te.cache
example.mk
src/pdata
vtk/cart_dec
vtk/dom_box
vtk/metis_dec
.autotools
.cproject
.project
openfpm_data @ dc5e8ac1
Subproject commit 0572e97f47cfe83ca1b3f66e05c47cda85946345
Subproject commit dc5e8ac1ad2768f591b8fe79eda98720e979acdc
openfpm_devices @ 91963829
Subproject commit 52cee143052e1b6ce4bdb0d6061d0e8095829643
Subproject commit 919638297d5c92749400c69c4a271a2d742cf594
openfpm_vcluster @ 2840e1b5
Subproject commit e4f9963378be88d411b56d07afbeed05df994d9b
Subproject commit 2840e1b55c52b5006bd54250f7a87ef4b5e6eb9e
......@@ -456,11 +456,14 @@ BOOST_AUTO_TEST_CASE( vector_dist_periodic_test_use_2d )
// Boundary conditions
size_t bc[2]={PERIODIC,PERIODIC};
// factor
float factor = pow(global_v_cluster->getProcessingUnits()/2.0f,1.0f/3.0f);
// ghost
Ghost<2,float> ghost(0.05);
Ghost<2,float> ghost(0.01 / factor);
// ghost2 (a little bigger because of round off error)
Ghost<2,float> ghost2(0.050001);
Ghost<2,float> ghost2(0.05001 / factor);
// Distributed vector
vector_dist<2,float, Point_test<float>, CartDecomposition<2,float> > vd(k,box,bc,ghost);
......@@ -561,11 +564,14 @@ BOOST_AUTO_TEST_CASE( vector_dist_periodic_test_use_3d )
// Boundary conditions
size_t bc[3]={PERIODIC,PERIODIC,PERIODIC};
// factor
float factor = pow(global_v_cluster->getProcessingUnits()/2.0f,1.0f/3.0f);
// ghost
Ghost<3,float> ghost(0.05);
Ghost<3,float> ghost(0.05 / factor);
// ghost2 (a little bigger because of round off error)
Ghost<3,float> ghost2(0.05001);
Ghost<3,float> ghost2(0.05001 / factor);
// Distributed vector
vector_dist<3,float, Point_test<float>, CartDecomposition<3,float> > vd(k,box,bc,ghost);
......@@ -662,8 +668,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_periodic_test_random_walk )
// Boundary conditions
size_t bc[3]={PERIODIC,PERIODIC,PERIODIC};
// factor
float factor = pow(global_v_cluster->getProcessingUnits()/2.0f,1.0f/3.0f);
// ghost
Ghost<3,float> ghost(0.05);
Ghost<3,float> ghost(0.05 / factor);
// Distributed vector
vector_dist<3,float, Point_test<float>, CartDecomposition<3,float> > vd(k,box,bc,ghost);
......@@ -724,8 +733,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_periodic_map )
// Boundary conditions
size_t bc[3]={PERIODIC,PERIODIC,PERIODIC};
// factor
float factor = pow(global_v_cluster->getProcessingUnits()/2.0f,1.0f/3.0f);
// ghost
Ghost<3,float> ghost(0.05);
Ghost<3,float> ghost(0.05 / factor);
// Distributed vector
vector_dist<3,float, Point_test<float>, CartDecomposition<3,float> > vd(1,box,bc,ghost);
......@@ -773,8 +785,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_not_periodic_map )
// Boundary conditions
size_t bc[3]={NON_PERIODIC,NON_PERIODIC,NON_PERIODIC};
// factor
float factor = pow(global_v_cluster->getProcessingUnits()/2.0f,1.0f/3.0f);
// ghost
Ghost<3,float> ghost(0.05);
Ghost<3,float> ghost(0.05 / factor);
// Distributed vector
vector_dist<3,float, Point_test<float>, CartDecomposition<3,float> > vd(1,box,bc,ghost);
......
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