Commit 0969f525 authored by giannozz's avatar giannozz

Fix documentation about electric-field CP< ad check on electroc-fiels PW

(suggested by Gabriele Sclauzero)

git-svn-id: c92efa57-630b-4861-b058-cf58834340f0
parent 3b96ff4c
......@@ -284,11 +284,8 @@ input_description -distribution {Quantum Espresso} -package CP -program cp.x {
var tefield -type LOGICAL {
default { .FALSE. }
info {
If .TRUE. a sawlike potential simulating an electric field
is added to the bare ionic potential. See variables
edir, eamp, emaxpos, eopreg for the form and size of
the added potential.
If .TRUE. a homogeneous finite electric field described
through the modern theory of the polarization is applied.
......@@ -1364,6 +1364,9 @@ SUBROUTINE iosys()
CALL init_start_k ( nk1, nk2, nk3, k1, k2, k3, k_points, nkstot, xk, wk )
gamma_only = ( k_points == 'gamma' )
IF ( lelfield .AND. gamma_only ) &
CALL errore( 'iosys', 'electric fields not available for k=0 only', 1 )
CALL convert_tau ( tau_format, nat_, tau)
IF ( wmass == 0.D0 ) THEN
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment