mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Exposing print_plot through C. Using in input_xml now.
This commit is contained in:
parent
d11b90aa47
commit
41b58e0b9b
4 changed files with 26 additions and 74 deletions
|
|
@ -59,6 +59,7 @@ std::string time_stamp()
|
|||
//===============================================================================
|
||||
|
||||
void print_plot() {
|
||||
|
||||
header("PLOTTING SUMMARY", 5);
|
||||
|
||||
for (auto pl : plots) {
|
||||
|
|
@ -80,6 +81,25 @@ void print_plot() {
|
|||
std::cout << "Origin: " << pl->origin[0] << " "
|
||||
<< pl->origin[1] << " "
|
||||
<< pl->origin[2] << std::endl;
|
||||
|
||||
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) {
|
||||
std::cout << std::setprecision(4)
|
||||
<< "Width: "
|
||||
<< pl->width[0] << " "
|
||||
<< pl->width[1] << " "
|
||||
<< pl->width[2] << std::endl;
|
||||
}
|
||||
|
||||
if (PLOT_COLOR_BY::CELLS == pl->color_by) {
|
||||
std::cout << "Coloring: Cells" << std::endl;
|
||||
} else if (PLOT_COLOR_BY::MATS == pl->color_by) {
|
||||
std::cout << "Coloring: Materials" << std::endl;
|
||||
}
|
||||
|
||||
if (PLOT_TYPE::SLICE == pl->type) {
|
||||
switch(pl->basis) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue