Fully implemented cosmopower
This commit is contained in:
parent
052bc78e5f
commit
72df7b6c66
3 changed files with 43 additions and 9 deletions
|
@ -119,7 +119,7 @@ namespace CosmoTool
|
|||
}
|
||||
|
||||
template<typename Array, typename Array2>
|
||||
void get_Kvec(const Array& ik, Array2& kvec)
|
||||
void get_Kvec(const Array& ik, Array2& kvec) const
|
||||
{
|
||||
const DimArray& dims = this->getDims();
|
||||
assert(ik.size() == dims.size());
|
||||
|
@ -137,7 +137,7 @@ namespace CosmoTool
|
|||
}
|
||||
|
||||
template<typename Array2>
|
||||
void get_Kvec(long p, Array2& kvec)
|
||||
void get_Kvec(long p, Array2& kvec) const
|
||||
{
|
||||
const DimArray& dims = this->getDims();
|
||||
DimArray d(delta_k.size());
|
||||
|
@ -145,7 +145,7 @@ namespace CosmoTool
|
|||
get_Kvec(d, kvec);
|
||||
}
|
||||
|
||||
void get_IKvec(long p, DimArray& ikvec)
|
||||
void get_IKvec(long p, DimArray& ikvec) const
|
||||
{
|
||||
const DimArray& dims = this->getDims();
|
||||
assert(dims.size()==ikvec.size());
|
||||
|
@ -158,7 +158,7 @@ namespace CosmoTool
|
|||
|
||||
|
||||
template<typename Array>
|
||||
double get_K(const Array& ik)
|
||||
double get_K(const Array& ik) const
|
||||
{
|
||||
const DimArray& dims = this->getDims();
|
||||
assert(ik.size() == dims.size());
|
||||
|
@ -177,7 +177,7 @@ namespace CosmoTool
|
|||
return std::sqrt(k2);
|
||||
}
|
||||
|
||||
double get_K(long p)
|
||||
double get_K(long p) const
|
||||
{
|
||||
const DimArray& dims = this->getDims();
|
||||
DimArray d(delta_k.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue