Skip to content

Commit

Permalink
chef: need to switch comm
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith committed Dec 6, 2024
1 parent 81440fa commit 2d97089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ endif()
# This is the top level CMake file for the SCOREC build
cmake_minimum_required(VERSION 3.8)

project(SCOREC VERSION 3.0.0 LANGUAGES CXX C)
project(SCOREC VERSION 3.0.2 LANGUAGES CXX C)

include(cmake/bob.cmake)
include(cmake/xsdk.cmake)
Expand Down
5 changes: 4 additions & 1 deletion phasta/phCook.cc
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ namespace chef {
pcu::PCU *groupPCUObj = createGroupComm(in.splitFactor, expandedPCUObj);
if ((worldRank % in.splitFactor) == 0)
originalMain(m, in, g, plan, groupPCUObj);
if(m != nullptr) m->switchPCU(expandedPCUObj);
delete groupPCUObj;
if (in.simmetrixMesh == 0)
m = repeatMdsMesh(m, g, plan, in.splitFactor, expandedPCUObj);
if (in.simmetrixMesh == 0 && shrinkFactor > 1){
Expand Down Expand Up @@ -375,4 +377,5 @@ namespace chef {
out.grs = grs;
ph::preprocess(m,in,out);
}
}
}

0 comments on commit 2d97089

Please sign in to comment.