From 7e9a36d92d73a67c11bd31524ffc002c3e96c45a Mon Sep 17 00:00:00 2001 From: Philipp Windischhofer Date: Thu, 22 Feb 2024 09:15:06 -0600 Subject: [PATCH] clean up debug printouts --- src/CylindricalWeightingFieldCalculator.cxx | 14 +------------- src/NDArrayOperations.hh | 8 ++++---- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/CylindricalWeightingFieldCalculator.cxx b/src/CylindricalWeightingFieldCalculator.cxx index 1fdeec6c8..7fe90c7e9 100644 --- a/src/CylindricalWeightingFieldCalculator.cxx +++ b/src/CylindricalWeightingFieldCalculator.cxx @@ -384,20 +384,14 @@ void CylindricalWeightingFieldCalculator::Calculate(std::filesystem::path outdir } cld.ind_t = stepcnt++; - std::cout << "entering saving chunkloop" << std::endl; m_f -> loop_in_chunks(meep::eisvogel_saving_chunkloop, static_cast(&cld), m_f -> total_volume()); - std::cout << "exit saving chunkloop" << std::endl; if((stepcnt % 400) == 0) { - std::cout << "start chunk merging" << std::endl; fstor -> MergeChunks(0, 400); - std::cout << "end chunk merging" << std::endl; } } - std::cout << "start chunk merging" << std::endl; fstor -> MergeChunks(0, 400); - std::cout << "end chunk merging" << std::endl; // TODO: again, will get better once the three separate arrays are gone // TODO: for large weighting fields, will have to move chunks to the permanent location continuously throughout the calculation so as not to fill up local storage @@ -418,13 +412,7 @@ void CylindricalWeightingFieldCalculator::Calculate(std::filesystem::path outdir if(meep::am_master()) { std::shared_ptr cwf = std::make_shared(outdir, *m_start_coords, *m_end_coords); - cwf -> MakeMetadataPersistent(); - - // Sometimes need to wait for all files to show up? - // std::this_thread::sleep_for(std::chrono::milliseconds(1000)); - - std::cout << "start defragmentation" << std::endl; + cwf -> MakeMetadataPersistent(); cwf -> RebuildChunks(requested_chunk_size); - std::cout << "end defragmentation" << std::endl; } } diff --git a/src/NDArrayOperations.hh b/src/NDArrayOperations.hh index e97c58c22..d868aa255 100644 --- a/src/NDArrayOperations.hh +++ b/src/NDArrayOperations.hh @@ -10,7 +10,7 @@ namespace NDArrayOps { template DenseNDArray concatenate(const DenseNDArray& arr_1, const DenseNDArray& arr_2, std::size_t axis) { - std::cout << " ---> START CONCATENATE <---" << std::endl; + // std::cout << " ---> START CONCATENATE <---" << std::endl; if(axis >= dims) { throw std::runtime_error("Error: 'axis' out of bounds"); @@ -39,7 +39,7 @@ namespace NDArrayOps { DenseNDArray retval(final_shape_crutch, 0.0); - std::cout << " ---> MIGRATE ARR_1 <---" << std::endl; + // std::cout << " ---> MIGRATE ARR_1 <---" << std::endl; // Migrate contents of arr_1 { @@ -51,7 +51,7 @@ namespace NDArrayOps { } } - std::cout << " ---> MIGRATE ARR_2 <---" << std::endl; + // std::cout << " ---> MIGRATE ARR_2 <---" << std::endl; // Migrate contents of arr_2 { @@ -68,7 +68,7 @@ namespace NDArrayOps { } } - std::cout << " ---> FINISH CONCATENATE <---" << std::endl; + // std::cout << " ---> FINISH CONCATENATE <---" << std::endl; return retval; }