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 2301 by gezelter, Thu Sep 15 22:05:21 2005 UTC vs.
Revision 2302 by chrisfen, Fri Sep 16 16:07:39 2005 UTC

# Line 73 | Line 73 | module electrostatic_module
73  
74    !! variables to handle different summation methods for long-range electrostatics:
75    integer, save :: summationMethod = NONE
76 +  logical, save :: summationMethodChecked = .false.
77    real(kind=DP), save :: defaultCutoff = 0.0_DP
78    logical, save :: haveDefaultCutoff = .false.
79    real(kind=DP), save :: dampingAlpha = 0.0_DP
# Line 363 | Line 364 | contains
364               call handleError("checkSummationMethod", "no Damping Alpha set!")
365            endif
366            
367 <          if (.not.have....)
368 <          constEXP =
369 <          constERFC =
367 >          if (.not.haveDefaultCutoff) then
368 >             call handleError("checkSummationMethod", "no Default Cutoff set!")
369 >          endif
370 >
371 >          constEXP = exp(-dampingAlpha*dampingAlpha*defaultCutoff*defaultCutoff)
372 >          constERFC = erfc(dampingAlpha*defaultCutoff)
373            
374            haveDWAconstants = .true.
375 +       endif
376 +    endif
377 +
378 +    if (summationMethod .eq. REACTION_FIELD) then
379 +       if (.not.haveDielectric) then
380 +          call handleError("checkSummationMethod", "no reaction field Dielectric set!")
381         endif
382      endif
383  
384 +    summationMethodChecked = .true.
385    end subroutine checkSummationMethod
386  
387  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines