COSMOS v7.655  COSMOSv7655
(AirShowerMC)
csetCoord.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine csetcoord (sys, x, y, z, a)
 

Function/Subroutine Documentation

◆ csetcoord()

subroutine csetcoord ( character*(*)  sys,
real*8  x,
real*8  y,
real*8  z,
type(coord a 
)

Definition at line 2 of file csetCoord.f.

References cerrormsg(), and coord_types().

Referenced by cinitobs(), convcoord(), drawgeomag(), and geomag().

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
subroutine cerrormsg(msg, needrtn)
Definition: cerrorMsg.f:4
nodes z
nodes i
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz sys
Definition: ZavoidUnionMap.h:1
integer max_coord_types * coord_types(2)/'llh'/
latitude latitude this system is used *****************************************************************! type coord sequence union map real y
Definition: Zcoord.h:25
real(4), save a
Definition: cNRLAtmos.f:20
Definition: Zcoord.h:43
! structure defining a particle at production ! Basic idea of what is to be contained in ! the particle structue is that dynamical ones should be included those derivable from the particle code ! is not included ******************************************************type fmom momentum sequence union map real e endmap map real * x
Definition: Zptcl.h:21
Here is the call graph for this function:
Here is the caller graph for this function: