Correction to n_coord reset on particle for proper handling of universes.

Renaming CPlot to PlotBase and adding a capi test.

Mirroring use of Bank in the capi.

Updating header name. Adding documentation to capi plot module.

Removing plot base header and struct.
This commit is contained in:
Patrick Shriwise 2019-03-05 19:24:38 -06:00
parent b0bafee385
commit a371f402a2
5 changed files with 125 additions and 53 deletions

View file

@ -20,7 +20,7 @@ namespace openmc {
//===============================================================================
class Plot;
class PlotC;
namespace model {
@ -74,21 +74,16 @@ enum class PlotColorBy {
//===============================================================================
// Plot class
//===============================================================================
// plot class for interaction with external code
class CPlot {
public:
struct Slice {
// Members
Position origin_; //!< Plot origin in geometry
Position width_; //!< Plot width in geometry
PlotBasis basis_; //!< Plot basis (XY/XZ/YZ)
std::array<int, 3> pixels_; //!< Plot size in pixels
int pixels_[3]; //!< Plot size in pixels
int level_; //!< Plot universe level
};
class Plot : public CPlot
class Plot : public Slice
{
public: