We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f32743 commit cdc8bacCopy full SHA for cdc8bac
src/grid_spacing.cpp
@@ -343,8 +343,8 @@ void Grid::calc_j_grid_spacing() {
343
344
// Dipole will have different scaling...
345
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);
+ dj_center_m_scgc = radius_scgc % dj_center_scgc % pow(cos(magLat_scgc), 3) / delTheta(magLat_scgc) % sign(magLat_scgc);
+ dj_edge_m = radius_scgc % dj_edge % pow(cos(magLat_scgc), 3) / delTheta(magLat_scgc) % sign(magLat_scgc);
348
}
349
350
// For a stretched grid, calculate some useful quantities:
0 commit comments