Fixed interface get_Kvec_p
This commit is contained in:
parent
fc2a0c9ddd
commit
aed2920be7
@ -89,5 +89,6 @@ int main(int argc, char **argv)
|
|||||||
test_2d<float>(128,128);
|
test_2d<float>(128,128);
|
||||||
test_2d<float>(128,131);
|
test_2d<float>(128,131);
|
||||||
test_2d<float>(128,130);
|
test_2d<float>(128,130);
|
||||||
|
test_2d<float>(131,128);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ namespace CosmoTool
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename Array2>
|
template<typename Array2>
|
||||||
void get_Kvec(long p, Array2& kvec) const
|
void get_Kvec_p(long p, Array2& kvec) const
|
||||||
{
|
{
|
||||||
const DimArray& dims = this->getDims();
|
const DimArray& dims = this->getDims();
|
||||||
DimArray d(delta_k.size());
|
DimArray d(delta_k.size());
|
||||||
@ -212,7 +212,7 @@ namespace CosmoTool
|
|||||||
return std::sqrt(k2);
|
return std::sqrt(k2);
|
||||||
}
|
}
|
||||||
|
|
||||||
double get_K(long p) const
|
double get_K_p(long p) const
|
||||||
{
|
{
|
||||||
const DimArray& dims = this->getDims();
|
const DimArray& dims = this->getDims();
|
||||||
DimArray d(delta_k.size());
|
DimArray d(delta_k.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user