Skip to content

Commit 4961430

Browse files
committed
BUG: init_mag_grid wasn't correctly identifying if its touching the pole
1 parent 0bb1649 commit 4961430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init_mag_grid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ bool Grid::init_dipole_grid(Quadtree quadtree_ion, Planets planet) {
350350
// - evenly space the ghost cells between these.
351351

352352
// Check if we're touching the pole, need to look at original quadtree values
353-
if ((abs(lower_left_norm(1) + size_up_norm(1)) > 0.49) // north pole
353+
if ((lower_left_norm(1) + size_up_norm(1) > 0.49) // north pole
354354
|| (lower_left_norm(1) < -0.49)) { // south pole
355355
lat1dDown(nLats) = 89.9 * cDtoR;
356356
lat1dDown(nLats - 1) = (lat1dDown(nLats) + lat1dDown(nLats - 2)) / 2.0;

0 commit comments

Comments
 (0)