<div>Dear 
<span>Elaheh</span>,</div><div><br></div><div>Printing these matrices for k-points is only available from version 8.0. Unfortunately previous versions silently ignore the keyword in the case of k-point simulations. <br></div><div><br></div><div>But be aware that to compute the band structure you will need the overlap matrix as well, not only the Hamiltonian.</div><div><br></div><div>Cheers,</div><div>Fabian<br></div><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Thursday, 3 December 2020 at 15:01:49 UTC+1 akho...@gmail.com wrote:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">Dear Fabian,</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">thank you for your
explanation. I tried to get KS matrix using the method you suggested as well, but
I wasn't able to do that. I used the following input, but KS matrix files don't
get printed. Is there any obvious mishabs in the file? </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">I am using cp2k 7.1 and
cp2k.popt.</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">&GLOBAL</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>   </span>PROJECT WS2</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>   </span>RUN_TYPE ENERGY</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>   </span>PRINT_LEVEL HIGH</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">&END GLOBAL</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"> </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">&FORCE_EVAL</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>   </span>METHOD Quickstep</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>   </span>&DFT</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>BASIS_SET_FILE_NAME<span>  </span>BASIS_MOLOPT</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>POTENTIAL_FILE_NAME<span>  </span>POTENTIAL</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"> </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&POISSON</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>PERIODIC XYZ</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&END POISSON</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&QS</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>EXTRAPOLATION USE_GUESS ! required for
K-Point sampling</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&END QS</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&SCF</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>SCF_GUESS ATOMIC</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>EPS_SCF 1.0E-6</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>MAX_SCF 10</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"> </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>ADDED_MOS 2</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>&DIAGONALIZATION</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>ALGORITHM STANDARD</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>EPS_ADAPT 0.01</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>&END DIAGONALIZATION</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>&SMEAR<span>  </span>ON</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>METHOD FERMI_DIRAC</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>ELECTRONIC_TEMPERATURE [K] 300</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>&END SMEAR</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"> </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>&MIXING</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>METHOD BROYDEN_MIXING</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>ALPHA 0.2</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>BETA 1.5</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>NBROYDEN 8</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>&END MIXING</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"> </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>  </span><span>    </span>&END SCF</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&XC</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>&XC_FUNCTIONAL PBE</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>&END XC_FUNCTIONAL</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&END XC</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&KPOINTS</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>SCHEME MONKHORST-PACK 6 6 1</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>SYMMETRY OFF</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>WAVEFUNCTIONS REAL</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>FULL_GRID .TRUE.</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>PARALLEL_GROUP_SIZE<span>  </span>0</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span><span> </span>VERBOSE .TRUE.</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&END KPOINTS</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&PRINT</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>&BAND_STRUCTURE</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>ADDED_MOS 2</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>FILE_NAME WS2.bs</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>&KPOINT_SET</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>               </span>UNITS B_VECTOR</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>               </span>SPECIAL_POINT 0 0 0<span>   </span>#GAMA</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>               </span>SPECIAL_POINT 0.5 0 0<span>   </span>#M</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>               </span>NPOINTS 20</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span>&END</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>&END BAND_STRUCTURE</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span><span> </span>&KS_CSR_WRITE
HIGH</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span><span>    </span>FILENAME
./KS.dat</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span><span> </span>&END
KS_CSR_WRITE</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&END PRINT</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>   </span>&END DFT</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"> </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>   </span>&SUBSYS</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&CELL</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>A [angstrom] 2.727930196922421<span>  </span>-1.574726113675518<span>                   </span>0</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span></span><span lang="NL-BE" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">B
[angstrom] 2.727923196921916<span>  
</span>1.574726113675518<span>                  
</span>0</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="NL-BE" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>C [angstrom] 0<span>                   </span>0<span>                                  </span>15</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="NL-BE" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>PERIODIC XY</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="NL-BE" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span></span><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">MULTIPLE_UNIT_CELL 1 1 1</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&END CELL</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&TOPOLOGY</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>MULTIPLE_UNIT_CELL 1 1 1</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&END TOPOLOGY</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&COORD</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span><span> </span>S<span>  </span>1.818565911277700<span>                  </span>0<span>   </span>0 </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span><span> </span>W<span>                 </span>0<span>                   </span>0<span>   </span>1.5693444632870293 </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>            </span><span> </span>S
1.818565911277700<span>                  
</span>0<span>   </span>3.138691180574223 </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&END</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&KIND W</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>ELEMENT W</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>BASIS_SET SZV-MOLOPT-SR-GTH</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>POTENTIAL GTH-PBE</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&END KIND</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&KIND S</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>ELEMENT S</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>BASIS_SET SZV-MOLOPT-SR-GTH</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>         </span>POTENTIAL GTH-PBE</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>      </span>&END KIND</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"><span>   </span>&END SUBSYS</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt"> </span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">&END FORCE_EVAL</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">Many thanks,</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm 0cm 12pt"><span lang="EN" style="font-family:"Helvetica",sans-serif;font-size:10.5pt">Elaheh</span></p><font face="Times New Roman" size="3">

</font><p style="margin:0cm"><span lang="EN"><font face="Gill Sans MT" size="3"> </font></span></p><font face="Times New Roman" size="3">

</font><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Thursday, December 3, 2020 at 1:57:18 PM UTC+1 <a href data-email-masked rel="nofollow">fa...@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Dear 
Elaheh,</div><div><br></div><div>I don't know how to print the indices easily. But you can use DFT%PRINT%KS_CSR_WRITE and 
DFT%PRINT%S_CSR_WRITE to write the Hamiltonain and overlap matrices to the disk. If you use k-points a file for each k-point is created in the ordering given in the output file.</div><div><br></div><div>Cheers,</div><div>Fabian<br></div><br><div class="gmail_quote"><div dir="auto" class="gmail_attr">On Wednesday, 2 December 2020 at 12:07:10 UTC+1 <a rel="nofollow">akho...@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hello,</div><div>I have extracted the Kohn Sham Hamiltonian using   &AO_MATRICES HIGH ----> KOHN_SHAM_MATRIX .TRUE. , in order to plot the band structure myself using the Hamiltonian matrix. However, the format of the output is not clear to me. I believe each block of Hamiltonian corresponds to the interaction of the primary cell with a specific neigboring cell. but it is not specified in the output file which block is related to which neighboring cell, i.e. what are the cell indices corresponding to each block. Is there any way that I can access the cell indices related to each Hamiltonian block?</div><div>I would greatly appreciate your help.</div><div>kind regards,</div><div>Elaheh Akhoundi</div></blockquote></div></blockquote></div></blockquote></div>