Linked to python
This commit is contained in:
parent
db1d63b04f
commit
ddaac4a97a
@ -17,7 +17,8 @@ cdef extern from "cosmopower.hpp" namespace "CosmoTool":
|
|||||||
POWER_BARDEEN "CosmoTool::CosmoPower::POWER_BARDEEN",
|
POWER_BARDEEN "CosmoTool::CosmoPower::POWER_BARDEEN",
|
||||||
POWER_SUGIYAMA "CosmoTool::CosmoPower::POWER_SUGIYAMA",
|
POWER_SUGIYAMA "CosmoTool::CosmoPower::POWER_SUGIYAMA",
|
||||||
POWER_BDM,
|
POWER_BDM,
|
||||||
POWER_TEST
|
POWER_TEST,
|
||||||
|
HU_WIGGLES_ORIGINAL "CosmoTool::CosmoPower::HU_WIGGLES_ORIGINAL"
|
||||||
|
|
||||||
cdef cppclass CosmoPower:
|
cdef cppclass CosmoPower:
|
||||||
double n
|
double n
|
||||||
@ -113,6 +114,8 @@ cdef class CosmologyPower:
|
|||||||
f = POWER_BARDEEN
|
f = POWER_BARDEEN
|
||||||
elif funcname=='SUGIYAMA':
|
elif funcname=='SUGIYAMA':
|
||||||
f = POWER_SUGIYAMA
|
f = POWER_SUGIYAMA
|
||||||
|
elif funcname=='HU_WIGGLES_ORIGINAL':
|
||||||
|
f = HU_WIGGLES_ORIGINAL
|
||||||
|
|
||||||
self.power.setFunction(f)
|
self.power.setFunction(f)
|
||||||
|
|
||||||
|
@ -75,6 +75,12 @@ CosmoPower::CosmoPower()
|
|||||||
updateCosmology();
|
updateCosmology();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CosmoPower::~CosmoPower()
|
||||||
|
{
|
||||||
|
if (ehu_params)
|
||||||
|
delete ehu_params;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is \hat{tophat}
|
* This is \hat{tophat}
|
||||||
*/
|
*/
|
||||||
|
@ -91,6 +91,7 @@ namespace CosmoTool {
|
|||||||
};
|
};
|
||||||
|
|
||||||
CosmoPower();
|
CosmoPower();
|
||||||
|
~CosmoPower();
|
||||||
|
|
||||||
void setFunction(CosmoFunction f);
|
void setFunction(CosmoFunction f);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user