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

Comparing trunk/OOPSE-4/src/UseTheForce/doForces_interface.F90 (file contents):
Revision 2285 by gezelter, Wed Sep 7 20:46:46 2005 UTC vs.
Revision 2358 by chuckv, Wed Oct 12 20:22:34 2005 UTC

# Line 1 | Line 1
1   !! Interfaces for C programs to module....
2  
3 < subroutine initFortranFF(use_RF_c, use_UW_c, use_DW_c, thisStat)
3 > subroutine initFortranFF(correctionMethod, thisStat)
4    use doForces, ONLY: init_FF
5 <  integer, intent(in) :: use_RF_c
6 <  integer, intent(in) :: use_UW_c
7 <  integer, intent(in) :: use_DW_c
5 >  use definitions, ONLY : dp
6 >
7 >  integer, intent(in) :: correctionMethod
8    integer, intent(out) :: thisStat
9 <  logical :: use_RF, use_UW, use_DW
9 >  integer :: correction
10    
11 <  use_RF = (use_RF_c .ne. 0)
12 <  use_UW = (use_UW_c .ne. 0)
13 <  use_DW = (use_DW_c .ne. 0)
11 >  correction = correctionMethod
12 >  
13 >  call init_FF(correction, thisStat)
14  
15  call init_FF(use_RF, use_UW, use_DW, thisStat)
16
15   end subroutine initFortranFF
16  
17   subroutine doForceloop(q, q_group, A, eFrame, f, t, tau, pot, &
# Line 22 | Line 20 | subroutine doForceloop(q, q_group, A, eFrame, f, t, ta
20    use definitions, ONLY: dp
21    use simulation
22    use doForces, ONLY: do_force_loop
23 +
24 + #define __FORTRAN90
25 + #include "UseTheForce/DarkSide/fInteractionMap.h"
26 +
27    !! Position array provided by C, dimensioned by getNlocal
28    real ( kind = dp ), dimension(3, nLocal) :: q
29    !! molecular center-of-mass position array
# Line 37 | Line 39 | subroutine doForceloop(q, q_group, A, eFrame, f, t, ta
39  
40    !! Stress Tensor
41    real( kind = dp), dimension(9) :: tau  
42 <  real ( kind = dp ) :: pot
42 >  real ( kind = dp ),dimension(POT_ARRAY_SIZE) :: pot
43    logical ( kind = 2) :: do_pot_c, do_stress_c
44    integer :: error
45  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines