File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,14 @@ int64_t iProcQuery = -1;
18
18
Quadtree::Quadtree (std::string shape) {
19
19
if (shape == " cubesphere" )
20
20
nRootNodes = 6 ;
21
-
21
+ if (shape == " sphere" )
22
+ nRootNodes = 1 ;
23
+ if (shape == " dipole" )
24
+ nRootNodes = 1 ;
22
25
if (shape == " dipole2" )
23
26
nRootNodes = 2 ;
24
- else
25
- nRootNodes = 1 ;
27
+ if (shape == " dipole6 " )
28
+ nRootNodes = 6 ;
26
29
}
27
30
28
31
// --------------------------------------------------------------------------
@@ -73,6 +76,13 @@ void Quadtree::build(std::string gridtype) {
73
76
IsSphere = true ;
74
77
}
75
78
79
+ if (grid_input.shape == " dipole6" ) {
80
+ origins = Dipole6::ORIGINS;
81
+ rights = Dipole6::RIGHTS;
82
+ ups = Dipole6::UPS;
83
+ IsSphere = true ;
84
+ }
85
+
76
86
arma_vec o (3 ), r (3 ), u (3 );
77
87
78
88
// This captures the limits of the sphere, independent of what the
You can’t perform that action at this time.
0 commit comments