Go to the source code of this file.
◆ cdispvec2dcos()
Definition at line 41 of file cvec2dcos.f.
50 if(
dx .eq. 0. .and. dy .eq. 0.)
then 56 len = sqrt(
dx**2 + dy**2)
integer npitbl real *nx dx real dx
◆ cvec2dcos()
subroutine cvec2dcos |
( |
real*8 |
vx, |
|
|
real*8 |
vy, |
|
|
type(coord) |
dircos |
|
) |
| |
Definition at line 5 of file cvec2dcos.f.
References d0.
15 if(vx .eq. 0 .and. vy .eq. 0.)
then 20 if(abs(vx) .lt. 1.)
then 25 if(abs(vy) .lt. 1.)
then 30 dircos%r(3) = max(0.
d0, 1.
d0 - (vx**2 + vy**2)/2)
32 sum = sqrt(dircos%r(1)**2 + dircos%r(2)**2 + dircos%r(3)**2)
33 dircos%r(1) = dircos%r(1)/sum
34 dircos%r(2) = dircos%r(2)/sum
35 dircos%r(3) = dircos%r(3)/sum
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0