COSMOS v7.655  COSMOSv7655
(AirShowerMC)
testAtmos.f
Go to the documentation of this file.
1 #include "Zcondc.h"
2  program main
3  implicit none
4  real(8),external:: cvh2thick, cvh2temp, cvh2den,
6  * cthick2den
7  real(8):: height, depth, rho, temp, rhop, rhodp, sh
8  real(8):: dep2h, dep2rho
9  integer::model
10  call creadparam(5)
11  call ciniatmos
12 
13 
14 #if ATMOSPHERE == 3
15  call cnrlheaderw0(6)
16 #else
17  call cqatmosmodel(model)
18  write(*,*) '# Atmosphere model=', model
19 #endif
20 
21  write(*,'(a,a)')
22  * "# H(m) depth(g/cm2) T(K) rho(kg/m3) SH(km) ",
23  * " rho'(SI) rho''(SI) dep->h dep->rho"
24  write(*,'(a)')
25  * "# ------------------------------------------------------"
26 
27  height = -500
28 
29  do while( height < 500.d3)
30  depth= cvh2thick( height )
31  temp= cvh2temp( height )
32  rho = cvh2den( height )
33  sh = cvh2scaleh( height )
34  rhop = cvh2denp( height )
35  rhodp = cvh2den2p( height )
36  dep2h = cthick2h( depth )
37  dep2rho = cthick2den( depth )
38 
39  write(*,'(1p, E10.3, 1p, E11.3, 0p, f7.1, 1p, E10.3,
40  * -3p, f7.2, 1p, E12.3, E11.3, 1p, E10.2, E10.3)' )
41  * height, depth/10., temp, rho, sh, rhop, rhodp,
42  * dep2h, dep2rho
43  if( height < 10005.d0 ) then
44  height = height + 100.d0
45  else
46  height = height*10.d0**0.05d0
47  endif
48  enddo
49 
50  end
51 
subroutine ciniatmos
Definition: ciniAtmos.f:3
real *8 function cvh2denp(z)
Definition: ciniSegAtoms.f:201
block data cblkIncident data *Za1ry *HeightOfInj d3
Definition: cblkIncident.h:7
real(8) function cthick2den(t)
Definition: cNRLAtmos.f:591
subroutine creadparam(io)
Definition: creadParam.f:5
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
real *8 function cvh2den2p(z)
Definition: ciniSegAtoms.f:251
nodes a atmos atmos temp real * cthick2h
real(8) function cvh2scaleh(vh)
Definition: cNRLAtmos.f:635
subroutine cqatmosmodel(modelno)
Definition: creadAtmosD.f:11
program main
Definition: ascii2bin.f:1
subroutine cnrlheaderw0(io)
Definition: cNRLAtmos.f:277