Hi, yes, indeed that is what I was suspecting, that is why I was trying to pass different arrays to the calling functions by avoiding to create additional ones that could cause the problem.
At last, I solved the problem by not using any additional array so that I could avoid useless allocation of memory. Now it works fine for the order of magnitude of the arrays I am using
Thank you,
all the best
cfd