for i in range(max(types)+1):
        for k in range(i, max(types)+1):
            if (hadress or adress):
                interaction.setPotentialAT(type1=i, type2=k, potential=pot)
            else: