File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -984,6 +984,10 @@ bool Grid::init_geo_grid(Quadtree quadtree,
984
984
985
985
// Calculate the radius (for spherical or non-spherical)
986
986
fill_grid_radius (planet);
987
+ // Correct the reference grid with correct length scale:
988
+ // (with R = actual radius)
989
+ if (input.get_is_cubesphere ())
990
+ correct_xy_grid (planet);
987
991
// Calculate grid spacing
988
992
calc_grid_spacing (planet);
989
993
// calculate radial unit vector (for spherical or oblate planet)
@@ -994,11 +998,6 @@ bool Grid::init_geo_grid(Quadtree quadtree,
994
998
// Calculate magnetic field and magnetic coordinates:
995
999
fill_grid_bfield (planet);
996
1000
997
- // Correct the reference grid with correct length scale:
998
- // (with R = actual radius)
999
- if (input.get_is_cubesphere ())
1000
- correct_xy_grid (planet);
1001
-
1002
1001
// Throw a little message for students:
1003
1002
report.student_checker_function_name (input.get_is_student (),
1004
1003
input.get_student_name (),
You can’t perform that action at this time.
0 commit comments