2003-01-20 05:58:50 +08:00
|
|
|
!
|
2003-03-24 23:25:17 +08:00
|
|
|
! Copyright (C) 2001-2003 PWSCF group
|
2003-01-20 05:58:50 +08:00
|
|
|
! 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 .
|
|
|
|
!
|
|
|
|
!-----------------------------------------------------------------------
|
2003-02-08 00:04:36 +08:00
|
|
|
subroutine bcast_d3_input
|
2003-01-20 05:58:50 +08:00
|
|
|
!-----------------------------------------------------------------------
|
|
|
|
!
|
|
|
|
! In this routine the first processor send the input to all
|
|
|
|
! the other processors
|
|
|
|
!
|
|
|
|
!
|
2003-02-21 22:57:00 +08:00
|
|
|
#ifdef __PARA
|
2003-01-20 05:58:50 +08:00
|
|
|
#include "machine.h"
|
|
|
|
use pwcom
|
|
|
|
use phcom
|
|
|
|
use d3com
|
2003-03-24 23:25:17 +08:00
|
|
|
use mp, only: mp_bcast
|
2003-12-11 19:10:03 +08:00
|
|
|
use io_files, only: prefix, tmp_dir
|
2003-01-20 05:58:50 +08:00
|
|
|
|
|
|
|
implicit none
|
2003-03-24 23:25:17 +08:00
|
|
|
integer :: root = 0
|
|
|
|
!
|
2003-01-20 05:58:50 +08:00
|
|
|
! logicals
|
2003-03-24 23:25:17 +08:00
|
|
|
!
|
|
|
|
call mp_bcast (lgamma, root)
|
|
|
|
call mp_bcast (wraux, root)
|
|
|
|
call mp_bcast (recv, root)
|
|
|
|
call mp_bcast (testflag,root)
|
2003-01-20 05:58:50 +08:00
|
|
|
!
|
|
|
|
! integers
|
|
|
|
!
|
2003-03-24 23:25:17 +08:00
|
|
|
call mp_bcast (iverbosity, root)
|
|
|
|
call mp_bcast (testint, root)
|
|
|
|
call mp_bcast (q0mode_todo, root)
|
|
|
|
call mp_bcast (istop, root)
|
2003-01-20 05:58:50 +08:00
|
|
|
!
|
|
|
|
! real*8
|
|
|
|
!
|
2003-03-24 23:25:17 +08:00
|
|
|
call mp_bcast (amass, root)
|
|
|
|
call mp_bcast (xq, root)
|
|
|
|
call mp_bcast (ethr_ph, root)
|
|
|
|
call mp_bcast (testreal, root)
|
2003-01-20 05:58:50 +08:00
|
|
|
!
|
|
|
|
! characters
|
|
|
|
!
|
2003-03-24 23:25:17 +08:00
|
|
|
call mp_bcast (title_ph, root)
|
|
|
|
call mp_bcast (fildyn, root)
|
|
|
|
call mp_bcast (fildrho, root)
|
|
|
|
call mp_bcast (fild0rho, root)
|
|
|
|
call mp_bcast (tmp_dir, root)
|
2003-08-30 01:15:25 +08:00
|
|
|
call mp_bcast (prefix, root)
|
2003-01-20 05:58:50 +08:00
|
|
|
#endif
|
2003-02-08 00:04:36 +08:00
|
|
|
return
|
2003-01-20 05:58:50 +08:00
|
|
|
end subroutine bcast_d3_input
|