Only log if file open. Open file only on first process.
Bug fix: Initialize structure with zeros, otherwise border can be some random number.
Remove test for existing pairs. particles_t%nel and the corresponding element list should already contain existing pairs only.