More PR comment resolution.

This commit is contained in:
Patrick Shriwise 2018-10-30 20:13:36 -05:00
parent e5d8cdfc37
commit 3e36ed8e34
4 changed files with 25 additions and 33 deletions

View file

@ -36,7 +36,7 @@ header(const char* msg, int level) {
// Print header based on verbosity level.
if (settings::verbosity >= level) {
std::cout << out.str() << std::endl << std::endl;
std::cout << out.str() << "\n\n";
}
}
@ -64,64 +64,64 @@ void print_plot() {
for (auto pl : plots) {
// Plot id
std::cout << "Plot ID: " << pl.id_ << std::endl;
std::cout << "Plot ID: " << pl.id_ << "\n";
// Plot filename
std::cout << "Plot file: " << pl.path_plot_ << std::endl;
std::cout << "Plot file: " << pl.path_plot_ << "\n";
// Plot level
std::cout << "Universe depth: " << pl.level_ << std::endl;
std::cout << "Universe depth: " << pl.level_ << "\n";
// Plot type
if (PlotType::slice == pl.type_) {
std::cout << "Plot Type: Slice" << std::endl;
std::cout << "Plot Type: Slice" << "\n";
} else if (PlotType::voxel == pl.type_) {
std::cout << "Plot Type: Voxel" << std::endl;
std::cout << "Plot Type: Voxel" << "\n";
}
// Plot parameters
std::cout << "Origin: " << pl.origin_[0] << " "
<< pl.origin_[1] << " "
<< pl.origin_[2] << std::endl;
<< pl.origin_[2] << "\n";
if (PlotType::slice == pl.type_) {
std::cout << std::setprecision(4)
<< "Width: "
<< pl.width_[0] << " "
<< pl.width_[1] << std::endl;
<< pl.width_[1] << "\n";
} else if (PlotType::voxel == pl.type_) {
std::cout << std::setprecision(4)
<< "Width: "
<< pl.width_[0] << " "
<< pl.width_[1] << " "
<< pl.width_[2] << std::endl;
<< pl.width_[2] << "\n";
}
if (PlotColorBy::cells == pl.color_by_) {
std::cout << "Coloring: Cells" << std::endl;
std::cout << "Coloring: Cells" << "\n";
} else if (PlotColorBy::mats == pl.color_by_) {
std::cout << "Coloring: Materials" << std::endl;
std::cout << "Coloring: Materials" << "\n";
}
if (PlotType::slice == pl.type_) {
switch(pl.basis_) {
case PlotBasis::xy:
std::cout << "Basis: XY" << std::endl;
std::cout << "Basis: XY" << "\n";
break;
case PlotBasis::xz:
std::cout << "Basis: XZ" << std::endl;
std::cout << "Basis: XZ" << "\n";
break;
case PlotBasis::yz:
std::cout << "Basis: YZ" << std::endl;
std::cout << "Basis: YZ" << "\n";
break;
}
std::cout << "Pixels: " << pl.pixels_[0] << " "
<< pl.pixels_[1] << " " << std::endl;
<< pl.pixels_[1] << " " << "\n";
} else if (PlotType::voxel == pl.type_) {
std::cout << "Voxels: " << pl.pixels_[0] << " "
<< pl.pixels_[1] << " "
<< pl.pixels_[2] << std::endl;
<< pl.pixels_[2] << "\n";
}
std::cout << std::endl;
std::cout << "\n";
}
}