Compute the linear growth factor

This commit is contained in:
Guilhem Lavaux 2010-12-01 18:09:14 -05:00
parent 1d7ecf051c
commit 2b7e4453dd

View File

@ -75,7 +75,10 @@ Interpolate CosmoTool::buildLinearGrowth(double OmegaLambda, double OmegaMatter,
f.params = &cosmology;
f.function = integrandGrowthFactor;
for (int i = 0; i < numPoints; i++)
a_input[0] = 0;
D_output[0] = 0;
for (int i = 1; i < numPoints; i++)
{
double a_dest = 0 + 1.0*i/(numPoints-1);
double result, abserr;