Skip to content

Commit 4f1ffaf

Browse files
committed
FEAT: enable dipole6
1 parent 567fd99 commit 4f1ffaf

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/quadtree.cpp

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ int64_t iProcQuery = -1;
1818
Quadtree::Quadtree(std::string shape) {
1919
if (shape == "cubesphere")
2020
nRootNodes = 6;
21-
21+
if (shape == "sphere")
22+
nRootNodes = 1;
23+
if (shape == "dipole")
24+
nRootNodes = 1;
2225
if (shape == "dipole2")
2326
nRootNodes = 2;
24-
else
25-
nRootNodes = 1;
27+
if (shape == "dipole6")
28+
nRootNodes = 6;
2629
}
2730

2831
// --------------------------------------------------------------------------
@@ -73,6 +76,13 @@ void Quadtree::build(std::string gridtype) {
7376
IsSphere = true;
7477
}
7578

79+
if (grid_input.shape == "dipole6") {
80+
origins = Dipole6::ORIGINS;
81+
rights = Dipole6::RIGHTS;
82+
ups = Dipole6::UPS;
83+
IsSphere = true;
84+
}
85+
7686
arma_vec o(3), r(3), u(3);
7787

7888
// This captures the limits of the sphere, independent of what the

0 commit comments

Comments
 (0)