Skip to content

Commit 63e0bcd

Browse files
committed
Use default world instead of provided world
1 parent 51f89d0 commit 63e0bcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TiledArray/math/solvers/cp/cp_thc_als.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class CP_THC_ALS : public CP<Tile, Policy> {
5757
// for now I am going to assume an order-4 THC but later this will be used for
5858
// arbitrary order.
5959
CP_THC_ALS(const DistArray<Tile, Policy>& tref1, const DistArray<Tile, Policy>& tref2, const DistArray<Tile, Policy>& tref3)
60-
: CP<Tile, Policy>(2 * rank(tref3)), ref_orb_a(tref1), ref_orb_b(tref2), ref_core(tref3), world(tref1.world()),
60+
: CP<Tile, Policy>(2 * rank(tref3)), ref_orb_a(tref1), ref_orb_b(tref2), ref_core(tref3), world(get_default_world()),
6161
ref_orb_c(tref1), ref_orb_d(tref2) {
6262

6363
DistArray<Tile, Policy> pr, pq;
@@ -70,7 +70,7 @@ class CP_THC_ALS : public CP<Tile, Policy> {
7070

7171
CP_THC_ALS(const DistArray<Tile, Policy>& tref1, const DistArray<Tile, Policy>& tref2, const DistArray<Tile, Policy>& core,
7272
const DistArray<Tile, Policy>& tref3, const DistArray<Tile, Policy>& tref4)
73-
: CP<Tile, Policy>(2 * rank(tref3)), ref_orb_a(tref1), ref_orb_b(tref2), ref_core(core), world(tref1.world()),
73+
: CP<Tile, Policy>(2 * rank(tref3)), ref_orb_a(tref1), ref_orb_b(tref2), ref_core(core), world(get_default_world()),
7474
ref_orb_c(tref3), ref_orb_d(tref4) {
7575
DistArray<Tile, Policy> pr, pq;
7676
// I need two things that are r_{ai} x r_{ab} which I am calling p x q

0 commit comments

Comments
 (0)