Skip to content

Commit f2a4bc0

Browse files
authored
Merge pull request #3083 from BalticPinguin/master
fix vector-index out of range
2 parents 9f5836e + dfcd6fc commit f2a4bc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/geom/cell_inf_hex.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ Real InfHex::quality (const ElemQuality q) const
288288
std::vector<Real> edge_ratios(2);
289289

290290
// Bottom
291-
edge_ratios[8] = std::min(d01, d23) / std::max(d01, d23);
292-
edge_ratios[9] = std::min(d03, d12) / std::max(d03, d12);
291+
edge_ratios[0] = std::min(d01, d23) / std::max(d01, d23);
292+
edge_ratios[1] = std::min(d03, d12) / std::max(d03, d12);
293293

294294
return *(std::min_element(edge_ratios.begin(), edge_ratios.end())) ;
295295

0 commit comments

Comments
 (0)