separate find_cell into two functions

This commit is contained in:
Gavin Ridley 2021-03-04 17:56:34 -05:00
parent a90a3fbcba
commit 1fa2c0e889
5 changed files with 40 additions and 48 deletions

View file

@ -135,7 +135,8 @@ std::vector<VolumeCalculation::Result> VolumeCalculation::execute() const
p.u() = {0.5, 0.5, 0.5};
// If this location is not in the geometry at all, move on to next block
if (!find_cell(p, false)) continue;
if (!brute_force_find_cell(p))
continue;
if (domain_type_ == TallyDomain::MATERIAL) {
if (p.material_ != MATERIAL_VOID) {