22.02.2013 Views

A Mathematica based Version of the CKMfitter Package

A Mathematica based Version of the CKMfitter Package

A Mathematica based Version of the CKMfitter Package

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

D.3. LoadLUT 69<br />

else<br />

dTableauO2 = 0D0<br />

k = int( (dble(n-1)*ObsPred +xmax -dble(n)*xmin)/(xmax -xmin) )<br />

SplinePred = ObsPred -tabsave(fn,0,k)<br />

dTableauO2 = tabsave(fn,3,k) +<br />

> 2D0 *tabsave(fn,4,k) *SplinePred +<br />

> 3D0 *tabsave(fn,5,k) *SplinePred**2<br />

end if<br />

End<br />

D.3 LoadLUT<br />

dTableauO2 = dTableauO2 /2D0<br />

!-----------------------------------------------------------------------<br />

C<br />

C subroutine to load LUT’s for Tableau function<br />

C<br />

subroutine LoadLUT( nbOfLUT, LUTfname)<br />

Implicit None<br />

include ’dimarray.f’<br />

integer nbOfLUT<br />

character*200 LUTfname(maxLUT)<br />

integer i, fn, lengthTable(maxLUT)<br />

double precision tabsave(maxLUT,0:5,maxGranularity)<br />

common /LUT/ lengthTable, tabsave<br />

do fn = 1, nbOfLUT<br />

open(22, file = LUTfname(fn), status = ’old’)<br />

read(22,*) lengthTable(fn)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!