Compute the linear growth factor
This commit is contained in:
parent
1d7ecf051c
commit
2b7e4453dd
@ -75,7 +75,10 @@ Interpolate CosmoTool::buildLinearGrowth(double OmegaLambda, double OmegaMatter,
|
|||||||
f.params = &cosmology;
|
f.params = &cosmology;
|
||||||
f.function = integrandGrowthFactor;
|
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 a_dest = 0 + 1.0*i/(numPoints-1);
|
||||||
double result, abserr;
|
double result, abserr;
|
||||||
|
Loading…
Reference in New Issue
Block a user