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 2280 by gezelter, Thu Sep 1 20:17:55 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, use_UW_c, use_DW_c, thisStat)
4    use doForces, ONLY: init_FF
5 <  logical, intent(in) :: use_RF_c
5 >  integer, intent(in) :: use_RF_c
6 >  integer, intent(in) :: use_UW_c
7 >  integer, intent(in) :: use_DW_c
8 >  integer, intent(out) :: thisStat
9 >  logical :: use_RF, use_UW, use_DW
10    
11 <  integer, intent(out) :: thisStat  
12 <  call init_FF(use_RF_c, thisStat)
13 <  
11 >  use_RF = (use_RF_c .ne. 0)
12 >  use_UW = (use_UW_c .ne. 0)
13 >  use_DW = (use_DW_c .ne. 0)
14 >
15 >  call init_FF(use_RF, use_UW, use_DW, thisStat)
16 >
17   end subroutine initFortranFF
18  
19   subroutine doForceloop(q, q_group, A, eFrame, f, t, tau, pot, &
20       do_pot_c, do_stress_c, error)
21 <  
21 >
22    use definitions, ONLY: dp
23    use simulation
24    use doForces, ONLY: do_force_loop
# Line 27 | Line 34 | subroutine doForceloop(q, q_group, A, eFrame, f, t, ta
34    real ( kind = dp ), dimension(3,nLocal) :: f
35    !! Torsion array provided by C, dimensioned by getNlocal
36    real( kind = dp ), dimension(3,nLocal) :: t    
37 <  
37 >
38    !! Stress Tensor
39    real( kind = dp), dimension(9) :: tau  
40    real ( kind = dp ) :: pot
41    logical ( kind = 2) :: do_pot_c, do_stress_c
42    integer :: error
43 <  
43 >
44    call do_force_loop(q, q_group, A, eFrame, f, t, tau, pot, &
45         do_pot_c, do_stress_c, error)
46 <  
46 >
47   end subroutine doForceloop

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines