I share the traceback :
B2J version 0.9.12.17
Copyright (C) 2018-2025 TB2J group.
This software is distributed with the 2-Clause BSD License, without any warranty. For more details, see the LICENSE file delivered with this software.
Reading atomic structure from file /home/st10/C/Calc/Calcul_new/TB2J/POSCAR.
Reading Wannier90 hamiltonian: spin up.
Reading Wannier90 hamiltonian: spin down.
Starting to calculate exchange.
Traceback (most recent call last):
File "/home/st0/miniconda3/envs/magenv/lib/python3.10/site-packages/TB2J/scripts//wann2J.py", line 101, in <module>
run_wann2J()
File "/home/stage10/miniconda3/envs/magenv/lib/python3.10/site-packages/TB2J/scripts//wann2J.py", line 72, in run_wann2J
gen_exchange(
File "/home/stage10/miniconda3/envs/magenv/lib/python3.10/site-packages/TB2J/interfaces/wannier90_interface.py", line 43, in __init__
super().__init__(atoms, tbmodels, basis, colinear=colinear, **kwargs)
File "/home/st0/miniconda3/envs/magenv/lib/python3.10/site-packages/TB2J/interfaces/manager.py", line 11, in __init__
exchange = ExchangeClass(tbmodels=models, atoms=atoms, basis=basis, **kwargs)
File "/home/stage10/miniconda3/envs/magenv/lib/python3.10/site-packages/TB2J/exchange.py", line 29, in __init__
self.set_tbmodels(tbmodels)
File "/home/stminiconda3/envs/magenv/lib/python3.10/site-packages/TB2J/exchangeCL2.py", line 26, in set_tbmodels
self.Gup = TBGreen(
File "/home/s10/miniconda3/envs/magenv/lib/python3.10/site-packages/TB2J/green.py", line 133, in __init__
self._prepare_eigen()
File "/home/s/miniconda3/envs/magenv/lib/python3.10/site-packages/TB2J/green.py", line 234, in _prepare_eigen
for ik, result in enumerate(results):
File "/home/miniconda3/envs/magenv/lib/python3.10/site-packages/HamiltonIO/wannier/wannier_hamiltonian.py", line 219, in HSE_k
H = self.gen_ham(tuple(kpt), convention=convention)
File "/home/sminiconda3/envs/magenv/lib/python3.10/site-packages/HamiltonIO/wannier/wannier_hamiltonian.py", line 199, in gen_ham
phase = np.exp(self.R2kfactor * np.dot(k, R)) / self.R_degens[iR]
IndexError: index 55 is out of bounds for axis 0 with size 55