Fix bug in DistributionDebugWriter
The DistributionDebugWriter needs consider the special way of storing distribution with EsotericTwist. Also some populations are stored at the neighboring node, not the node itself. Previously we ignored this, which led to an incorrect output in the DistributionDebugWriter.
Additionally this merge adds the direction to the names of the populations in the vtk output.
To be able to use some functions from KernelUtilities.h in DistributionDebugWriter.cpp, I needed to move getNodeIndex()
into a separate file. Otherwise the CUDA variables threadIdx
, blockIdx
and gridDim
will cause compilation errors in .cpp files which include KernelUtilities.h.