From b42a04cc7614d2c68b6ba707df0f588984a0d981 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Fri, 30 Jul 2021 10:42:11 -0500 Subject: [PATCH] Adding comment to cell_instance_at_level. --- src/geometry.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/geometry.cpp b/src/geometry.cpp index 7eb7316605..f38f649f34 100644 --- a/src/geometry.cpp +++ b/src/geometry.cpp @@ -74,6 +74,7 @@ int cell_instance_at_level(const Particle& p, int level) { // determine the cell instance Cell& c {*model::cells[p.coord(level).cell]}; + // quick exit if this cell doesn't have distribcell instances if (c.distribcell_index_ == C_NONE) return C_NONE; int instance = 0;