COSMOS v7.655  COSMOSv7655
(AirShowerMC)
atmosd2.f
Go to the documentation of this file.
1 #include "BlockData/cblkGene.h"
2  implicit none
3 #include "Zcondc.h"
4 #include "Zmanagerp.h"
5 #include "Zatmos.h"
6 #include "ZcosmosExt.h"
7 
8  integer i
9 
10  real*8 cvh2den, cvh2denp, cvh2den2p, cvh2temp, cthick2h
11  real*8 cvh2scaleh, cvh2thick, cthick2den, h
12 
13  real rho, rhop, rhopp, temp, sh, h1, den
14  real*8 t
15 ! real*8 sh2
16 #if ATMOSPHERE == 1
17  call creadparam(5)
18  call creadatmosd
19 !
20  call catmoscnst1
21  call catmoscnst2
22 #elif ATMOSPHERE == 2
23 ! read segmented atmosphere data
24  call creadatmosd
25 ! manipulate data
26  call catmoscnst1
27 #endif
28  h = -1000.
29  write(*,'(a,a)') '# h rho rhop rhopp Temp ',
30  * ' depth H h rho '
31  do i = 1, 1000000
32  rho= cvh2den(h)
33  rhop = cvh2denp(h)
34  rhopp = cvh2den2p(h)
35  temp = cvh2temp(h)
36  t = cvh2thick(h)
37  sh = cvh2scaleh(h)
38  h1 = cthick2h(t)
39  den = cthick2den(t)
40 ! sh2 = - cvh2den(h)/cvh2denp(h)
41 ! write(*, '(1pE12.4,)') h, rho, rhop, rhopp, temp, t, sh,
42 ! * h1, den
43  write(*, '(1p3E12.4)') h, t, rho
44  h = h + 25.d0
45  if(h .gt. 100.d3) goto 10
46  enddo
47  10 continue
48  end
49 
50 
real *8 function cvh2denp(z)
Definition: ciniSegAtoms.f:201
nodes i
block data cblkIncident data *Za1ry *HeightOfInj d3
Definition: cblkIncident.h:7
subroutine catmoscnst2
Definition: catmosCnst1.f:115
real(8) function cthick2den(t)
Definition: cNRLAtmos.f:591
subroutine creadatmosd
Definition: creadAtmosD.f:2
subroutine creadparam(io)
Definition: creadParam.f:5
block data cblkEvhnp ! currently usable models data RegMdls ad *special data *Cekaon d0
Definition: cblkEvhnp.h:5
subroutine catmoscnst1
Definition: catmosCnst1.f:2
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
real *8 function cvh2den(z)
Definition: ciniSegAtoms.f:54
dE dx *! Nuc Int sampling table h
Definition: cblkMuInt.h:130
nodes t
real *8 function cvh2thick(z)
Definition: ciniSegAtoms.f:93
real(8) function cvh2temp(vh)
Definition: cNRLAtmos.f:61