Skip to content
Snippets Groups Projects
Commit b2fc86e2 authored by yaskovet's avatar yaskovet
Browse files

Merge branch 'master' of github.com:mosaic-group/openfpm_numerics

parents c9433fb4 3fdb2e4a
No related branches found
No related tags found
No related merge requests found
......@@ -131,11 +131,13 @@ public:
for (int i = 0 ; i < keys.size() ; i++)
{
size_t xqK = keys.get(i);
int real_particle=(xqK-initialParticleSize)/(2.*nCount);
if(real_particle<0)
{
real_particle=xqK;
}
int difference = static_cast<int>(xqK) - static_cast<int>(initialParticleSize);
int real_particle;
if (std::signbit(difference)) {
real_particle = xqK;
} else {
real_particle = difference / (2 * nCount);
}
auto found=nMap.find(real_particle);
if(found!=nMap.end()){
accCalcKernels.get(found->second)+=calcKernels.get(kerOff+i);
......
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