Skip to content

Commit fc39fa0

Browse files
committed
FEAT: added ability to message pass
1 parent b6ecccc commit fc39fa0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

include/grid.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ class Grid
267267

268268
void set_IsDipole(bool value);
269269
bool get_IsDipole();
270+
bool get_IsClosed();
270271

271272
int64_t get_nPointsInGrid();
272273

@@ -327,6 +328,8 @@ class Grid
327328
void report_grid_boundaries();
328329
void calc_cent_acc(Planets planet);
329330

331+
void create_dipole_connection(Quadtree quadtree);
332+
330333
// Make mag-field grid:
331334
bool init_dipole_grid(Quadtree quadtree_ion, Planets planet);
332335
// Support functions:
@@ -350,17 +353,26 @@ class Grid
350353
int iProcYp;
351354
/// The processor to the South/Down/Y-:
352355
int iProcYm;
356+
// This is special, since message passing in the z direction will only be
357+
// between closed magnetic field lines, so we don't need a +/- (p/m):
358+
int iProcZ;
353359

360+
bool isExchangeInitialized = false;
361+
354362
arma_vec edge_Xp;
355363
arma_vec edge_Yp;
356364
arma_vec edge_Xm;
357365
arma_vec edge_Ym;
366+
// again, z will only be in one
367+
arma_vec edge_Z;
358368

359369
int64_t iRoot;
360370
int64_t iRootXp;
361371
int64_t iRootXm;
362372
int64_t iRootYp;
363373
int64_t iRootYm;
374+
// again, z will only be in one
375+
int64_t iRootZ;
364376

365377
struct messages_struct
366378
{

0 commit comments

Comments
 (0)