Skip to content

Commit d88cd13

Browse files
committed
FEAT: Remove need to do lat/lon gradients, instead we can use j&i
1 parent 7bb99ed commit d88cd13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/calc_dt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ precision_t calc_dt_sphere(Grid grid, std::vector<arma_cube> cMax_vcgc) {
4141
arma_cube dtCube;
4242

4343
// Longitudinal Direction:
44-
dtCube = grid.dlon_center_dist_scgc / cMax_vcgc[0];
44+
dtCube = grid.di_center_m_scgc / cMax_vcgc[0];
4545
dta(0) = dtCube.min();
4646

4747
// Latitudinal Direction:
48-
dtCube = grid.dlat_center_dist_scgc / cMax_vcgc[1];
48+
dtCube = grid.dj_center_m_scgc / cMax_vcgc[1];
4949
dta(1) = dtCube.min();
5050

5151
// Vertical Direction:

src/grid_spacing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ void Grid::calc_grid_spacing(Planets planet) {
1313
report.print(3, "starting calc_grid_spacing");
1414

1515
// calc_alt_grid_spacing();
16-
calc_lat_grid_spacing();
17-
calc_long_grid_spacing();
16+
// calc_lat_grid_spacing();
17+
// calc_long_grid_spacing();
1818

1919
calc_i_grid_spacing();
2020
calc_j_grid_spacing();

0 commit comments

Comments
 (0)