Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Half neighbourlist output wrong #374

Open
agoscinski opened this issue Aug 14, 2021 · 0 comments
Open

Half neighbourlist output wrong #374

agoscinski opened this issue Aug 14, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@agoscinski
Copy link
Contributor

agoscinski commented Aug 14, 2021

I don't get symmetric forces for dimers (pbc set to false).
Results were obtained on branch lammps_preparations running file examples/cpp/krr_model.cc with input model examples/h2_model.json" and input structure reference_data/inputs/h2.json`

Output full neighbour list

manager->offsets
2, 
0, 2, 4, 

manager->nb_neigh
2, 
2, 2, 

manager->atom_tag_list
0, 1, 
0, 1, 1, 0, 

manager->neighbours_cluster_index

neighbor list without ghosts
center atom tag 0, cluster index 0
  pair (0, 1): global index 1, pair dist 1, direction vector 1 0 0
center atom tag 1, cluster index 1
  pair (1, 0): global index 3, pair dist 1, direction vector -1  0  0

neighbor list with ghost
center atom tag 0, cluster index 0
  pair (0, 0): global index 0, pair dist 0, direction vector 0 0 0
  pair (0, 1): global index 1, pair dist 1, direction vector 1 0 0
center atom tag 1, cluster index 1
  pair (1, 1): global index 2, pair dist 0, direction vector 0 0 0
  pair (1, 0): global index 3, pair dist 1, direction vector -1  0  0

-0.0314014
ee shape: 1, 1
ff shape: 2, 3
ff 
-1.72423        0        0
 1.72423        0        0

Output half neighbour list

manager->offsets
2, 
0, 2, 3, 

manager->nb_neigh
2, 
2, 1, 

manager->atom_tag_list
0, 1, 
0, 1, 1, 

manager->neighbours_cluster_index

neighbor list without ghosts
center atom tag 0, cluster index 0
  pair (0, 1): global index 1, pair dist 1, direction vector 1 0 0
center atom tag 1, cluster index 1

neighbor list with ghost
center atom tag 0, cluster index 0
  pair (0, 0): global index 0, pair dist 0, direction vector 0 0 0
  pair (0, 1): global index 1, pair dist 1, direction vector 1 0 0
center atom tag 1, cluster index 1
  pair (1, 1): global index 2, pair dist 0, direction vector 0 0 0

-0.0314014
ee shape: 1, 1
ff shape: 2, 3
ff 
-0.862114         0         0
  1.72423         0         0

Not urgent for the lammps integration, since we can use the full one.

@agoscinski agoscinski added the bug Something isn't working label Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant