| 1 |
module oumods |
| 2 |
use, intrinsic :: iso_c_binding |
| 3 |
implicit integer(c_int) (i-k), integer(c_int) (m,n), & |
| 4 |
& real(c_double) (a-h), real(c_double) (l), real(c_double) (o-z) |
| 5 |
|
| 6 |
TYPE :: ex_type |
| 7 |
INTEGER :: A = 0 |
| 8 |
CONTAINS |
| 9 |
FINAL :: del_ex_type |
| 10 |
PROCEDURE :: sub => ex_sub |
| 11 |
END TYPE ex_type |
| 12 |
|
| 13 |
contains |
| 14 |
subroutine zI12(t,c,alpha,beta,r) |
| 15 |
complex(c_double_complex) c,r, x,y,z |
| 16 |
z = c*t |
| 17 |
y = exp(z) |
| 18 |
x = (2.0_c_double * cosh((z - cmplx(0._c_double,3.14159265358979324_c_double, kind(1._c_double))) & |
| 19 |
& /2._c_double )) / (c / exp((z + cmplx(0._c_double,3.14159265358979324_c_double,kind(1._c_double)))/2._c_double)) |
| 20 |
r = beta*r+alpha*((t*y - x)/c) |
| 21 |
end subroutine |
| 22 |
end module |