COSMOS v7.655
COSMOSv7655
(AirShowerMC)
cprintCoord.f
Go to the documentation of this file.
1
subroutine
cprintcoord
(a)
2
implicit none
3
#include "Zcoord.h"
4
5
6
type
(
coord
)::a
7
!
8
character*70
msg
9
10
integer
i
11
#include "Zcoordtype.h"
12
!
13
if
(a%sys .eq.
coord_types
(1))
then
14
write
(msg, *)
'x ='
,a%r(1),
' y='
, a%r(2),
' z='
,a%r(3)
15
elseif
(a%sys .eq.
coord_types
(2))
then
16
! write(msg, *) ' lat(deg) =',a.lat,' longi(deg)=', a.long,
17
! * ' height=',a.h
18
write
(msg, *)
' lat(deg) ='
,a%r(1),
' longi(deg)='
, a%r(2),
19
*
' height='
,a%r(3)
20
elseif
(a%sys .eq.
coord_types
(3))
then
21
! write(msg, *) ' theta(deg) =',a.theta,' phi(deg)=', a.phi,
22
! * ' radius=',a.radius
23
write
(msg, *)
' theta(deg) ='
,a%r(1),
' phi(deg)='
, a%r(2),
24
*
' radius='
,a%r(3)
25
else
26
do
i = 1, max_coord_types
27
if
(a%sys .eq.
coord_types
(i))
then
28
write
(msg, *) a%r(1), a%r(2), a%r(3),
' sys='
, a%sys
29
goto
10
30
endif
31
enddo
32
write
(msg, *)
' coord. system='
, a%sys,
33
*
' unknown to print_coord'
34
call
cerrormsg
(msg, 0)
35
endif
36
10
continue
37
call
cerrormsg
(msg, 1)
38
end
cerrormsg
subroutine cerrormsg(msg, needrtn)
Definition:
cerrorMsg.f:4
cprintcoord
subroutine cprintcoord(a)
Definition:
cprintCoord.f:2
coord_types
integer max_coord_types * coord_types(2)/'llh'/
coord
Definition:
Zcoord.h:43
Tracking
cprintCoord.f
Generated by
1.8.13