1 |
|
!! Interfaces for C programs to module.... |
2 |
|
|
3 |
< |
subroutine initFortranFF(correctionMethod, thisStat) |
3 |
> |
subroutine initFortranFF(thisStat) |
4 |
|
use doForces, ONLY: init_FF |
5 |
|
use definitions, ONLY : dp |
6 |
|
|
7 |
– |
integer, intent(in) :: correctionMethod |
7 |
|
integer, intent(out) :: thisStat |
9 |
– |
integer :: correction |
8 |
|
|
9 |
< |
correction = correctionMethod |
12 |
< |
|
13 |
< |
call init_FF(correction, thisStat) |
9 |
> |
call init_FF(thisStat) |
10 |
|
|
11 |
|
end subroutine initFortranFF |
12 |
|
|
44 |
|
|
45 |
|
end subroutine doForceloop |
46 |
|
|
47 |
+ |
subroutine setFortranElectrostaticMethod(electrostaticMethod) |
48 |
+ |
use doForces, ONLY : setElectrostaticMethod |
49 |
+ |
|
50 |
+ |
integer, intent(in) :: electrostaticMethod |
51 |
+ |
|
52 |
+ |
call setElectrostaticMethod(electrostaticMethod) |
53 |
+ |
|
54 |
+ |
end subroutine setFortranElectrostaticMethod |
55 |
+ |
|
56 |
+ |
subroutine notifyFortranCutoffPolicy(cutPolicy) |
57 |
+ |
use doForces, ONLY : setCutoffPolicy |
58 |
+ |
|
59 |
+ |
integer, intent(in) :: cutPolicy |
60 |
+ |
|
61 |
+ |
call setCutoffPolicy( cutPolicy ) |
62 |
+ |
|
63 |
+ |
end subroutine notifyFortranCutoffPolicy |
64 |
+ |
|
65 |
+ |
subroutine notifyFortranSkinThickness(this_skin) |
66 |
+ |
use doForces, ONLY : setSkinThickness |
67 |
+ |
use definitions, ONLY : dp |
68 |
+ |
|
69 |
+ |
real(kind=dp), intent(in) :: this_skin |
70 |
+ |
|
71 |
+ |
call setSkinThickness( this_skin ) |
72 |
+ |
|
73 |
+ |
end subroutine notifyFortranSkinThickness |
74 |
+ |
|
75 |
+ |
subroutine notifyFortranCutoffs(this_rcut, this_rsw) |
76 |
+ |
use doForces, ONLY : setCutoffs |
77 |
+ |
use definitions, ONLY : dp |
78 |
+ |
|
79 |
+ |
real(kind=dp), intent(in) :: this_rcut, this_rsw |
80 |
+ |
|
81 |
+ |
call setCutoffs(this_rcut, this_rsw) |
82 |
+ |
|
83 |
+ |
end subroutine notifyFortranCutoffs |
84 |
+ |
|
85 |
+ |
subroutine notifyFortranYouAreOnYourOwn() |
86 |
+ |
use doForces, ONLY : cWasLame |
87 |
+ |
|
88 |
+ |
call cWasLame() |
89 |
+ |
end subroutine notifyFortranYouAreOnYourOwn |