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

Operators working

parent 1506debf
No related branches found
No related tags found
No related merge requests found
SUBDIRS = src images openfpm_data openfpm_io openfpm_devices openfpm_vcluster openfpm_numerics SUBDIRS = src images openfpm_data openfpm_io openfpm_devices openfpm_vcluster openfpm_numerics
bin_PROGRAMS = bin_PROGRAMS =
test_pdata:
cd src && make test
test_data:
cd openfpm_data/src && make test
test_devices:
cd openfpm_devices/src && make test
test_vcluster:
cd openfpm_vcluster/src && make test
test_io:
cd openfpm_io/src && make test
test_numerics:
cd openfpm_numerics/src && make test
test: test_devices test_data test_vcluster test_pdata test_io test_numerics
.PHONY: test_pdata test_data test_devices test_vcluster test_io test_numerics
...@@ -549,7 +549,7 @@ protected: ...@@ -549,7 +549,7 @@ protected:
*/ */
Point<dim,St> getOffset(size_t i) Point<dim,St> getOffset(size_t i)
{ {
return Point<dim,St>(gdb_ext.get(i).origin) * cd_sm.getCellBox().getP2(); return pmul(Point<dim,St>(gdb_ext.get(i).origin), cd_sm.getCellBox().getP2());
} }
/*! \brief Given a local sub-domain i with a local grid Domain + ghost return the part of the local grid that is domain /*! \brief Given a local sub-domain i with a local grid Domain + ghost return the part of the local grid that is domain
......
...@@ -23,3 +23,6 @@ libofpm_pdata_a_CFLAGS = ...@@ -23,3 +23,6 @@ libofpm_pdata_a_CFLAGS =
.cu.o : .cu.o :
$(NVCC) $(NVCCFLAGS) -o $@ -c $< $(NVCC) $(NVCCFLAGS) -o $@ -c $<
test: pdata
source $(HOME)/openfpm_vars && cd .. && mpirun -np 3 ./src/pdata && mpirun -np 4 ./src/pdata
This diff is collapsed.
This diff is collapsed.
...@@ -140,7 +140,7 @@ BOOST_AUTO_TEST_CASE( vector_dist_ghost ) ...@@ -140,7 +140,7 @@ BOOST_AUTO_TEST_CASE( vector_dist_ghost )
spacing = spacing / g_div; spacing = spacing / g_div;
// middle spacing // middle spacing
Point<2,float> m_spacing = spacing / 2; Point<2,float> m_spacing = spacing / 2.0;
// set the ghost based on the radius cut off (make just a little bit smaller than the spacing) // set the ghost based on the radius cut off (make just a little bit smaller than the spacing)
Ghost<2,float> g(spacing.get(0) - spacing .get(0) * 0.0001); Ghost<2,float> g(spacing.get(0) - spacing .get(0) * 0.0001);
......
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