4 |
|
|
5 |
|
!! @author Charles F. Vardeman II |
6 |
|
!! @author Matthew Meineke |
7 |
< |
!! @version $Id: do_Forces.F90,v 1.2 2003-03-21 22:11:50 chuckv Exp $, $Date: 2003-03-21 22:11:50 $, $Name: not supported by cvs2svn $, $Revision: 1.2 $ |
7 |
> |
!! @version $Id: do_Forces.F90,v 1.3 2003-03-24 18:33:51 mmeineke Exp $, $Date: 2003-03-24 18:33:51 $, $Name: not supported by cvs2svn $, $Revision: 1.3 $ |
8 |
|
|
9 |
|
module do_Forces |
10 |
|
use force_globals |
197 |
|
natoms = nlocal |
198 |
|
#endif |
199 |
|
|
200 |
+ |
write(*,*) 'u_l', u_l(1,1), u_l(2,1), u_l(3,1) |
201 |
+ |
|
202 |
+ |
|
203 |
|
call getRcut(rcut,rc2=rcutsq) |
204 |
|
call getRlist(rlist,rlistsq) |
205 |
|
|
581 |
|
d_old = d |
582 |
|
! Wrap back into periodic box if necessary |
583 |
|
if ( SimUsesPBC() ) then |
584 |
< |
|
584 |
> |
|
585 |
|
d(1:3) = d(1:3) - box(1:3) * sign(1.0_dp,d(1:3)) * & |
586 |
|
int(abs(d(1:3)/box(1:3)) + 0.5_dp) |
587 |
|
|
588 |
+ |
! write(*,'(a11,3es12.3)') 'wrapped to ', d(1), d(2), d(3) |
589 |
+ |
|
590 |
|
endif |
591 |
|
r_sq = dot_product(d,d) |
592 |
|
|