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

Go to the source code of this file.

Functions/Subroutines

subroutine kscsplintp (x, y, n, coef, nc, v, f)
 

Function/Subroutine Documentation

◆ kscsplintp()

subroutine kscsplintp ( real(4), dimension(n x,
real(4), dimension(n y,
integer  n,
real(4), dimension(nc,3)  coef,
integer  nc,
real(4)  v,
real(4)  f 
)

Definition at line 2 of file kScsplIntp.f.

References kwhereis().

Referenced by cthick2den(), cthick2h(), cvh2den(), cvh2temp(), and cvh2thick().

2  implicit none
3 ! interpolation by the cubic spline.
4  integer n ! input. size of x, y
5  real(4):: x(n) ! input.
6  real(4):: y(n) ! input.
7  integer nc ! input. size of coef(nc,3)
8  real(4):: coef(nc,3) ! input. which is an output from
9  ! kcsplCoef
10  real(4):: v ! input. argument where the interpolated
11  ! value is requested.
12  real(4):: f ! output. obtained interpolated values
13 !
14  integer i
15  real(4):: v1
16 
17  call kwhereis(v, n, x, 1, i)
18  if(i .eq. 0) then
19  i = 1
20  elseif(i .eq. n) then
21  i = n - 1
22  endif
23  v1 = v - x(i)
24  f = y(i) +
25  * v1 * (coef(i,1) + v1 * (coef(i,2) + v1 * coef(i,3)))
nodes i
subroutine kwhereis(x, in, a, step, loc)
Definition: kdwhereis.f:63
latitude latitude this system is used *****************************************************************! type coord sequence union map real y
Definition: Zcoord.h:25
real cut integer nc
Definition: Zprivate.h:1
integer n
Definition: Zcinippxc.h:1
! 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
dE dx *! Nuc Int sampling table f
Definition: cblkMuInt.h:130
Here is the call graph for this function:
Here is the caller graph for this function: