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

Comparing trunk/OOPSE-3.0/src/UseTheForce/DarkSide/shapes.F90 (file contents):
Revision 1608 by gezelter, Wed Oct 20 04:02:48 2004 UTC vs.
Revision 1633 by gezelter, Fri Oct 22 20:22:48 2004 UTC

# Line 6 | Line 6 | module shapes
6    use vector_class
7    use simulation
8    use status
9 +  use lj
10   #ifdef IS_MPI
11    use mpiSimulation
12   #endif
# Line 104 | Line 105 | contains  
105         call getMatchingElementList(atypes, "is_Shape", .true., &
106              nShapeTypes, MatchList)
107        
108 <       call getMatchingElementList(atypes, "is_LJ", .true., &
108 >       call getMatchingElementList(atypes, "is_LennardJones", .true., &
109              nLJTypes, MatchList)
110        
111         ShapeMap%n_shapes = nShapeTypes + nLJTypes
# Line 291 | Line 292 | contains  
292      integer :: status
293      integer :: i, j, l, m, lm, function_type
294      real(kind=dp) :: bigSigma, myBigSigma, thisSigma, coeff, Phunc, spi
295 <    real(kind=dp) :: costheta, cpi, theta, Pi, phi, thisDP
295 >    real(kind=dp) :: costheta, cpi, theta, Pi, phi, thisDP, sigma
296      integer :: alloc_stat, iTheta, iPhi, nSteps, nAtypes, thisIP, current
297      logical :: thisProperty
298  
# Line 363 | Line 364 | contains  
364  
365      do i = 1, nAtypes
366        
367 <       call getElementProperty(atypes, i, "is_LJ", thisProperty)
367 >       call getElementProperty(atypes, i, "is_LennardJones", thisProperty)
368        
369         if (thisProperty) then
370            
# Line 376 | Line 377 | contains  
377  
378            ShapeMap%Shapes(current)%isLJ = .true.
379  
380 <          call getElementProperty(atypes, i, "lj_epsilon", thisDP)
381 <          ShapeMap%Shapes(current)%epsilon = thisDP
382 <
383 <          call getElementProperty(atypes, i, "lj_sigma",   thisDP)
383 <          ShapeMap%Shapes(current)%sigma = thisDP          
384 <          if (thisDP .gt. bigSigma) bigSigma = thisDP
380 >          ShapeMap%Shapes(current)%epsilon = getEpsilon(thisIP)
381 >          sigma = getSigma(thisIP)
382 >          ShapeMap%Shapes(current)%sigma = sigma
383 >          if (sigma .gt. bigSigma) bigSigma = thisDP
384            
385         endif
386        

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines