Skip to content

Commit 2d97089

Browse files
committed
chef: need to switch comm
1 parent 81440fa commit 2d97089

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif()
66
# This is the top level CMake file for the SCOREC build
77
cmake_minimum_required(VERSION 3.8)
88

9-
project(SCOREC VERSION 3.0.0 LANGUAGES CXX C)
9+
project(SCOREC VERSION 3.0.2 LANGUAGES CXX C)
1010

1111
include(cmake/bob.cmake)
1212
include(cmake/xsdk.cmake)

phasta/phCook.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ namespace chef {
273273
pcu::PCU *groupPCUObj = createGroupComm(in.splitFactor, expandedPCUObj);
274274
if ((worldRank % in.splitFactor) == 0)
275275
originalMain(m, in, g, plan, groupPCUObj);
276+
if(m != nullptr) m->switchPCU(expandedPCUObj);
277+
delete groupPCUObj;
276278
if (in.simmetrixMesh == 0)
277279
m = repeatMdsMesh(m, g, plan, in.splitFactor, expandedPCUObj);
278280
if (in.simmetrixMesh == 0 && shrinkFactor > 1){
@@ -375,4 +377,5 @@ namespace chef {
375377
out.grs = grs;
376378
ph::preprocess(m,in,out);
377379
}
378-
}
380+
}
381+

0 commit comments

Comments
 (0)