Commit aa5c38ff authored by COULAUD Olivier's avatar COULAUD Olivier
Browse files

Fix bugs and improve comments

parent b814f5b1
......@@ -97,23 +97,11 @@ auto main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[]) -> int
parser.parse(argc, argv);
// Getting command line parameters
const int tree_height{parser.get<args::tree_height>()};
std::cout << scalfmm::colors::blue << "<params> Tree height : " << tree_height << scalfmm::colors::reset << '\n';
const int group_size{parser.get<args::block_size>()};
std::cout << scalfmm::colors::blue << "<params> Group Size : " << group_size << scalfmm::colors::reset << '\n';
const std::string input_file{parser.get<args::input_file>()};
if(!input_file.empty())
{
std::cout << scalfmm::colors::blue << "<params> Input file : " << input_file << scalfmm::colors::reset << '\n';
}
const auto output_file{parser.get<args::output_file>()};
if(!output_file.empty())
{
std::cout << scalfmm::colors::blue << "<params> Output file : " << output_file << scalfmm::colors::reset
<< '\n';
}
const auto order{parser.get<args::order>()};
bool use_particle_distribution{parser.exists<local_args::PartDistrib>()};
......@@ -124,9 +112,23 @@ auto main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[]) -> int
use_particle_distribution = true;
}
//
//
if(para.io_master())
{
std::cout << scalfmm::colors::blue << "<params> Tree height: " << tree_height << scalfmm::colors::reset << '\n';
std::cout << scalfmm::colors::blue << "<params> Group Size: " << group_size << scalfmm::colors::reset << '\n';
std::cout << scalfmm::colors::blue << "<params> order: " << order << scalfmm::colors::reset << '\n';
if(!input_file.empty())
{
std::cout << scalfmm::colors::blue << "<params> Input file: " << input_file << scalfmm::colors::reset
<< '\n';
}
std::cout << scalfmm::colors::blue << "<params> Output file: " << output_file << scalfmm::colors::reset << '\n';
std::cout << scalfmm::colors::blue << "<params> Particle Distribution: " << std::boolalpha
<< use_particle_distribution << scalfmm::colors::reset << '\n';
std::cout << scalfmm::colors::blue << "<params> Leaf Distribution: " << std::boolalpha
<< use_leaf_distribution << scalfmm::colors::reset << '\n';
}
///
///////////////////////////////////////////////////////////////////////////////////////////////////////
/// Read the data in parallel
///
......
......@@ -54,12 +54,12 @@ namespace scalfmm::component
std::string header;
if(verbose)
{
std::cout << "Tree distribution" << std::endl;
header = "leaf distribution: \n";
}
out::print(out, std::move(header), m_leaf_distrib);
for(int l = base_type::leaf_level(); l >= base_type::top_level(); --l)
{
std::cout << " print " << l << std::endl;
if(verbose)
{
header = "Level " + std::to_string(l) + " cell distribution: \n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment