1 |
|
!! Interfaces for C programs to module.... |
2 |
|
|
3 |
< |
subroutine initFortranFF(correctionMethod, dampingAlpha, thisStat) |
3 |
> |
subroutine initFortranFF(correctionMethod, thisStat) |
4 |
|
use doForces, ONLY: init_FF |
5 |
|
use definitions, ONLY : dp |
6 |
|
|
7 |
|
integer, intent(in) :: correctionMethod |
8 |
– |
real(kind=dp), intent(in) :: dampingAlpha |
8 |
|
integer, intent(out) :: thisStat |
10 |
– |
logical :: use_RF |
9 |
|
integer :: correction |
12 |
– |
real(kind=dp) :: alpha |
10 |
|
|
11 |
|
correction = correctionMethod |
15 |
– |
alpha = dampingAlpha |
12 |
|
|
13 |
< |
call init_FF(correction, alpha, thisStat) |
13 |
> |
call init_FF(correction, thisStat) |
14 |
|
|
15 |
|
end subroutine initFortranFF |
16 |
|
|
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 |
39 |
|
|
40 |
|
!! Stress Tensor |
41 |
|
real( kind = dp), dimension(9) :: tau |
42 |
< |
real ( kind = dp ) :: pot |
42 |
> |
real ( kind = dp ),dimension(LR_POT_TYPES) :: pot |
43 |
|
logical ( kind = 2) :: do_pot_c, do_stress_c |
44 |
|
integer :: error |
45 |
|
|