mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-07 16:51:13 +00:00
Upgraded CosmoToolbox
This commit is contained in:
parent
5ad0bed91c
commit
aa9fe698b2
4 changed files with 30 additions and 11 deletions
10
external/cosmotool/src/mykdtree.hpp
vendored
10
external/cosmotool/src/mykdtree.hpp
vendored
|
@ -136,7 +136,13 @@ namespace CosmoTool {
|
|||
void setPeriodic(bool on, CoordType replicate)
|
||||
{
|
||||
periodic = on;
|
||||
this->replicate = replicate;
|
||||
std::fill(this->replicate, this->replicate+N, replicate);
|
||||
}
|
||||
|
||||
void setPeriodic(bool on, const coords& replicate)
|
||||
{
|
||||
periodic = on;
|
||||
std::copy(replicate, replicate+N, this->replicate);
|
||||
}
|
||||
|
||||
uint32_t getIntersection(const coords& x, CoordType r,
|
||||
|
@ -193,7 +199,7 @@ namespace CosmoTool {
|
|||
Cell *base_cell;
|
||||
|
||||
bool periodic;
|
||||
CoordType replicate;
|
||||
coords replicate;
|
||||
|
||||
Node *buildTree(Cell **cell0,
|
||||
uint32_t NumCells,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue