mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Move get_bin implementation up to StructuredMesh base class. Refs #1695
This commit is contained in:
parent
bcc072e0a8
commit
9a36ea405a
2 changed files with 16 additions and 30 deletions
|
|
@ -105,6 +105,8 @@ public:
|
|||
StructuredMesh(pugi::xml_node node) : Mesh {node} {};
|
||||
virtual ~StructuredMesh() = default;
|
||||
|
||||
int get_bin(Position r) const override;
|
||||
|
||||
//! Get bin given mesh indices
|
||||
//
|
||||
//! \param[in] Array of mesh indices
|
||||
|
|
@ -171,9 +173,7 @@ public:
|
|||
void surface_bins_crossed(const Particle& p, std::vector<int>& bins)
|
||||
const override;
|
||||
|
||||
int get_bin(Position r) const override;
|
||||
|
||||
int get_index_in_direction(Position r, int i) const override;
|
||||
int get_index_in_direction(double r, int i) const override;
|
||||
|
||||
int n_bins() const override;
|
||||
|
||||
|
|
@ -215,9 +215,7 @@ public:
|
|||
void surface_bins_crossed(const Particle& p, std::vector<int>& bins)
|
||||
const override;
|
||||
|
||||
int get_bin(Position r) const override;
|
||||
|
||||
int get_index_in_direction(Position r, int i) const override;
|
||||
int get_index_in_direction(double r, int i) const override;
|
||||
|
||||
int n_bins() const override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue