mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Updates to enable plotting of individual universe levels.
This commit is contained in:
parent
4fb66912a9
commit
e0689fda07
4 changed files with 23 additions and 12 deletions
|
|
@ -18,7 +18,7 @@ namespace openmc {
|
|||
namespace model {
|
||||
|
||||
extern int root_universe; //!< Index of root universe
|
||||
extern int n_coord_levels; //!< Number of CSG coordinate levels
|
||||
extern "C" int n_coord_levels; //!< Number of CSG coordinate levels
|
||||
|
||||
extern std::vector<int64_t> overlap_check_count;
|
||||
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ T PlotBase::get_map() const {
|
|||
// local variables
|
||||
bool found_cell = find_cell(p, 0);
|
||||
j = p.n_coord_ - 1;
|
||||
if (level >=0) {j = level + 1;}
|
||||
if (level >= 0) {j = level;}
|
||||
if (found_cell) {
|
||||
data.set_value(y, x, p, j);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue