Use interoperable TallyDerivative structs

This commit is contained in:
Sterling Harper 2019-01-26 13:53:01 -05:00
parent 06caf67ccf
commit 9f6a7466e2
11 changed files with 139 additions and 158 deletions

View file

@ -12,7 +12,7 @@
namespace openmc {
struct TallyDerivative {
extern "C" struct TallyDerivative {
int id; //!< User-defined identifier
int variable; //!< Independent variable (like temperature)
int diff_material; //!< Material this derivative is applied to

View file

@ -39,8 +39,10 @@ public:
int surface_filter_ {C_NONE};
int mesh_filter_ {C_NONE};
int deriv_ {F90_NONE}; //!< Index of a TallyDerivative object for diff tallies.
private:
std::vector<int32_t> filters_; //< Filter indices in global filters array
std::vector<int32_t> filters_; //!< Filter indices in global filters array
//! Index strides assigned to each filter to support 1D indexing.
std::vector<int32_t> strides_;