Skip to content
Snippets Groups Projects
Commit b46d0793 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

PBC slightly faster on orthorombic cells

Taken from the fccubic branch of @ceriottm

The "while" implementation for orthorombic cells is slighlty faster,
so I decided to enable it by default.

The "while" implementation for Tools::pbc is either slower
or equivalent, so I did not include it.

I think the reason is that in the first case one can avoid a couple
of multiplications, whereas in the second this is more difficult
since images are implemented in scaled coordinates and require
anyway two matrix*vector multiplications.
parent 99a7de04
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment