<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Dear Kenan,</p>
    <p>from your output it is clear that the disentanglement step was
      not successful in minimising Omega_I. This usually means that
      either the initial projections aren't good or that the energy
      windows you specified are not good. Also you are not minimising
      Omega since you have specified num_iter = 0. <br>
    </p>
    <p>A possible solution could be to delete the dis_froz_max and
      dis_froz_min from the input (these are advanced keywords that
      should be used only if you know exactly what you are doing) and
      play with dis_win_max instead (dis_win_max = 2 to start with).
      Also you want num_iter > 0 (ie 1000).<br>
    </p>
    <p>Having said that, for 2D materials it is usually harder to find
      the correct parameters for a good interpolation of the band
      structure. <br>
    </p>
    <p>Hope this helps,</p>
    <p>Valerio<br>
    </p>
    <div class="moz-cite-prefix">On 14/02/2019 16:08, Kenan Song wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMbJXZ-uG_dCN-7yNmSOU6pBL+CRqL7tGrpYwEGUTJvOCpMt0g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">Dear All,
                    <div><br>
                    </div>
                    <div>I am a new user in Wannier90 code.</div>
                    <div><br>
                    </div>
                    <div>I am currently using Wannier90 (version 2.1.0)
                      to compute the Hamiltonian matrix based on
                      maximally localised wannier basis. I overlap the
                      band structure calculated by wannier90 code with
                      that calculated by VASP code (version 5.4.1). They
                      match well according to me.</div>
                    <div><br>
                    </div>
                    <div>However, I also check 'wannier90.wout' file and
                      find the spread of the wannier function is very
                      large (maximum value reaches 104.34329562) while
                      the lattice constant is just 2.5 Angstroms. I am
                      not sure whether the hamiltonian I obtained is
                      really reliable or not. I have been trying to
                      modify the frozen energy window and number of
                      disentanglement iteration many times but the
                      spread of the wannier function is till very large.</div>
                    <div><br>
                    </div>
                    <div>I paste my 'wannier90.win' and 'wannier90.wout'
                      files below. Would anyone please provide any
                      suggestion on how to modify the input parameter so
                      as to reduce the spread of the wannier function?
                      Thank you very much in advance.</div>
                    <div><br>
                    </div>
                    <div>Kind regards,</div>
                    <div><br>
                    </div>
                    <div>Kenan Song</div>
                    <div><br>
                    </div>
                    <div>----------------------wannier90.win
                      file-------------------</div>
                    <div>
                      <div>num_wann = 70 </div>
                      <div>num_bands = 96</div>
                      <div>dis_num_iter = 2500</div>
                      <div>num_iter = 0</div>
                      <div>guiding_centres = .true.</div>
                      <div>dis_froz_min = -1.0</div>
                      <div>dis_froz_max = 1.0</div>
                      <div>spinors = .true.</div>
                      <div>write_hr = true</div>
                      <div>write_tb = true</div>
                      <div>begin projections</div>
                      <div>C  : s; px; py; pz</div>
                      <div>Co : s; px; py; pz; dz2; dxz; dyz; dxy;
                        dx2-y2</div>
                      <div>end projections</div>
                      <div>begin unit_cell_cart</div>
                      <div>     2.5070000     0.0000000     0.0000000</div>
                      <div>    -1.2535000     2.1711257     0.0000000</div>
                      <div>     0.0000000     0.0000000    32.0190010</div>
                      <div>end unit_cell_cart</div>
                      <div>begin atoms_cart</div>
                      <div>C        1.2535000     0.7237086   
                         8.1691010</div>
                      <div>C        0.0000000     0.0000000   
                         8.1691010</div>
                      <div>Co       1.2535000     0.7237086   
                         2.2983135</div>
                      <div>Co      -0.0000000     1.4474171   
                         4.2147650</div>
                      <div>Co       1.2535000     0.7237086   
                         6.1691010</div>
                      <div>end atoms_cart</div>
                      <div>bands_plot = .true.</div>
                      <div>bands_num_points = 200</div>
                      <div>begin kpoint_path</div>
                      <div>K6 -0.3333333333  0.6666666667  0.0000000000
                        K1 0.3333333333  0.3333333333  0.0000000000</div>
                      <div>K1 0.3333333333  0.3333333333  0.0000000000
                        K2 0.6666666667 -0.3333333333  0.0000000000</div>
                      <div>end kpoint_path</div>
                      <div>bands_plot_format = gnuplot xmgrace</div>
                      <div>mp_grid =    41    41     1</div>
                      <div>begin kpoints</div>
                      <div>      0.000000000000      0.000000000000     
                        0.000000000000</div>
                    </div>
                    <div>...</div>
                    <div>...</div>
                    <div>...</div>
                    <div>end kpoints<br>
                    </div>
                    <div><br>
                    </div>
                    <div>----------------------Part of my wannier90.wout
                      file-------------------<br>
                    </div>
                    <div>
                      <div>                   Extraction of
                        optimally-connected subspace                  </div>
                      <div>                 
                         ------------------------------------------     
                                    </div>
                      <div> +---------------------------------------------------------------------+<--
                        DIS</div>
                      <div> |  Iter     Omega_I(i-1)      Omega_I(i)   
                          Delta (frac.)    Time   |<-- DIS</div>
                      <div> +---------------------------------------------------------------------+<--
                        DIS</div>
                      <div>       1     595.91705408     483.75441668   
                           2.319E-01    208.00    <-- DIS</div>
                      <div>       2     532.30535215     436.09257721   
                           2.206E-01    251.71    <-- DIS</div>
                    </div>
                    <div>...</div>
                    <div>...</div>
                    <div>...</div>
                    <div>
                      <div>    2489     114.28544069     114.28050761   
                           4.317E-05  ********    <-- DIS</div>
                      <div>    2490     114.28262958     114.27770589   
                           4.309E-05  ********    <-- DIS</div>
                      <div>    2491     114.27982382     114.27490954   
                           4.300E-05  ********    <-- DIS</div>
                      <div>    2492     114.27702343     114.27211855   
                           4.292E-05  ********    <-- DIS</div>
                      <div>    2493     114.27422841     114.26933293   
                           4.284E-05  ********    <-- DIS</div>
                      <div>    2494     114.27143875     114.26655269   
                           4.276E-05  ********    <-- DIS</div>
                      <div>    2495     114.26865447     114.26377782   
                           4.268E-05  ********    <-- DIS</div>
                      <div>    2496     114.26587556     114.26100832   
                           4.260E-05  ********    <-- DIS</div>
                      <div>    2497     114.26310202     114.25824420   
                           4.252E-05  ********    <-- DIS</div>
                      <div>    2498     114.26033385     114.25548546   
                           4.243E-05  ********    <-- DIS</div>
                      <div>    2499     114.25757106     114.25273210   
                           4.235E-05  ********    <-- DIS</div>
                      <div>    2500     114.25481365     114.24998411   
                           4.227E-05  ********    <-- DIS</div>
                      <div><br>
                      </div>
                      <div>     <<< Warning: Maximum number of
                        disentanglement iterations reached >>></div>
                      <div>          <<< Disentanglement
                        convergence criteria not satisfied >>></div>
                    </div>
                    <div>
                      <div>      0     0.154E+04     0.0000000000   
                         1541.8617455776   ********  <-- CONV</div>
                      <div>        O_D=    213.0503351 O_OD= 
                         1214.5614263 O_TOT=   1541.8617456 <-- SPRD</div>
                      <div> ------------------------------------------------------------------------------</div>
                      <div> Final State</div>
                      <div>  WF centre and spread    1  (  1.253641, 
                        0.710709,  8.210565 )    19.86392746</div>
                      <div>  WF centre and spread    2  (  1.253487, 
                        0.725644,  8.493223 )     3.07215178</div>
                      <div>  WF centre and spread    3  (  1.248848, 
                        0.569849,  8.420361 )    29.67428907</div>
                      <div>  WF centre and spread    4  (  1.258844, 
                        0.780699,  8.400786 )    26.28325739</div>
                      <div>  WF centre and spread    5  (  0.000198,
                        -0.002061,  8.185572 )    13.09585655</div>
                      <div>  WF centre and spread    6  ( -0.000067,
                        -0.002226,  8.331007 )     1.77821204</div>
                      <div>  WF centre and spread    7  ( -0.006058, 
                        0.068986,  8.457730 )    29.60907905</div>
                      <div>  WF centre and spread    8  (  0.006021, 
                        0.044562,  8.435251 )    26.56375802</div>
                      <div>  WF centre and spread    9  (  1.255893, 
                        0.705541,  1.533851 )    38.64801395</div>
                      <div>  WF centre and spread   10  (  1.253969, 
                        0.730238,  1.506962 )    12.81445193</div>
                      <div>  WF centre and spread   11  (  1.302439, 
                        0.850862,  1.730220 )   104.34329562</div>
                      <div>  WF centre and spread   12  (  1.303922, 
                        0.648824,  1.822292 )    66.13877206</div>
                      <div>  WF centre and spread   13  (  1.253480, 
                        0.723347,  2.264538 )     0.67073375</div>
                      <div>  WF centre and spread   14  (  1.253601, 
                        0.724636,  2.280547 )     0.91745878</div>
                      <div>  WF centre and spread   15  (  1.253371, 
                        0.723355,  2.280107 )     0.82130574</div>
                      <div>  WF centre and spread   16  (  1.253469, 
                        0.723858,  2.295381 )     0.69954178</div>
                      <div>  WF centre and spread   17  (  1.253471, 
                        0.723915,  2.295509 )     0.82313892</div>
                      <div>  WF centre and spread   18  (  0.000868, 
                        1.439152,  4.756862 )    30.00197416</div>
                      <div>  WF centre and spread   19  (  0.000403, 
                        1.451803,  3.540187 )    27.98622038</div>
                      <div>  WF centre and spread   20  ( -0.013100, 
                        1.765854,  4.191920 )    88.06070209</div>
                      <div>  WF centre and spread   21  ( -0.029792, 
                        0.979549,  4.144471 )    68.77563194</div>
                      <div>  WF centre and spread   22  (  0.000019, 
                        1.447714,  4.212466 )     0.56314281</div>
                      <div>  WF centre and spread   23  (  0.000069, 
                        1.446618,  4.211540 )     1.11696392</div>
                      <div>  WF centre and spread   24  (  0.000002, 
                        1.447527,  4.211879 )     0.85938352</div>
                      <div>  WF centre and spread   25  ( -0.000017, 
                        1.448795,  4.215030 )     0.66506000</div>
                      <div>  WF centre and spread   26  ( -0.000007, 
                        1.445362,  4.215033 )     0.74535504</div>
                      <div>  WF centre and spread   27  (  1.248570, 
                        0.734404,  5.311996 )    40.47711164</div>
                      <div>  WF centre and spread   28  (  1.253802, 
                        0.740370,  6.604945 )    22.02727635</div>
                      <div>  WF centre and spread   29  (  1.279873, 
                        0.866005,  6.212518 )    59.96319431</div>
                      <div>  WF centre and spread   30  (  1.249473, 
                        0.589377,  6.241871 )    45.79654817</div>
                      <div>  WF centre and spread   31  (  1.253513, 
                        0.723527,  6.164161 )     0.54026209</div>
                      <div>  WF centre and spread   32  (  1.253505, 
                        0.723663,  6.171451 )     0.74596024</div>
                      <div>  WF centre and spread   33  (  1.253492, 
                        0.724284,  6.170582 )     0.65458311</div>
                      <div>  WF centre and spread   34  (  1.253483, 
                        0.722504,  6.168206 )     0.58434787</div>
                      <div>  WF centre and spread   35  (  1.253556, 
                        0.725393,  6.168468 )     0.67063012</div>
                      <div>  WF centre and spread   36  (  1.253064, 
                        0.702688,  8.229122 )    19.57480721</div>
                      <div>  WF centre and spread   37  (  1.253492, 
                        0.725775,  8.488203 )     3.05114946</div>
                      <div>  WF centre and spread   38  (  1.257244, 
                        0.552900,  8.559319 )    27.77228747</div>
                      <div>  WF centre and spread   39  (  1.251125, 
                        0.788770,  8.530872 )    24.25973470</div>
                      <div>  WF centre and spread   40  ( -0.000309,
                        -0.007620,  8.227813 )    13.66626960</div>
                      <div>  WF centre and spread   41  (  0.000029,
                        -0.002468,  8.329941 )     1.88982233</div>
                      <div>  WF centre and spread   42  (  0.002471, 
                        0.086331,  8.584302 )    27.54847852</div>
                      <div>  WF centre and spread   43  ( -0.002601, 
                        0.025751,  8.559167 )    24.39421614</div>
                      <div>  WF centre and spread   44  (  1.256205, 
                        0.719572,  1.230760 )    33.55328559</div>
                      <div>  WF centre and spread   45  (  1.253738, 
                        0.735281,  1.463102 )    12.86609182</div>
                      <div>  WF centre and spread   46  (  1.210342, 
                        0.557715,  1.381038 )    99.99019380</div>
                      <div>  WF centre and spread   47  (  1.277723, 
                        0.842908,  1.513278 )    65.25944318</div>
                      <div>  WF centre and spread   48  (  1.253508, 
                        0.723482,  2.265108 )     0.76754791</div>
                      <div>  WF centre and spread   49  (  1.253466, 
                        0.725351,  2.278298 )     1.02088181</div>
                      <div>  WF centre and spread   50  (  1.253494, 
                        0.722252,  2.277226 )     0.90000626</div>
                      <div>  WF centre and spread   51  (  1.253426, 
                        0.724143,  2.294948 )     0.79873648</div>
                      <div>  WF centre and spread   52  (  1.253670, 
                        0.723827,  2.294942 )     0.94449496</div>
                      <div>  WF centre and spread   53  (  0.000331, 
                        1.431161,  4.581740 )    27.76778812</div>
                      <div>  WF centre and spread   54  ( -0.000378, 
                        1.466914,  3.346653 )    24.81610534</div>
                      <div>  WF centre and spread   55  (  0.004336, 
                        1.841127,  3.835065 )    92.45155299</div>
                      <div>  WF centre and spread   56  ( -0.001279, 
                        0.849492,  3.825633 )    73.08640096</div>
                      <div>  WF centre and spread   57  ( -0.000001, 
                        1.447665,  4.211354 )     0.59750354</div>
                      <div>  WF centre and spread   58  (  0.000130, 
                        1.444950,  4.210183 )     1.26388286</div>
                      <div>  WF centre and spread   59  ( -0.000017, 
                        1.448966,  4.210545 )     0.95144412</div>
                      <div>  WF centre and spread   60  ( -0.000045, 
                        1.450557,  4.213674 )     0.77018921</div>
                      <div>  WF centre and spread   61  (  0.000134, 
                        1.442919,  4.213745 )     0.87059505</div>
                      <div>  WF centre and spread   62  (  1.250527, 
                        0.744346,  5.301990 )    50.07966837</div>
                      <div>  WF centre and spread   63  (  1.253229, 
                        0.749786,  6.585936 )    22.31465994</div>
                      <div>  WF centre and spread   64  (  1.225545, 
                        0.886592,  6.196968 )    67.90887178</div>
                      <div>  WF centre and spread   65  (  1.257413, 
                        0.572844,  6.222334 )    51.18972483</div>
                      <div>  WF centre and spread   66  (  1.253490, 
                        0.723571,  6.162633 )     0.57001829</div>
                      <div>  WF centre and spread   67  (  1.253494, 
                        0.723256,  6.171068 )     0.80484716</div>
                      <div>  WF centre and spread   68  (  1.253502, 
                        0.724474,  6.170269 )     0.70136089</div>
                      <div>  WF centre and spread   69  (  1.253470, 
                        0.721758,  6.167183 )     0.64741966</div>
                      <div>  WF centre and spread   70  (  1.253630, 
                        0.726026,  6.167333 )     0.76067354</div>
                      <div>  Sum of centres and spreads ( 55.193839,
                        57.615703,354.159234 )  1541.86174552</div>
                      <div><br>
                      </div>
                      <div>         Spreads (Ang^2)       Omega I     
                        =   114.249984108</div>
                      <div>        ================       Omega D     
                        =   213.050335126</div>
                      <div>                               Omega OD   
                         =  1214.561426344</div>
                      <div>    Final Spread (Ang^2)       Omega Total 
                        =  1541.861745578</div>
                      <div> ------------------------------------------------------------------------------</div>
                      <div> Time for wannierise            2.497 (sec)</div>
                      <div><br>
                      </div>
                      <div> Writing checkpoint file wannier90.chk...
                        done</div>
                      <div><br>
                      </div>
                      <div> *---------------------------------------------------------------------------*</div>
                      <div> |                               PLOTTING   
                                                        |</div>
                      <div> *---------------------------------------------------------------------------*</div>
                      <div><br>
                      </div>
                      <div><br>
                      </div>
                      <div> Calculating interpolated band-structure</div>
                      <div><br>
                      </div>
                      <div> Time to calculate interpolated band
                        structure       8.073 (sec)</div>
                      <div><br>
                      </div>
                      <div> Exiting.......</div>
                      <div> wrong irdist_ws</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <div>
        <hr></div>
      <font size="1" face="Arial">This message and its contents,
        including attachments are intended solely for the original
        recipient. If you are not the intended recipient or have
        received this message in error, please notify me immediately and
        delete this message from your computer system. Any unauthorized
        use or distribution is prohibited. Please consider the
        environment before printing this email.</font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Wannier mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Wannier@lists.quantum-espresso.org">Wannier@lists.quantum-espresso.org</a>
<a class="moz-txt-link-freetext" href="https://lists.quantum-espresso.org/mailman/listinfo/wannier">https://lists.quantum-espresso.org/mailman/listinfo/wannier</a>
</pre>
    </blockquote>
  </body>
</html>