Adding a function to determine the instance of a cell at any level of Particle::coords.

This commit is contained in:
Patrick Shriwise 2021-07-05 12:35:14 -05:00
parent c373d9548f
commit 4e3350ebcf
2 changed files with 36 additions and 14 deletions

View file

@ -40,6 +40,17 @@ inline bool coincident(double d1, double d2) {
bool check_cell_overlap(Particle& p, bool error=true);
//==============================================================================
//! Get the cell instance for a particle at the specified universe level
//!
//! \param p A particle for which to compute the instance using
//! it's vector of LocalCoord.
//! \param level The level (zero indexed) of the geometry where the instance should be computed.
//! \return The instance of the cell at the specified level.
//==============================================================================
int cell_instance_at_level(const Particle& p, int level);
//==============================================================================
//! Locate a particle in the geometry tree and set its geometry data fields.
//!