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 |
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) |
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 |
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 |