mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Addressing style and other comments from @shikar413
This commit is contained in:
parent
50fb966a13
commit
6d5cc5cd0d
5 changed files with 75 additions and 88 deletions
|
|
@ -5,7 +5,7 @@
|
|||
#include <sstream>
|
||||
|
||||
#include "hdf5.h"
|
||||
#include "position.h"
|
||||
#include "openmc/position.h"
|
||||
#include "openmc/constants.h"
|
||||
#include "openmc/particle.h"
|
||||
#include "openmc/xml_interface.h"
|
||||
|
|
@ -16,16 +16,20 @@ namespace openmc {
|
|||
// Global variables
|
||||
//===============================================================================
|
||||
|
||||
constexpr int RED = 0;
|
||||
constexpr int GREEN = 1;
|
||||
constexpr int BLUE = 2;
|
||||
|
||||
extern int PLOT_LEVEL_LOWEST; //!< lower bound on plot universe level
|
||||
|
||||
extern std::map<int, int> plot_dict; //!< map of plot ids to index
|
||||
extern std::map<int, int> plot_map; //!< map of plot ids to index
|
||||
|
||||
extern int n_plots; //!< number of plots in openmc run
|
||||
|
||||
class ObjectPlot;
|
||||
extern std::vector<ObjectPlot*> plots; //!< Plot instance container
|
||||
|
||||
typedef std::vector< std::vector< std::vector<int> > > ImageData;
|
||||
typedef std::vector<std::vector< std::vector<int>>> ImageData;
|
||||
|
||||
enum PLOT_TYPE {
|
||||
SLICE = 1,
|
||||
|
|
@ -62,6 +66,9 @@ public:
|
|||
// Constructor
|
||||
ObjectPlot(pugi::xml_node plot);
|
||||
|
||||
// Destructor
|
||||
~ObjectPlot();
|
||||
|
||||
// Methods
|
||||
private:
|
||||
void set_id();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue