Skip to content

Commit 7c5197d

Browse files
committed
minor fix
1 parent b1c8bd6 commit 7c5197d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/tamm/tamm_utils.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,8 +1615,11 @@ template<typename TensorType>
16151615
void from_block_cyclic_tensor(Tensor<TensorType> bc_tensor, Tensor<TensorType> tensor,
16161616
bool is_bc = true) {
16171617
const auto ndims = bc_tensor.num_modes();
1618-
EXPECTS(ndims == 2);
1619-
if(is_bc) EXPECTS(bc_tensor.is_block_cyclic());
1618+
1619+
if(is_bc) {
1620+
EXPECTS(ndims == 2);
1621+
EXPECTS(bc_tensor.is_block_cyclic());
1622+
}
16201623
EXPECTS(bc_tensor.kind() == TensorBase::TensorKind::dense);
16211624
EXPECTS(bc_tensor.distribution().kind() == DistributionKind::dense);
16221625

0 commit comments

Comments
 (0)