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

Comparing trunk/OOPSE-2.0/src/UseTheForce/doForces_interface.F90 (file contents):
Revision 1948 by gezelter, Fri Jan 14 20:31:16 2005 UTC vs.
Revision 2295 by chrisfen, Thu Sep 15 00:13:15 2005 UTC

# Line 1 | Line 1
1   !! Interfaces for C programs to module....
2  
3 < subroutine initFortranFF(use_RF_c, thisStat)
3 > subroutine initFortranFF(use_RF_c, correctionMethod, dampingAlpha, thisStat)
4    use doForces, ONLY: init_FF
5 <  logical, intent(in) :: use_RF_c
5 >  use definitions, ONLY : dp
6 >
7 >  integer, intent(in) :: use_RF_c
8 >  integer, intent(in) :: correctionMethod
9 >  real(kind=dp), intent(in) :: dampingAlpha
10 >  integer, intent(out) :: thisStat
11 >  logical :: use_RF
12 >  integer :: correction
13 >  real(kind=dp) :: alpha
14    
15 <  integer, intent(out) :: thisStat  
16 <  call init_FF(use_RF_c, thisStat)
15 >
16 >  use_RF = (use_RF_c .ne. 0)
17 >  correction = correctionMethod
18 >  alpha = dampingAlpha
19    
20 +  call init_FF(use_RF, correction, alpha, thisStat)
21 +
22   end subroutine initFortranFF
23  
24   subroutine doForceloop(q, q_group, A, eFrame, f, t, tau, pot, &
25       do_pot_c, do_stress_c, error)
26 <  
26 >
27    use definitions, ONLY: dp
28    use simulation
29    use doForces, ONLY: do_force_loop
# Line 27 | Line 39 | subroutine doForceloop(q, q_group, A, eFrame, f, t, ta
39    real ( kind = dp ), dimension(3,nLocal) :: f
40    !! Torsion array provided by C, dimensioned by getNlocal
41    real( kind = dp ), dimension(3,nLocal) :: t    
42 <  
42 >
43    !! Stress Tensor
44    real( kind = dp), dimension(9) :: tau  
45    real ( kind = dp ) :: pot
46    logical ( kind = 2) :: do_pot_c, do_stress_c
47    integer :: error
48 <  
48 >
49    call do_force_loop(q, q_group, A, eFrame, f, t, tau, pot, &
50         do_pot_c, do_stress_c, error)
51 <  
51 >
52   end subroutine doForceloop
53 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines