Updating error messages. Adding cell instance cells to our distribcell set.

This commit is contained in:
Patrick Shriwise 2021-07-29 10:53:14 -05:00
parent 058e5a9094
commit ca5dc796b9
4 changed files with 10 additions and 6 deletions

View file

@ -67,8 +67,8 @@ bool check_cell_overlap(Particle& p, bool error)
int cell_instance_at_level(const Particle& p, int level) {
// throw error if the requested level is too deep for the geometry
if (level > p.n_coord()) {
fatal_error(fmt::format("Cell instance at level {} requested, but only {} levels exist in the model.", level, p.n_coord()));
if (level > model::n_coord_levels) {
fatal_error(fmt::format("Cell instance at level {} requested, but only {} levels exist in the geometry.", level, p.n_coord()));
}
// determine the cell instance