ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/calc_gb.F90
(Generate patch)

Comparing trunk/OOPSE/libmdtools/calc_gb.F90 (file contents):
Revision 1194 by gezelter, Mon May 24 21:03:30 2004 UTC vs.
Revision 1195 by gezelter, Mon May 24 22:24:30 2004 UTC

# Line 363 | Line 363 | contains
363      endif
364  
365      vpair = vpair + 4.0*eps*R126
366 <    fpair(1) = fpair(1) + dUdx
367 <    fpair(2) = fpair(2) + dUdy
368 <    fpair(3) = fpair(3) + dUdz
366 > #ifdef IS_MPI
367 >    id1 = tagRow(atom1)
368 >    id2 = tagColumn(atom2)
369 > #else
370 >    id1 = atom1
371 >    id2 = atom2
372 > #endif
373      
374 +    if (molMembershipList(id1) .ne. molMembershipList(id2)) then
375 +      
376 +       fpair(1) = fpair(1) + dUdx
377 +       fpair(2) = fpair(2) + dUdy
378 +       fpair(3) = fpair(3) + dUdz
379 +      
380 +    endif
381 +    
382      return
383    end subroutine do_gb_pair
384  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines