Dear all.
Consider the following script. It should print that the atom 1 is type 1 (charge +1) and atom 2 is type 2 (charge -1). However, it prints that both atoms are type 2 with charges -1. If I enter the second basis vector not as 0.5 but 0.49999, it is ok. However, for 0.499999 and closer to 0.5 it fails. This can be reproduced using ver. 29Aug24 and it does the same in 17Apr24. Thanks for your help,
Roman
According to the manual “By default, all created atoms are assigned the argument type as their atom type.” Therefore type in create_atoms is irrelevant if I later specify basis.
No, it should not. The ordering of atoms is not guaranteed to be as you seem to expect by the algorithm that applies positions and types in create_atoms. That algorithm is optimized to efficiently create large numbers of atoms in parallel and not a specific ordering.
All you can assume is that 4 out of the 8 atoms created are of type 1 and 4 are of type 2 and that is confirmed by the output from the set command:
Setting atom values ...
4 settings made for charge
Setting atom values ...
4 settings made for charge