Check all clusters in cell when building neighbor lists because ghost clusters may not be sorted

Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
Rafael Ravedutti
2022-02-01 20:16:04 +01:00
parent 4a5216a177
commit 85e7954932
4 changed files with 77 additions and 46 deletions

View File

@@ -32,6 +32,11 @@
#ifndef ABS
#define ABS(a) ((a) >= 0 ? (a) : -(a))
#endif
#ifdef DEBUG
#define DEBUG_MESSAGE(msg) printf
#else
#define DEBUG_MESSAGE(msg)
#endif
#define FF_LJ 0
#define FF_EAM 1