mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 12:35:29 -04:00
Removing original loop from create_ppm.
This commit is contained in:
parent
eb95c91a2d
commit
4c50cbcda8
1 changed files with 4 additions and 1 deletions
|
|
@ -4,6 +4,8 @@
|
|||
#include <fstream>
|
||||
#include <sstream>
|
||||
|
||||
#include "xtensor/xview.hpp"
|
||||
|
||||
#include "openmc/cell.h"
|
||||
#include "openmc/constants.h"
|
||||
#include "openmc/file_utils.h"
|
||||
|
|
@ -132,7 +134,8 @@ void create_ppm(Plot pl)
|
|||
// double in_pixel = (pl.width_[0])/static_cast<double>(width);
|
||||
// double out_pixel = (pl.width_[1])/static_cast<double>(height);
|
||||
|
||||
ImageData data({width, height}, pl.not_found_);
|
||||
ImageData data({width, height});
|
||||
xt::view(data, xt::all(), xt::all()) = pl.not_found_;
|
||||
|
||||
// int in_i, out_i;
|
||||
// Position r;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue