Skip to content

Commit

Permalink
BinaryExpr: account for ignore_tile_position when checking preconditions
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Sep 18, 2024
1 parent d622383 commit a0c0450
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/TiledArray/dist_eval/binary_eval.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ class BinaryEvalImpl : public DistEvalImpl<typename Op::result_type, Policy>,
right_ntiles_discarded_(0)
#endif
{
TA_ASSERT(left.trange() == right.trange());
TA_ASSERT(ignore_tile_position()
? left.trange().elements_range().extent() ==
right.trange().elements_range().extent()
: left.trange() == right.trange());
}

virtual ~BinaryEvalImpl() {}
Expand Down

0 comments on commit a0c0450

Please sign in to comment.