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_ph_input1
|
2003-03-24 23:25:17 +08:00
|
|
|
!-----------------------------------------------------------------------
|
|
|
|
!
|
2003-02-21 22:57:00 +08:00
|
|
|
#ifdef __PARA
|
2003-01-20 05:58:50 +08:00
|
|
|
#include "machine.h"
|
|
|
|
|
2003-03-24 23:25:17 +08:00
|
|
|
use pwcom
|
|
|
|
use phcom
|
|
|
|
use mp, only: mp_bcast
|
|
|
|
implicit none
|
|
|
|
integer :: root = 0
|
2003-01-20 05:58:50 +08:00
|
|
|
|
2003-03-24 23:25:17 +08:00
|
|
|
!
|
|
|
|
! integers
|
|
|
|
!
|
|
|
|
call mp_bcast (nat_todo, root)
|
|
|
|
if (nat_todo.gt.0) then
|
|
|
|
call mp_bcast (atomo, root)
|
|
|
|
endif
|
|
|
|
call mp_bcast (nrapp, root)
|
|
|
|
if (nrapp.gt.0) then
|
|
|
|
call mp_bcast (list, root)
|
|
|
|
endif
|
2003-01-20 05:58:50 +08:00
|
|
|
#endif
|
2003-03-24 23:25:17 +08:00
|
|
|
return
|
2003-01-20 05:58:50 +08:00
|
|
|
end subroutine bcast_ph_input1
|