gibuu is hosted by Hepforge, IPPP Durham
GiBUU

TABLE OF CONTENTS


/spline [ Modules ]

[ Top ] [ Modules ]

NAME

module spline

PURPOSE

Includes routines for x-y -- cubic B-splines (i.e. the curve is 'smoother' than the data points).


spline/compareSize [ Functions ]

[ Top ] [ spline ] [ Functions ]

NAME

logical function compareSize(x,y,z)

PURPOSE

check whether all three arrays have the same boundaries


spline/Bsplint2 [ Functions ]

[ Top ] [ spline ] [ Functions ]

NAME

function Bsplint2(XA,YA,X, Ind,Pref,SkipCalc) result(Y)

PURPOSE

Returns an interpolated value for the data set (xa,ya) at position x.

Interpolation is done via cubic B-splines.

INPUTS

  • real, intent(in) :: XA(:),YA(:) -- data set
  • real, intent(in) :: Y2A(:) -- Derivative at data set points
  • real, intent(in) :: x -- value where spline shall be evaluated
  • logical, intent(in) :: SkipCalc -- if true then use given Ind and Pref values [OPTIONAL]

RESULT

  • real, intent(out):: y -- y value of spline at x
  • integer, intent(inout):: Ind(-1:2) -- indizes of values [OPTIONAL]
  • real, intent(inout):: Pref(-1:2) -- pre factors of values [OPTIONAL]


Bsplint2/FindT [ Functions ]

[ Top ] [ Bsplint2 ] [ Functions ]

NAME

function FindT(x,a2,a1,a0) result(t)

PURPOSE

Solve[t^3 + a2 t^2 + a1 t + a0 == 0, t] with the constraint 0 <= t <= 1