3 |
|
use definitions |
4 |
|
use atype_module |
5 |
|
use vector_class |
6 |
+ |
use simulation |
7 |
|
#ifdef IS_MPI |
8 |
|
use mpiSimulation |
9 |
|
#endif |
42 |
|
|
43 |
|
integer, intent(in) :: atom1, atom2 |
44 |
|
real (kind = dp), intent(in) :: rij |
45 |
< |
real (kind = dp), dimension(:,:) :: u_l |
45 |
> |
real (kind = dp), dimension(3,getNlocal()) :: u_l |
46 |
|
|
47 |
|
integer :: me1, me2 |
48 |
|
real (kind = dp) :: taper, mu1, mu2 |
114 |
|
|
115 |
|
integer, intent(in) :: atom1 |
116 |
|
real(kind=dp), intent(in) :: mu1 |
117 |
< |
real(kind=dp), dimension(:,:) :: u_l |
117 |
> |
real(kind=dp), dimension(3,getNlocal()) :: u_l |
118 |
|
|
119 |
|
!! should work for both MPI and non-MPI version since this is not pairwise. |
120 |
|
rf(1,atom1) = rf(1,atom1) + u_l(1,atom1)*mu1 |
130 |
|
real (kind=dp), intent(in) :: mu1 |
131 |
|
real (kind=dp), intent(inout) :: rfpot |
132 |
|
logical, intent(in) :: do_pot |
133 |
< |
real (kind = dp), dimension(:,:) :: u_l |
134 |
< |
real (kind = dp), dimension(:,:) :: t |
133 |
> |
real (kind = dp), dimension(3,getNlocal()) :: u_l |
134 |
> |
real (kind = dp), dimension(3,getNlocal()) :: t |
135 |
|
|
136 |
|
if (.not.rf_initialized) then |
137 |
|
write(default_error,*) 'Reaction field not initialized!' |
162 |
|
integer, intent(in) :: atom1, atom2 |
163 |
|
real(kind=dp), dimension(3), intent(in) :: d |
164 |
|
real(kind=dp), intent(in) :: rij |
165 |
< |
real( kind = dp ), dimension(:,:) :: u_l |
166 |
< |
real( kind = dp ), dimension(:,:) :: f |
165 |
> |
real( kind = dp ), dimension(3,getNlocal()) :: u_l |
166 |
> |
real( kind = dp ), dimension(3,getNlocal()) :: f |
167 |
|
logical, intent(in) :: do_stress |
168 |
|
|
169 |
|
real (kind = dp), dimension(3) :: ul1 |