From e309939cd6d5f9336db0e8a2aa8d00b4c9ef363f Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Mon, 18 Nov 2024 23:04:08 +0000 Subject: [PATCH] cts: rm cnt static in plotSolution Signed-off-by: Matt Liberty --- src/cts/src/HTreeBuilder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cts/src/HTreeBuilder.cpp b/src/cts/src/HTreeBuilder.cpp index efb8081f2ad..665b7151971 100644 --- a/src/cts/src/HTreeBuilder.cpp +++ b/src/cts/src/HTreeBuilder.cpp @@ -1954,8 +1954,7 @@ void HTreeBuilder::createSingleBufferClockNet() void HTreeBuilder::plotSolution() { - static int cnt = 0; - auto name = std::string("plot") + std::to_string(cnt++) + ".py"; + auto name = std::string("plot_") + clock_.getName() + ".py"; std::ofstream file(name); file << "import numpy as np\n"; file << "import matplotlib.pyplot as plt\n";