<div>Dear PWSCF users,</div>
<div>    I found a very confusing thing when I use the Berry phase method to calculate the polarization.</div>
<div>    Let us take LaAlO3 as an example. LaAlO3 bulk is cubic. However if I fix the lattice constant in the xy-plane but turn on an electric field along the z-direction (using the Berry phase method), you will find: for different c (the latttice constant along the z direction), the stress along the z direction ( i.e. sigma(3,3) ) is different. I tried a few different c values and for each c value, I relaxed all the atoms in the unit cell and checked the stress (sigma(3,3)). I found within some region, the sigma(3,3) changes the sign. However, within the same region, the total energy of the unit cell is monotonically decreasing. I expect the total energy will behave like a parabolic around the &quot;correct&quot; c value. Does that make sense when we turn on an electric field?</div>

<div>    The input file of one typical calculation is attached below.</div>
<div>    Thank you very much.</div>
<div> </div>
<div>Hanghui Chen</div>
<div>Department of Physics,</div>
<div>Yale University</div>
<div> </div>
<div> </div>
<div>&amp;CONTROL<br> calculation=&#39;relax&#39;<br> wf_collect=.true.<br> pseudo_dir = &#39;./psp&#39;<br> outdir=&#39;/home1/hc336/scratch&#39;<br> wfcdir=&#39;/home1/hc336/scratch&#39;<br> prefix=&#39;sLAO-e160-relax-0&#39;<br>
 tprnfor = .true.<br> tstress = .true.<br> disk_io=&#39;low&#39;<br> verbosity=&#39;default&#39;<br> dt=80.D0<br> forc_conv_thr=5.0D-4<br> lelfield=.true.<br> gdir=3<br> nppstr=12<br> nberrycyc=1<br>/ <br>&amp;SYSTEM <br>
 ibrav=  6 <br> celldm(1) = 7.27 <br> celldm(3) = 0.94428125 <br> nat=  5 <br> ntyp= 3 <br> ecutwfc = 30.0 <br> ecutrho = 180.0 <br> occupations=&#39;fixed&#39; <br> nosym=.true.<br>/ <br>&amp;ELECTRONS <br> diagonalization=&#39;david&#39; <br>
 mixing_beta = 0.7D0 <br> diago_david_ndim = 4 <br> startingwfc=&#39;random&#39; <br> startingpot=&#39;atomic&#39; <br> efield=0.0016 <br> conv_thr = 1.0d-9 <br>/ <br>&amp;IONS <br> ion_dynamics = &#39;bfgs&#39; <br> phase_space = &#39;full&#39; <br>
 pot_extrapolation = &#39;second_order&#39; <br> wfc_extrapolation = &#39;second_order&#39; <br>/ <br>&amp;CELL <br> cell_dynamics = &#39;damp-w&#39; <br>/ <br>ATOMIC_SPECIES <br> La  138.91 057-La-ca-nsp-hanghui.uspp.format.UPF <br>
 Al  26.98  013-Al-ca--hanghui.uspp.format.UPF <br> O   16.00  008-O-ca--vgrp.uspp.format.UPF <br>ATOMIC_POSITIONS crystal <br> La 0.00 0.00 0.00 <br> Al 0.50 0.50 0.50 <br> O  0.50 0.50 0.00 <br> O  0.00 0.50 0.50 <br> O  0.50 0.00 0.50 <br>
