ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/UseTheForce/DarkSide/electrostatic.F90
(Generate patch)

Comparing trunk/OOPSE-4/src/UseTheForce/DarkSide/electrostatic.F90 (file contents):
Revision 2439 by chrisfen, Tue Nov 15 19:42:22 2005 UTC vs.
Revision 2508 by gezelter, Mon Dec 12 19:32:50 2005 UTC

# Line 107 | Line 107 | module electrostatic_module
107    real(kind=dp), save :: f1c = 1.0_DP
108    real(kind=dp), save :: f2c = 0.0_DP
109  
110 < #ifdef __IFC
110 > #if defined(__IFC) || defined(__PGI)
111   ! error function for ifc version > 7.
112    double precision, external :: derfc
113   #endif
114    
115 <  public :: setElectrostaticSummationMethod
115 >  public :: setElectrostaticSumMethod
116    public :: setScreeningMethod
117    public :: setElectrostaticCutoffRadius
118    public :: setDampingAlpha
# Line 146 | Line 146 | contains
146  
147   contains
148  
149 <  subroutine setElectrostaticSummationMethod(the_ESM)
149 >  subroutine setElectrostaticSumMethod(the_ESM)
150      integer, intent(in) :: the_ESM    
151  
152      if ((the_ESM .le. 0) .or. (the_ESM .gt. REACTION_FIELD)) then
153 <       call handleError("setElectrostaticSummationMethod", "Unsupported Summation Method")
153 >       call handleError("setElectrostaticSumMethod", "Unsupported Summation Method")
154      endif
155  
156      summationMethod = the_ESM
157  
158 <  end subroutine setElectrostaticSummationMethod
158 >  end subroutine setElectrostaticSumMethod
159  
160    subroutine setScreeningMethod(the_SM)
161      integer, intent(in) :: the_SM    
# Line 439 | Line 439 | contains
439    end subroutine checkSummationMethod
440  
441  
442 <  subroutine doElectrostaticPair(atom1, atom2, d, rij, r2, sw, &
442 >  subroutine doElectrostaticPair(atom1, atom2, d, rij, r2, rcut, sw, &
443         vpair, fpair, pot, eFrame, f, t, do_pot)
444  
445      logical, intent(in) :: do_pot
# Line 447 | Line 447 | contains
447      integer, intent(in) :: atom1, atom2
448      integer :: localError
449  
450 <    real(kind=dp), intent(in) :: rij, r2, sw
450 >    real(kind=dp), intent(in) :: rij, r2, sw, rcut
451      real(kind=dp), intent(in), dimension(3) :: d
452      real(kind=dp), intent(inout) :: vpair
453      real(kind=dp), intent(inout), dimension(3) :: fpair    
# Line 1166 | Line 1166 | contains
1166            
1167         endif
1168  
1169 <    elseif (summationMethod .eq. SHIFTED_FORCE) then
1169 >    elseif ( (summationMethod .eq. SHIFTED_FORCE) .or. &
1170 >         (summationMethod .eq. SHIFTED_POTENTIAL) ) then
1171         if (ElectrostaticMap(atid1)%is_Charge) then
1172            c1 = getCharge(atid1)
1173            

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines