First, this always turns on the dipole-correction when there is a user-defined E-field.
This is required for the correct physics.
So as for physical correctness there is no problem.
I have attached a patch that defaults to true, but allows the user to specify false.
In the latter case siesta prints an error:
efield: WARNING!
efield: SlabDipoleCorrection is .false. with an external efield.
efield: For correct physics SlabDipoleCorrection should be .true.
efield: This is only for backwards compatibility!
Thanks for the report.
First, this always turns on the dipole-correction when there is a user-defined E-field.
This is required for the correct physics.
So as for physical correctness there is no problem.
However, this was not the case for previous siesta versions (4.0 and before). /bugs.launchpad .net/siesta/ +bug/1593725
See https:/
I have attached a patch that defaults to true, but allows the user to specify false.
In the latter case siesta prints an error:
efield: WARNING! ction is .false. with an external efield. ction should be .true.
efield: SlabDipoleCorre
efield: For correct physics SlabDipoleCorre
efield: This is only for backwards compatibility!