if(clumpgrad.x == clumpgrad.x or clumpgrad.y == clumpgrad.y)
{
// add the gradients
grad.x += clumpgrad.x;
grad.y += clumpgrad.y;
}
}
//
return(grad);
}
//
//
//
struct point module_potentialDerivatives_totalGradient_SOA(const runmode_param *runmode, const struct point *pImage, const struct Potential_SOA *lens, int nhalos)
if(clumpgrad.x == clumpgrad.x or clumpgrad.y == clumpgrad.y)
{
// add the gradients
grad.x += clumpgrad.x;
grad.y += clumpgrad.y;
}
}
//IACA_END;
//
return(grad);
}
struct point module_potentialDerivatives_totalGradient_SOA_AVX(const runmode_param *runmode, const struct point *pImage, const struct Potential_SOA *lens, int nhalos)