if readdhtypes:
                if line.strip() == "" or '[' in line: # end of dihedraltypes section
                    readdhtypes = False
                else:
                    tmp = line.split()