mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Make creation of spatial trees based on usage for unstructured mesh. (#2815)
This commit is contained in:
parent
63916067ee
commit
4fa3fbcb19
3 changed files with 14 additions and 0 deletions
|
|
@ -75,6 +75,8 @@ public:
|
|||
virtual ~Mesh() = default;
|
||||
|
||||
// Methods
|
||||
//! Perform any preparation needed to support use in mesh filters
|
||||
virtual void prepare_for_tallies() {};
|
||||
|
||||
//! Update a position to the local coordinates of the mesh
|
||||
virtual void local_coords(Position& r) const {};
|
||||
|
|
@ -664,6 +666,9 @@ public:
|
|||
|
||||
// Overridden Methods
|
||||
|
||||
//! Perform any preparation needed to support use in mesh filters
|
||||
void prepare_for_tallies() override;
|
||||
|
||||
Position sample_element(int32_t bin, uint64_t* seed) const override;
|
||||
|
||||
void bins_crossed(Position r0, Position r1, const Direction& u,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue