dftd3 / simple-dftd3

reimplementation of the DFT-D3 program
https://dftd3.readthedocs.io
GNU Lesser General Public License v3.0
51 stars 26 forks source link

Support 2D/1D periodic boundary conditions #7

Closed awvwgk closed 2 years ago

awvwgk commented 2 years ago

Currently, only 3D periodic boundary conditions are support. To support 2D or 1D periodic boundary conditions the lattice point generation has to be adjusted to account for those cases (all other code is boundary condition agnostic):

https://github.com/awvwgk/simple-dftd3/blob/6393e1ec9102b7604991cf285852b2f8cbf80e56/src/dftd3/cutoff.f90#L53-L78