4 |
|
|
5 |
|
!! @author Charles F. Vardeman II |
6 |
|
!! @author Matthew Meineke |
7 |
< |
!! @version $Id: do_Forces.F90,v 1.11 2003-04-07 20:50:46 chuckv Exp $, $Date: 2003-04-07 20:50:46 $, $Name: not supported by cvs2svn $, $Revision: 1.11 $ |
7 |
> |
!! @version $Id: do_Forces.F90,v 1.14 2003-04-10 16:22:00 mmeineke Exp $, $Date: 2003-04-10 16:22:00 $, $Name: not supported by cvs2svn $, $Revision: 1.14 $ |
8 |
|
|
9 |
|
module do_Forces |
10 |
|
use force_globals |
140 |
|
|
141 |
|
if (FF_uses_GB .and. FF_uses_LJ) then |
142 |
|
endif |
143 |
< |
|
143 |
> |
if (.not. do_forces_initialized) then |
144 |
> |
!! Create neighbor lists |
145 |
> |
call expandNeighborList(getNlocal(), my_status) |
146 |
> |
if (my_Status /= 0) then |
147 |
> |
write(default_error,*) "SimSetup: ExpandNeighborList returned error." |
148 |
> |
thisStat = -1 |
149 |
> |
return |
150 |
> |
endif |
151 |
> |
endif |
152 |
|
|
153 |
|
do_forces_initialized = .true. |
154 |
|
|
218 |
|
|
219 |
|
do_pot = do_pot_c |
220 |
|
do_stress = do_stress_c |
213 |
– |
|
221 |
|
|
222 |
|
! Gather all information needed by all force loops: |
223 |
|
|
594 |
|
real ( kind = dp ), intent(out) :: r_sq |
595 |
|
real( kind = dp ) :: d(3) |
596 |
|
real( kind = dp ) :: d_old(3) |
597 |
< |
d(1:3) = q_i(1:3) - q_j(1:3) |
597 |
> |
d(1:3) = q_j(1:3) - q_i(1:3) |
598 |
|
d_old = d |
599 |
|
! Wrap back into periodic box if necessary |
600 |
|
if ( SimUsesPBC() ) then |