From 8021990b36af5973e56f20cfb200736a1a9d7d98 Mon Sep 17 00:00:00 2001 From: Gangwar Date: Thu, 2 Oct 2025 14:20:03 -0400 Subject: [PATCH 1/4] add_rcb_dim_r/w --- redev.cpp | 10 ++++++++-- redev_partition.h | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/redev.cpp b/redev.cpp index b122bf9..1b3759e 100644 --- a/redev.cpp +++ b/redev.cpp @@ -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(dimVar,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; From cb652a5b20ebeaa7c7d41fba764c9de578c8be6c Mon Sep 17 00:00:00 2001 From: Gangwar Date: Fri, 3 Oct 2025 21:03:48 -0400 Subject: [PATCH 2/4] fix_rcbptn_dim --- redev.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redev.cpp b/redev.cpp index 1b3759e..36fda75 100644 --- a/redev.cpp +++ b/redev.cpp @@ -264,7 +264,7 @@ namespace redev { ranksVar.SetBlockSelection(blocksInfo[0].BlockID); eng.Get(ranksVar, ranks); - blocksInfo = eng.BlocksInfo(dimVar,step); + blocksInfo = eng.BlocksInfo(cutsVar,step); assert(blocksInfo.size()==1); cutsVar.SetBlockSelection(blocksInfo[0].BlockID); eng.Get(cutsVar, cuts); From 46b9d22a45c2df8d0714f32e6ab8d54605f94eed Mon Sep 17 00:00:00 2001 From: Gangwar Date: Fri, 3 Oct 2025 22:00:57 -0400 Subject: [PATCH 3/4] testing_CI --- redev.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redev.cpp b/redev.cpp index 36fda75..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 From fbe9dae511580e782a65cdfe5cc52d43048ce67f Mon Sep 17 00:00:00 2001 From: Gangwar Date: Mon, 20 Oct 2025 14:55:07 -0400 Subject: [PATCH 4/4] minor_fix --- redev.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/redev.cpp b/redev.cpp index a6c8e42..a59481a 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 @@ -264,9 +264,9 @@ namespace redev { ranksVar.SetBlockSelection(blocksInfo[0].BlockID); eng.Get(ranksVar, ranks); - blocksInfo = eng.BlocksInfo(cutsVar,step); - assert(blocksInfo.size()==1); - cutsVar.SetBlockSelection(blocksInfo[0].BlockID); + auto blockscutsInfo = eng.BlocksInfo(cutsVar,step); + assert(blockscutsInfo.size()==1); + cutsVar.SetBlockSelection(blockscutsInfo[0].BlockID); eng.Get(cutsVar, cuts); eng.Get(dimVar, dim);