Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions d4_ce/D4ConstraintEvaluator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ void D4ConstraintEvaluator::use_explicit_projection(Array *a, const Array::Dim_i
D4Dimension *D4ConstraintEvaluator::slice_dimension(const std::string &id, const index &i) {
D4Dimension *dim = dmr()->root()->find_dim(id);

if (!dim) {
throw Error(malformed_expr, "The dimension name '" + id + "' cannot be found");
}
if ((uint64_t)i.stride > dim->size())
throw Error(malformed_expr,
"For '" + id + "', the index stride value is greater than the size of the dimension");
Expand Down
Loading