mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Use interoperable TallyDerivative structs
This commit is contained in:
parent
06caf67ccf
commit
9f6a7466e2
11 changed files with 139 additions and 158 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue