1 |
|
!! Interfaces for C programs to module.... |
2 |
|
|
3 |
< |
subroutine initFortranFF(use_RF_c, use_UW_c, use_DW_c, thisStat) |
3 |
> |
subroutine initFortranFF(use_RF_c, correctionMethod, dampingAlpha, thisStat) |
4 |
|
use doForces, ONLY: init_FF |
5 |
+ |
use definitions, ONLY : dp |
6 |
+ |
|
7 |
|
integer, intent(in) :: use_RF_c |
8 |
< |
integer, intent(in) :: use_UW_c |
9 |
< |
integer, intent(in) :: use_DW_c |
8 |
> |
integer, intent(in) :: correctionMethod |
9 |
> |
real(kind=dp), intent(in) :: dampingAlpha |
10 |
|
integer, intent(out) :: thisStat |
11 |
< |
logical :: use_RF, use_UW, use_DW |
11 |
> |
logical :: use_RF |
12 |
> |
integer :: correction |
13 |
> |
real(kind=dp) :: alpha |
14 |
|
|
15 |
+ |
|
16 |
|
use_RF = (use_RF_c .ne. 0) |
17 |
< |
use_UW = (use_UW_c .ne. 0) |
18 |
< |
use_DW = (use_DW_c .ne. 0) |
17 |
> |
correction = correctionMethod |
18 |
> |
alpha = dampingAlpha |
19 |
> |
|
20 |
> |
call init_FF(use_RF, correction, alpha, thisStat) |
21 |
|
|
15 |
– |
call init_FF(use_RF, use_UW, use_DW, thisStat) |
16 |
– |
|
22 |
|
end subroutine initFortranFF |
23 |
|
|
24 |
|
subroutine doForceloop(q, q_group, A, eFrame, f, t, tau, pot, & |