Skip to content
Snippets Groups Projects
  • Giovanni Bussi's avatar
    b46d0793
    PBC slightly faster on orthorombic cells · b46d0793
    Giovanni Bussi authored
    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.
    b46d0793
    History
    PBC slightly faster on orthorombic cells
    Giovanni Bussi authored
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.