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

Go to the source code of this file.

Functions/Subroutines

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

Function/Subroutine Documentation

◆ kcsplintp()

subroutine kcsplintp ( real*8, dimension(n x,
real*8, dimension(n y,
integer  n,
real*8, dimension(nc,3)  coef,
integer  nc,
real*8  v,
real*8  f 
)

Definition at line 2 of file kcsplIntp.f.

References kdwhereis().

Referenced by csampafintp(), and ksampaf().

2  implicit none
3 ! interpolation by the cubic spline.
4  integer n ! input. size of x, y
5  real*8 x(n) ! input.
6  real*8 y(n) ! input.
7  integer nc ! input. size of coef(nc,3)
8  real*8 coef(nc,3) ! input. which is an output from
9  ! kcsplCoef
10  real*8 v ! input. argument where the interpolated
11  ! value is requested.
12  real*8 f ! output. obtained interpolated values
13 !
14  integer i
15  real*8 v1
16 
17  call kdwhereis(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 kdwhereis(x, in, a, step, loc)
Definition: kdwhereis.f:27
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: