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: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@8777 c92efa57-630b-4861-b058-cf58834340f0
parent 3b96ff4c
...@@ -284,11 +284,8 @@ input_description -distribution {Quantum Espresso} -package CP -program cp.x { ...@@ -284,11 +284,8 @@ input_description -distribution {Quantum Espresso} -package CP -program cp.x {
var tefield -type LOGICAL { var tefield -type LOGICAL {
default { .FALSE. } default { .FALSE. }
info { info {
If .TRUE. a sawlike potential simulating an electric field If .TRUE. a homogeneous finite electric field described
is added to the bare ionic potential. See variables through the modern theory of the polarization is applied.
edir, eamp, emaxpos, eopreg for the form and size of
the added potential.
} }
} }
......
...@@ -1364,6 +1364,9 @@ SUBROUTINE iosys() ...@@ -1364,6 +1364,9 @@ SUBROUTINE iosys()
CALL init_start_k ( nk1, nk2, nk3, k1, k2, k3, k_points, nkstot, xk, wk ) CALL init_start_k ( nk1, nk2, nk3, k1, k2, k3, k_points, nkstot, xk, wk )
gamma_only = ( k_points == 'gamma' ) 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) CALL convert_tau ( tau_format, nat_, tau)
! !
IF ( wmass == 0.D0 ) THEN 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