[DFTB-Plus-User] a bug in dptools-0.1

Ivan Rostov Ivan.Rostov at anu.edu.au
Fri Sep 23 07:04:01 CEST 2011


To developers of the DPTools:

there is a bug in xyz.py (lines 54-55) causing the numeration of 
elements starts from 0 rather than from 1, when doing conversion of 
coordinates from xyz to gen format with xyz2gen. To fix it, the 
subtraction of 1 must be removed, i.e.,

as is:
                 speciedict[species] = len(specienames) - 1
                 indexes[ii] = len(specienames) - 1
fix:
                 speciedict[species] = len(specienames)
                 indexes[ii] = len(specienames)


Ivan

-- 
============================================
Dr Ivan Rostov
ANU Supercomputer Facility
Leonard Huxley Bldg #56
Mills Rd
The Australian National University
Canberra ACT 0200 Australia

T: +61 2 6125 8864
F: +61 2 6125 8199
E: Ivan.Rostov at anu.edu.au
W: http://nf.anu.edu.au/

CRICOS Provider #00120C
============================================



More information about the DFTB-Plus-User mailing list