mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Setting width as doubles instead of ints.
This commit is contained in:
parent
6d5cc5cd0d
commit
0f9b195ad8
1 changed files with 3 additions and 3 deletions
|
|
@ -330,10 +330,10 @@ void
|
|||
ObjectPlot::set_width()
|
||||
{
|
||||
// Copy plotting width
|
||||
std::vector<int> pl_width;
|
||||
std::vector<double> pl_width;
|
||||
if (PLOT_TYPE::SLICE == type) {
|
||||
if (node_word_count(_plot_node, "width") == 2) {
|
||||
pl_width = get_node_array<int>(_plot_node, "width");
|
||||
pl_width = get_node_array<double>(_plot_node, "width");
|
||||
width[0] = pl_width[0];
|
||||
width[1] = pl_width[1];
|
||||
} else {
|
||||
|
|
@ -344,7 +344,7 @@ ObjectPlot::set_width()
|
|||
}
|
||||
} else if (PLOT_TYPE::VOXEL == type) {
|
||||
if (node_word_count(_plot_node, "width") == 3) {
|
||||
pl_width = get_node_array<int>(_plot_node, "width");
|
||||
pl_width = get_node_array<double>(_plot_node, "width");
|
||||
width[0] = pl_width[0];
|
||||
width[1] = pl_width[1];
|
||||
width[2] = pl_width[2];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue