Skip to content

Commit a262055

Browse files
committed
Added call to set_abs_default() that should have been in Set::Set, as pointed out by Devin
1 parent 627847f commit a262055

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/contraction/contraction.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3413,7 +3413,7 @@ namespace CTF_int {
34133413
mapping * map;
34143414
spctr * hctr = NULL;
34153415
spctr ** rec_ctr = NULL;
3416-
ASSERT(A->wrld == B->wrld && B->wrld == C->wrld);
3416+
ASSERT(A->wrld->cdt.cm == B->wrld->cdt.cm && B->wrld->cdt.cm == C->wrld->cdt.cm);
34173417
World * wrld = A->wrld;
34183418
CommData global_comm = wrld->cdt;
34193419

src/interface/set.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ namespace CTF {
158158

159159
Set() : CTF_int::algstrct(sizeof(dtype)){
160160
tmdtype = CTF_int::get_default_mdtype<dtype>(is_custom_mdtype);
161-
abs = NULL;
161+
set_abs_to_default();
162162
}
163163

164164
void set_abs_to_default(){

src/summation/summation.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1969,7 +1969,7 @@ namespace CTF_int {
19691969
int btopo;
19701970
int gtopo;
19711971

1972-
ASSERT(A->wrld == B->wrld);
1972+
ASSERT(A->wrld->cdt.cm == B->wrld->cdt.cm);
19731973
World * wrld = A->wrld;
19741974

19751975
TAU_FSTART(map_tensor_pair);

0 commit comments

Comments
 (0)