K_POINTS crystal <br>192<br>0 0 0 1<br>0 0 0.0833333333333333 1<br>0 0 0.166666666666667 1<br>0 0 0.25 1<br>0 0 0.333333333333333 1<br>0 0 0.416666666666667 1<br>0 0 0.5 1<br>0 0 0.583333333333333 1<br>0 0 0.666666666666667 1<br>
0 0 0.75 1<br>0 0 0.833333333333333 1<br>0 0 0.916666666666667 1<br>0 0.25 0 1<br>0 0.25 0.0833333333333333 1<br>0 0.25 0.166666666666667 1<br>0 0.25 0.25 1<br>0 0.25 0.333333333333333 1<br>0 0.25 0.416666666666667 1<br>0 0.25 0.5 1<br>
0 0.25 0.583333333333333 1<br>0 0.25 0.666666666666667 1<br>0 0.25 0.75 1<br>0 0.25 0.833333333333333 1<br>0 0.25 0.916666666666667 1<br>0 0.5 0 1<br>0 0.5 0.0833333333333333 1<br>0 0.5 0.166666666666667 1<br>0 0.5 0.25 1<br>
0 0.5 0.333333333333333 1<br>0 0.5 0.416666666666667 1<br>0 0.5 0.5 1<br>0 0.5 0.583333333333333 1<br>0 0.5 0.666666666666667 1<br>0 0.5 0.75 1<br>0 0.5 0.833333333333333 1<br>0 0.5 0.916666666666667 1<br>0 0.75 0 1<br>0 0.75 0.0833333333333333 1<br>
0 0.75 0.166666666666667 1<br>0 0.75 0.25 1<br>0 0.75 0.333333333333333 1<br>0 0.75 0.416666666666667 1<br>0 0.75 0.5 1<br>0 0.75 0.583333333333333 1<br>0 0.75 0.666666666666667 1<br>0 0.75 0.75 1<br>0 0.75 0.833333333333333 1<br>
0 0.75 0.916666666666667 1<br>0.25 0 0 1<br>0.25 0 0.0833333333333333 1<br>0.25 0 0.166666666666667 1<br>0.25 0 0.25 1<br>0.25 0 0.333333333333333 1<br>0.25 0 0.416666666666667 1<br>0.25 0 0.5 1<br>0.25 0 0.583333333333333 1<br>
0.25 0 0.666666666666667 1<br>0.25 0 0.75 1<br>0.25 0 0.833333333333333 1<br>0.25 0 0.916666666666667 1<br>0.25 0.25 0 1<br>0.25 0.25 0.0833333333333333 1<br>0.25 0.25 0.166666666666667 1<br>0.25 0.25 0.25 1<br>0.25 0.25 0.333333333333333 1<br>
0.25 0.25 0.416666666666667 1<br>0.25 0.25 0.5 1<br>0.25 0.25 0.583333333333333 1<br>0.25 0.25 0.666666666666667 1<br>0.25 0.25 0.75 1<br>0.25 0.25 0.833333333333333 1<br>0.25 0.25 0.916666666666667 1<br>0.25 0.5 0 1<br>0.25 0.5 0.0833333333333333 1<br>
0.25 0.5 0.166666666666667 1<br>0.25 0.5 0.25 1<br>0.25 0.5 0.333333333333333 1<br>0.25 0.5 0.416666666666667 1<br>0.25 0.5 0.5 1<br>0.25 0.5 0.583333333333333 1<br>0.25 0.5 0.666666666666667 1<br>0.25 0.5 0.75 1<br>0.25 0.5 0.833333333333333 1<br>
0.25 0.5 0.916666666666667 1<br>0.25 0.75 0 1<br>0.25 0.75 0.0833333333333333 1<br>0.25 0.75 0.166666666666667 1<br>0.25 0.75 0.25 1<br>0.25 0.75 0.333333333333333 1<br>0.25 0.75 0.416666666666667 1<br>0.25 0.75 0.5 1<br>
0.25 0.75 0.583333333333333 1<br>0.25 0.75 0.666666666666667 1<br>0.25 0.75 0.75 1<br>0.25 0.75 0.833333333333333 1<br>0.25 0.75 0.916666666666667 1<br>0.5 0 0 1<br>0.5 0 0.0833333333333333 1<br>0.5 0 0.166666666666667 1<br>
0.5 0 0.25 1<br>0.5 0 0.333333333333333 1<br>0.5 0 0.416666666666667 1<br>0.5 0 0.5 1<br>0.5 0 0.583333333333333 1<br>0.5 0 0.666666666666667 1<br>0.5 0 0.75 1<br>0.5 0 0.833333333333333 1<br>0.5 0 0.916666666666667 1<br>
0.5 0.25 0 1<br>0.5 0.25 0.0833333333333333 1<br>0.5 0.25 0.166666666666667 1<br>0.5 0.25 0.25 1<br>0.5 0.25 0.333333333333333 1<br>0.5 0.25 0.416666666666667 1<br>0.5 0.25 0.5 1<br>0.5 0.25 0.583333333333333 1<br>0.5 0.25 0.666666666666667 1<br>
0.5 0.25 0.75 1<br>0.5 0.25 0.833333333333333 1<br>0.5 0.25 0.916666666666667 1<br>0.5 0.5 0 1<br>0.5 0.5 0.0833333333333333 1<br>0.5 0.5 0.166666666666667 1<br>0.5 0.5 0.25 1<br>0.5 0.5 0.333333333333333 1<br>0.5 0.5 0.416666666666667 1<br>
0.5 0.5 0.5 1<br>0.5 0.5 0.583333333333333 1<br>0.5 0.5 0.666666666666667 1<br>0.5 0.5 0.75 1<br>0.5 0.5 0.833333333333333 1<br>0.5 0.5 0.916666666666667 1<br>0.5 0.75 0 1<br>0.5 0.75 0.0833333333333333 1<br>0.5 0.75 0.166666666666667 1<br>
0.5 0.75 0.25 1<br>0.5 0.75 0.333333333333333 1<br>0.5 0.75 0.416666666666667 1<br>0.5 0.75 0.5 1<br>0.5 0.75 0.583333333333333 1<br>0.5 0.75 0.666666666666667 1<br>0.5 0.75 0.75 1<br>0.5 0.75 0.833333333333333 1<br>0.5 0.75 0.916666666666667 1<br>
0.75 0 0 1<br>0.75 0 0.0833333333333333 1<br>0.75 0 0.166666666666667 1<br>0.75 0 0.25 1<br>0.75 0 0.333333333333333 1<br>0.75 0 0.416666666666667 1<br>0.75 0 0.5 1<br>0.75 0 0.583333333333333 1<br>0.75 0 0.666666666666667 1<br>
0.75 0 0.75 1<br>0.75 0 0.833333333333333 1<br>0.75 0 0.916666666666667 1<br>0.75 0.25 0 1<br>0.75 0.25 0.0833333333333333 1<br>0.75 0.25 0.166666666666667 1<br>0.75 0.25 0.25 1<br>0.75 0.25 0.333333333333333 1<br>0.75 0.25 0.416666666666667 1<br>
0.75 0.25 0.5 1<br>0.75 0.25 0.583333333333333 1<br>0.75 0.25 0.666666666666667 1<br>0.75 0.25 0.75 1<br>0.75 0.25 0.833333333333333 1<br>0.75 0.25 0.916666666666667 1<br>0.75 0.5 0 1<br>0.75 0.5 0.0833333333333333 1<br>0.75 0.5 0.166666666666667 1<br>
0.75 0.5 0.25 1<br>0.75 0.5 0.333333333333333 1<br>0.75 0.5 0.416666666666667 1<br>0.75 0.5 0.5 1<br>0.75 0.5 0.583333333333333 1<br>0.75 0.5 0.666666666666667 1<br>0.75 0.5 0.75 1<br>0.75 0.5 0.833333333333333 1<br>0.75 0.5 0.916666666666667 1<br>
0.75 0.75 0 1<br>0.75 0.75 0.0833333333333333 1<br>0.75 0.75 0.166666666666667 1<br>0.75 0.75 0.25 1<br>0.75 0.75 0.333333333333333 1<br>0.75 0.75 0.416666666666667 1<br>0.75 0.75 0.5 1<br>0.75 0.75 0.583333333333333 1<br>
0.75 0.75 0.666666666666667 1<br>0.75 0.75 0.75 1<br>0.75 0.75 0.833333333333333 1<br>0.75 0.75 0.916666666666667 1<br></div>