main.cpp:153:24: error: ‘getExpr’ was not declared in this scope
auto p0_e = getExpr(p0);
^
main.cpp:156:45: error: no match for ‘operator-’ (operand types are ‘vector_dist_expression<4294967295u, vector_dist<3u, double, aggregate<float, float, Point<3u, double>, Point<3u, double> > > >’ and ‘Point<3u, double>’)
auto expr1 = 1.0/2.0/sqrt(M_PI)*exp(-(v2POS-p0)*(v2POS-p0)/2.0);
^
In file included from /usr/local/openfpm_data/include/Space/Shape/Point.hpp:12:0,
from /usr/local/openfpm_data/include/Space/Shape/Sphere.hpp:11,
from /usr/local/openfpm_data/include/Space/Shape/Box.hpp:5,
from /usr/local/openfpm_data/include/Grid/grid_sm.hpp:10,
from /usr/local/openfpm_data/include/Grid/map_grid.hpp:39,
from /usr/local/openfpm_data/include/Vector/map_vector.hpp:22,
from /usr/local/openfpm_io/include/HDF5_XdmfWriter/HDF5_XdmfWriter_util.hpp:12,
from /usr/local/openfpm_io/include/HDF5_XdmfWriter/HDF5_XdmfWriter_point_set.hpp:11,
from /usr/local/openfpm_io/include/HDF5_XdmfWriter/HDF5_XdmfWriter.hpp:21,
from /usr/local/openfpm_pdata/include/Vector/vector_dist.hpp:11,
auto expr1 = 1.0/2.0/sqrt(M_PI)*exp(-(v2POS-p0)*(v2POS-p0)/2.0);
^
main.cpp:156:56: error: no match for ‘operator-’ (operand types are ‘vector_dist_expression<4294967295u, vector_dist<3u, double, aggregate<float, float, Point<3u, double>, Point<3u, double> > > >’ and ‘Point<3u, double>’)
auto expr1 = 1.0/2.0/sqrt(M_PI)*exp(-(v2POS-p0)*(v2POS-p0)/2.0);
^
In file included from /usr/local/openfpm_data/include/Space/Shape/Point.hpp:12:0,
from /usr/local/openfpm_data/include/Space/Shape/Sphere.hpp:11,
from /usr/local/openfpm_data/include/Space/Shape/Box.hpp:5,
from /usr/local/openfpm_data/include/Grid/grid_sm.hpp:10,
from /usr/local/openfpm_data/include/Grid/map_grid.hpp:39,
from /usr/local/openfpm_data/include/Vector/map_vector.hpp:22,
from /usr/local/openfpm_io/include/HDF5_XdmfWriter/HDF5_XdmfWriter_util.hpp:12,
from /usr/local/openfpm_io/include/HDF5_XdmfWriter/HDF5_XdmfWriter_point_set.hpp:11,
from /usr/local/openfpm_io/include/HDF5_XdmfWriter/HDF5_XdmfWriter.hpp:21,
from /usr/local/openfpm_pdata/include/Vector/vector_dist.hpp:11,