From 738301d92fd3ebb546a3951573fc0381e0dab59e Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Wed, 9 Oct 2019 16:50:58 +0200 Subject: [PATCH] Slicing: compare number of processors correctly --- src/tensor/untyped_tensor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tensor/untyped_tensor.cxx b/src/tensor/untyped_tensor.cxx index d4952b8f..8d17ed0b 100644 --- a/src/tensor/untyped_tensor.cxx +++ b/src/tensor/untyped_tensor.cxx @@ -985,7 +985,7 @@ namespace CTF_int { } // bool tsr_A_has_sym = false; - if (tsr_B->wrld->np <= tsr_A->wrld->np && !tsr_A->is_sparse){ + if (tsr_B->wrld->np < tsr_A->wrld->np && !tsr_A->is_sparse){ //usually 'read' elements of B from A, since B may be smalelr than A if (tsr_B->order == 0 || tsr_B->has_zero_edge_len){ blk_sz_B = 0;