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

Comparing trunk/OOPSE-4/src/UseTheForce/doForces.F90 (file contents):
Revision 2295 by chrisfen, Thu Sep 15 00:13:15 2005 UTC vs.
Revision 2298 by chuckv, Thu Sep 15 02:48:43 2005 UTC

# Line 45 | Line 45
45  
46   !! @author Charles F. Vardeman II
47   !! @author Matthew Meineke
48 < !! @version $Id: doForces.F90,v 1.42 2005-09-15 00:13:14 chrisfen Exp $, $Date: 2005-09-15 00:13:14 $, $Name: not supported by cvs2svn $, $Revision: 1.42 $
48 > !! @version $Id: doForces.F90,v 1.43 2005-09-15 02:48:43 chuckv Exp $, $Date: 2005-09-15 02:48:43 $, $Name: not supported by cvs2svn $, $Revision: 1.43 $
49  
50  
51   module doForces
# Line 280 | Line 280 | contains
280      nGroupsInRow = getNgroupsInRow(plan_group_row)
281   #endif
282      nAtypes = getSize(atypes)
283 <    
283 > ! Set all of the initial cutoffs to zero.
284 >    atypeMaxCutoff = 0.0_dp
285      do i = 1, nAtypes
286         if (SimHasAtype(i)) then    
287            call getElementProperty(atypes, i, "is_LennardJones", i_is_LJ)
# Line 291 | Line 292 | contains
292            call getElementProperty(atypes, i, "is_EAM", i_is_EAM)
293            call getElementProperty(atypes, i, "is_Shape", i_is_Shape)
294            
295 <          atypeMaxCutoff(i) = 0.0_dp
295 >
296            if (i_is_LJ) then
297               thisRcut = getSigma(i) * 2.5_dp
298               if (thisRCut .gt. atypeMaxCutoff(i)) atypeMaxCutoff(i) = thisRCut
# Line 341 | Line 342 | contains
342         allocate(groupToGtype(iend))
343         allocate(groupMaxCutoff(iend))
344         allocate(gtypeMaxCutoff(iend))
345 +       groupMaxCutoff = 0.0_dp
346 +       gtypeMaxCutoff = 0.0_dp
347      endif
348      !! first we do a single loop over the cutoff groups to find the
349      !! largest cutoff for any atypes present in this group.  We also

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines