Skip to content

Commit 25be8e0

Browse files
committed
MERGE: get_nz can return with and without GCs
1 parent bf7aebf commit 25be8e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/calc_dt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ precision_t calc_dt_vertical(Grid grid, std::vector<arma_cube> cMax_vcgc) {
138138
report.enter(function, iFunction);
139139

140140
precision_t dt;
141-
if (input.get_nAltsGeo() > 1) {
141+
if (grid.get_nZ(false) > 1) {
142142
arma_cube dtz = grid.dalt_center_scgc / cMax_vcgc[2];
143143
dt = dtz.min();
144144
} else
145145
dt = 1e32;
146146

147147
report.exit(function);
148148
return dt;
149-
}
149+
}

0 commit comments

Comments
 (0)