ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/calc_reaction_field.F90
(Generate patch)

Comparing trunk/OOPSE/libmdtools/calc_reaction_field.F90 (file contents):
Revision 394 by gezelter, Mon Mar 24 21:55:34 2003 UTC vs.
Revision 460 by chuckv, Fri Apr 4 22:22:30 2003 UTC

# Line 3 | Line 3 | module reaction_field
3    use definitions
4    use atype_module
5    use vector_class
6 +  use simulation
7   #ifdef IS_MPI
8    use mpiSimulation
9   #endif
# Line 41 | Line 42 | contains
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
# Line 113 | Line 114 | contains
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
# Line 129 | Line 130 | contains
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!'
# Line 161 | Line 162 | contains
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines