mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Updating Plot class member names.
This commit is contained in:
parent
a6830c9ca5
commit
1a7abf8147
3 changed files with 217 additions and 217 deletions
|
|
@ -64,45 +64,45 @@ void print_plot() {
|
|||
|
||||
for (auto pl : plots) {
|
||||
// Plot id
|
||||
std::cout << "Plot ID: " << pl.id << std::endl;
|
||||
std::cout << "Plot ID: " << pl.id_ << std::endl;
|
||||
// Plot filename
|
||||
std::cout << "Plot file: " << pl.path_plot << std::endl;
|
||||
std::cout << "Plot file: " << pl.path_plot_ << std::endl;
|
||||
// Plot level
|
||||
std::cout << "Universe depth: " << pl.level << std::endl;
|
||||
std::cout << "Universe depth: " << pl.level_ << std::endl;
|
||||
|
||||
// Plot type
|
||||
if (plot_type::slice == pl.type) {
|
||||
if (plot_type::slice == pl.type_) {
|
||||
std::cout << "Plot Type: Slice" << std::endl;
|
||||
} else if (plot_type::voxel == pl.type) {
|
||||
} else if (plot_type::voxel == pl.type_) {
|
||||
std::cout << "Plot Type: Voxel" << std::endl;
|
||||
}
|
||||
|
||||
// Plot parameters
|
||||
std::cout << "Origin: " << pl.origin[0] << " "
|
||||
<< pl.origin[1] << " "
|
||||
<< pl.origin[2] << std::endl;
|
||||
std::cout << "Origin: " << pl.origin_[0] << " "
|
||||
<< pl.origin_[1] << " "
|
||||
<< pl.origin_[2] << std::endl;
|
||||
|
||||
if (plot_type::slice == pl.type) {
|
||||
if (plot_type::slice == pl.type_) {
|
||||
std::cout << std::setprecision(4)
|
||||
<< "Width: "
|
||||
<< pl.width[0] << " "
|
||||
<< pl.width[1] << std::endl;
|
||||
} else if (plot_type::voxel == pl.type) {
|
||||
<< pl.width_[0] << " "
|
||||
<< pl.width_[1] << std::endl;
|
||||
} else if (plot_type::voxel == pl.type_) {
|
||||
std::cout << std::setprecision(4)
|
||||
<< "Width: "
|
||||
<< pl.width[0] << " "
|
||||
<< pl.width[1] << " "
|
||||
<< pl.width[2] << std::endl;
|
||||
<< pl.width_[0] << " "
|
||||
<< pl.width_[1] << " "
|
||||
<< pl.width_[2] << std::endl;
|
||||
}
|
||||
|
||||
if (plot_color_by::cells == pl.color_by) {
|
||||
if (plot_color_by::cells == pl.color_by_) {
|
||||
std::cout << "Coloring: Cells" << std::endl;
|
||||
} else if (plot_color_by::mats == pl.color_by) {
|
||||
} else if (plot_color_by::mats == pl.color_by_) {
|
||||
std::cout << "Coloring: Materials" << std::endl;
|
||||
}
|
||||
|
||||
if (plot_type::slice == pl.type) {
|
||||
switch(pl.basis) {
|
||||
if (plot_type::slice == pl.type_) {
|
||||
switch(pl.basis_) {
|
||||
case plot_basis::xy:
|
||||
std::cout << "Basis: XY" << std::endl;
|
||||
break;
|
||||
|
|
@ -113,12 +113,12 @@ void print_plot() {
|
|||
std::cout << "Basis: YZ" << std::endl;
|
||||
break;
|
||||
}
|
||||
std::cout << "Pixels: " << pl.pixels[0] << " "
|
||||
<< pl.pixels[1] << " " << std::endl;
|
||||
} else if (plot_type::voxel == pl.type) {
|
||||
std::cout << "Voxels: " << pl.pixels[0] << " "
|
||||
<< pl.pixels[1] << " "
|
||||
<< pl.pixels[2] << std::endl;
|
||||
std::cout << "Pixels: " << pl.pixels_[0] << " "
|
||||
<< pl.pixels_[1] << " " << std::endl;
|
||||
} else if (plot_type::voxel == pl.type_) {
|
||||
std::cout << "Voxels: " << pl.pixels_[0] << " "
|
||||
<< pl.pixels_[1] << " "
|
||||
<< pl.pixels_[2] << std::endl;
|
||||
}
|
||||
|
||||
std::cout << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue