Skip to content

Commit cdc8bac

Browse files
committed
BUG: spacing should have times -1 in south
1 parent 7f32743 commit cdc8bac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/grid_spacing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ void Grid::calc_j_grid_spacing() {
343343

344344
// Dipole will have different scaling...
345345
if (iGridShape_ == iDipole_) {
346-
dj_center_m_scgc = radius_scgc % dj_center_scgc % pow(cos(magLat_scgc), 3) / delTheta(magLat_scgc);
347-
dj_edge_m = radius_scgc % dj_edge % pow(cos(magLat_scgc), 3) / delTheta(magLat_scgc);
346+
dj_center_m_scgc = radius_scgc % dj_center_scgc % pow(cos(magLat_scgc), 3) / delTheta(magLat_scgc) % sign(magLat_scgc);
347+
dj_edge_m = radius_scgc % dj_edge % pow(cos(magLat_scgc), 3) / delTheta(magLat_scgc) % sign(magLat_scgc);
348348
}
349349

350350
// For a stretched grid, calculate some useful quantities:

0 commit comments

Comments
 (0)