diff --git a/CMakeLists.txt b/CMakeLists.txt index da6fdb956..e367a4736 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/phasta/phCook.cc b/phasta/phCook.cc index 6b168efca..c2af9bd76 100644 --- a/phasta/phCook.cc +++ b/phasta/phCook.cc @@ -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){ @@ -375,4 +377,5 @@ namespace chef { out.grs = grs; ph::preprocess(m,in,out); } -} \ No newline at end of file +} +