Interface to DFT codes