From c779d5b3dd04c8d04e807b7dc81dde94ee426b07 Mon Sep 17 00:00:00 2001 From: Edgar Solomonik Date: Thu, 8 Aug 2019 21:58:39 -0500 Subject: [PATCH] correct read_all_pairs function --- src/interface/tensor.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/interface/tensor.cxx b/src/interface/tensor.cxx index 9d595208..032b41ca 100644 --- a/src/interface/tensor.cxx +++ b/src/interface/tensor.cxx @@ -385,10 +385,8 @@ namespace CTF { bool nonzeros_only, bool unpack_sym) const { char * cpairs; - int ret; - ret = CTF_int::tensor::allread(npair,&cpairs,unpack_sym,nonzeros_only); + cpairs = CTF_int::tensor::read_all_pairs(npair,unpack_sym,nonzeros_only); *pairs = (Pair*)cpairs; //Pair::cast_char_arr(cpairs, *npair, sr); - if (ret != CTF_int::SUCCESS){ printf("CTF ERROR: failed to execute function read_local\n"); IASSERT(0); return; } } template