mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Correcting a couple of issues in setting the OVERLAP value and color.
This commit is contained in:
parent
02b07a52b6
commit
5c78cd6259
3 changed files with 11 additions and 5 deletions
|
|
@ -108,7 +108,7 @@ public:
|
|||
Position width_; //!< Plot width in geometry
|
||||
PlotBasis basis_; //!< Plot basis (XY/XZ/YZ)
|
||||
std::array<size_t, 3> pixels_; //!< Plot size in pixels
|
||||
bool check_overlaps_ = false;
|
||||
bool color_overlaps_ = true;
|
||||
int level_; //!< Plot universe level
|
||||
};
|
||||
|
||||
|
|
@ -176,7 +176,7 @@ T PlotBase::get_map() const {
|
|||
if (found_cell) {
|
||||
data.set_value(y, x, p, j);
|
||||
}
|
||||
if (check_overlaps_ && check_cell_overlap(&p, false)) {
|
||||
if (color_overlaps_ && check_cell_overlap(&p, false)) {
|
||||
data.set_overlap(y, x);
|
||||
}
|
||||
} // inner for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue