quantum-espresso/PH/bcast_ph_input.f90

99 lines
3.1 KiB
Fortran

!
! Copyright (C) 2001-2008 Quantum-ESPRESSO group
! This file is distributed under the terms of the
! GNU General Public License. See the file `License'
! in the root directory of the present distribution,
! or http://www.gnu.org/copyleft/gpl.txt .
!
!-----------------------------------------------------------------------
subroutine bcast_ph_input ( )
!-----------------------------------------------------------------------
!
! In this routine the first processor sends the phonon input to all
! the other processors
!
!
#ifdef __PARA
#include "f_defs.h"
use mp, only: mp_bcast
USE control_ph, ONLY : start_irr, last_irr, start_q, last_q, nmix_ph, &
niter_ph, lnoloc, alpha_mix, tr2_ph, lrpa, recover, &
ldisp, lnscf, elph, reduce_io, zue, epsil, trans, &
lgamma, nogg
USE gamma_gamma, ONLY : asr
USE disp, ONLY : iq1, iq2, iq3, nq1, nq2, nq3
USE freq_ph, ONLY : fpol, nfs, fiu
USE qpoint, ONLY : xq
USE output, ONLY : fildvscf, fildyn, fildrho
use io_files, ONLY : tmp_dir, prefix
USE control_flags, only: iverbosity, modenum
USE ramanm, ONLY: lraman, elop, dek, eth_rps, eth_ns
USE input_parameters, ONLY: max_seconds
USE ions_base, ONLY : amass
USE io_global, ONLY : ionode_id
USE printout_base, ONLY : title
implicit none
!
! logicals
!
call mp_bcast (lgamma, ionode_id)
call mp_bcast (epsil, ionode_id)
call mp_bcast (trans, ionode_id)
call mp_bcast (zue, ionode_id)
call mp_bcast (reduce_io, ionode_id)
call mp_bcast (elph, ionode_id)
call mp_bcast (lnscf, ionode_id)
call mp_bcast (ldisp, ionode_id)
call mp_bcast (lraman, ionode_id)
call mp_bcast (elop, ionode_id)
call mp_bcast (fpol, ionode_id)
call mp_bcast (recover, ionode_id)
call mp_bcast (asr, ionode_id)
call mp_bcast (lrpa, ionode_id)
call mp_bcast (lnoloc, ionode_id)
call mp_bcast (nogg, ionode_id)
!
! integers
!
call mp_bcast (start_irr, ionode_id)
call mp_bcast (last_irr, ionode_id)
call mp_bcast (start_q, ionode_id)
call mp_bcast (last_q, ionode_id)
call mp_bcast (niter_ph, ionode_id)
call mp_bcast (nmix_ph, ionode_id)
call mp_bcast (iverbosity, ionode_id)
call mp_bcast (modenum, ionode_id)
CALL mp_bcast( nq1, ionode_id )
CALL mp_bcast( nq2, ionode_id )
CALL mp_bcast( nq3, ionode_id )
CALL mp_bcast( iq1, ionode_id )
CALL mp_bcast( iq2, ionode_id )
CALL mp_bcast( iq3, ionode_id )
CALL mp_bcast( nfs, ionode_id )
!
! real*8
!
call mp_bcast (tr2_ph, ionode_id)
call mp_bcast (eth_rps, ionode_id)
call mp_bcast (eth_ns, ionode_id)
call mp_bcast (amass, ionode_id)
call mp_bcast (alpha_mix, ionode_id)
call mp_bcast (xq, ionode_id)
call mp_bcast (max_seconds, ionode_id)
call mp_bcast (dek, ionode_id)
call mp_bcast (fiu, ionode_id)
!
! characters
!
call mp_bcast (title, ionode_id)
call mp_bcast (fildyn, ionode_id)
call mp_bcast (fildvscf, ionode_id)
call mp_bcast (fildrho, ionode_id)
call mp_bcast (tmp_dir, ionode_id)
call mp_bcast (prefix, ionode_id)
#endif
return
end subroutine bcast_ph_input