COSMOS v7.655  COSMOSv7655
(AirShowerMC)
csetCoord.f
Go to the documentation of this file.
1  subroutine csetcoord(sys, x, y, z, a)
2 ! set coordinate values
3 ! x,y,z: real*8. input. 3 components of the coordinate.
4 ! meaning depends on sys.
5 ! a: /coord/. output. coordinate values are set. time is
6 ! unchanged.
7 ! sys: character*4. input. what coordinate.
8 !
9  implicit none
10 #include "Zcoord.h"
11 #include "Zearth.h"
12 
13  real*8 x, y, z
14  type(coord)::a
15  character*(*) sys
16  integer i
17 !
18  character*70 msg
19 #include "Zcoordtype.h"
20 !
21  a%r(1) = x
22  a%r(2) = y
23  a%r(3) = z
24  a%sys = sys
25  do i = 1, max_coord_types
26  if(sys .eq. coord_types(i)) goto 10
27  enddo
28  write(msg, *) ' coordinate type=', sys, ' invalid',
29  * ' input to csetCoord'
30  call cerrormsg(msg, 0)
31  10 continue
32  end
subroutine cerrormsg(msg, needrtn)
Definition: cerrorMsg.f:4
integer max_coord_types * coord_types(2)/'llh'/
subroutine csetcoord(sys, x, y, z, a)
Definition: csetCoord.f:2
Definition: Zcoord.h:43