diff --git a/redev.cpp b/redev.cpp index b122bf9..a6c8e42 100644 --- a/redev.cpp +++ b/redev.cpp @@ -27,7 +27,7 @@ namespace { std::this_thread::sleep_for(std::chrono::seconds(2)); } } - +// Testint the CI namespace redev { //TODO consider moving the ClassPtn source to another file @@ -243,8 +243,10 @@ namespace redev { assert(len==cuts.size()); auto ranksVar = io.DefineVariable(ranksVarName,{},{},{len}); auto cutsVar = io.DefineVariable(cutsVarName,{},{},{len}); + auto dimVar = io.DefineVariable(dimVarName); eng.Put(ranksVar, ranks.data()); eng.Put(cutsVar, cuts.data()); + eng.Put(dimVar, dim); eng.PerformPuts(); } @@ -253,17 +255,21 @@ namespace redev { const auto step = eng.CurrentStep(); auto ranksVar = io.InquireVariable(ranksVarName); auto cutsVar = io.InquireVariable(cutsVarName); + auto dimVar = io.InquireVariable(dimVarName); assert(ranksVar && cutsVar); + assert(dimVar); auto blocksInfo = eng.BlocksInfo(ranksVar,step); assert(blocksInfo.size()==1); ranksVar.SetBlockSelection(blocksInfo[0].BlockID); eng.Get(ranksVar, ranks); - blocksInfo = eng.BlocksInfo(ranksVar,step); + blocksInfo = eng.BlocksInfo(cutsVar,step); assert(blocksInfo.size()==1); - ranksVar.SetBlockSelection(blocksInfo[0].BlockID); + cutsVar.SetBlockSelection(blocksInfo[0].BlockID); eng.Get(cutsVar, cuts); + + eng.Get(dimVar, dim); eng.PerformGets(); //default read mode is deferred } diff --git a/redev_partition.h b/redev_partition.h index d270b19..01fa71f 100644 --- a/redev_partition.h +++ b/redev_partition.h @@ -178,6 +178,7 @@ class RCBPtn { private: const std::string ranksVarName = "rcb partition ranks"; const std::string cutsVarName = "rcb partition cuts"; + const std::string dimVarName = "rcb partition dim"; redev::LO dim; std::vector ranks; std::vector cuts;