43 |
|
!! Calculates Long Range forces Lennard-Jones interactions. |
44 |
|
!! @author Charles F. Vardeman II |
45 |
|
!! @author Matthew Meineke |
46 |
< |
!! @version $Id: LJ.F90,v 1.15 2005-09-21 17:20:14 chrisfen Exp $, $Date: 2005-09-21 17:20:14 $, $Name: not supported by cvs2svn $, $Revision: 1.15 $ |
46 |
> |
!! @version $Id: LJ.F90,v 1.17 2005-10-12 18:59:16 chuckv Exp $, $Date: 2005-10-12 18:59:16 $, $Name: not supported by cvs2svn $, $Revision: 1.17 $ |
47 |
|
|
48 |
|
|
49 |
|
module lj |
58 |
|
|
59 |
|
implicit none |
60 |
|
PRIVATE |
61 |
+ |
#define __FORTRAN90 |
62 |
+ |
#include "UseTheForce/DarkSide/fInteractionMap.h" |
63 |
|
|
64 |
|
integer, parameter :: DP = selected_real_kind(15) |
65 |
|
|
79 |
|
end type LJtype |
80 |
|
|
81 |
|
type, private :: LJList |
82 |
< |
integer :: nLJtypes = 0 |
82 |
> |
integer :: Nljtypes = 0 |
83 |
|
integer :: currentLJtype = 0 |
84 |
|
type(LJtype), pointer :: LJtypes(:) => null() |
85 |
|
integer, pointer :: atidToLJtype(:) => null() |
159 |
|
defaultCutoff = thisRcut |
160 |
|
defaultShift = shiftedPot |
161 |
|
haveDefaultCutoff = .true. |
162 |
< |
call createMixingMap() |
162 |
> |
!we only want to build LJ Mixing map if LJ is being used. |
163 |
> |
if(LJMap%nLJTypes /= 0) then |
164 |
> |
call createMixingMap() |
165 |
> |
end if |
166 |
|
end subroutine setLJDefaultCutoff |
167 |
|
|
168 |
|
subroutine setLJUniformCutoff(thisRcut, shiftedPot) |
415 |
|
|
416 |
|
#ifdef IS_MPI |
417 |
|
if (do_pot) then |
418 |
< |
pot_Row(atom1) = pot_Row(atom1) + sw*pot_temp*0.5 |
419 |
< |
pot_Col(atom2) = pot_Col(atom2) + sw*pot_temp*0.5 |
418 |
> |
pot_Row(LJ_POT,atom1) = pot_Row(LJ_POT,atom1) + sw*pot_temp*0.5 |
419 |
> |
pot_Col(LJ_POT,atom2) = pot_Col(LJ_POT,atom2) + sw*pot_temp*0.5 |
420 |
|
endif |
421 |
|
|
422 |
|
f_Row(1,atom1) = f_Row(1,atom1) + fx |