mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Updating error messages. Adding cell instance cells to our distribcell set.
This commit is contained in:
parent
058e5a9094
commit
ca5dc796b9
4 changed files with 10 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue