mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 12:35:29 -04:00
Addressing some comments from @promano in the PR.
This commit is contained in:
parent
44654e7759
commit
2b1d2917f7
3 changed files with 17 additions and 17 deletions
12
src/plot.cpp
12
src/plot.cpp
|
|
@ -32,9 +32,9 @@ const RGBColor WHITE {255, 255, 255};
|
|||
constexpr int PLOT_LEVEL_LOWEST {-1}; //!< lower bound on plot universe level
|
||||
constexpr int32_t NOT_FOUND {-2};
|
||||
|
||||
IdData::IdData(int h_res, int v_res) {
|
||||
data_ = xt::xtensor<int32_t, 3>({v_res, h_res, 2}, NOT_FOUND);
|
||||
}
|
||||
IdData::IdData(int h_res, int v_res)
|
||||
: data_({v_res, h_res, 2}, NOT_FOUND)
|
||||
{ }
|
||||
|
||||
void
|
||||
IdData::set_value(int y, int x, const Particle& p, int level) {
|
||||
|
|
@ -49,9 +49,9 @@ IdData::set_value(int y, int x, const Particle& p, int level) {
|
|||
}
|
||||
}
|
||||
|
||||
PropertyData::PropertyData(int h_res, int v_res) {
|
||||
data_ = xt::xtensor<double, 3>({v_res, h_res, 2}, NOT_FOUND);
|
||||
}
|
||||
PropertyData::PropertyData(int h_res, int v_res)
|
||||
: data_({v_res, h_res, 2}, NOT_FOUND)
|
||||
{ }
|
||||
|
||||
void
|
||||
PropertyData::set_value(int y, int x, const Particle& p, int level) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue