openmc-dev / openmc

OpenMC Monte Carlo Code
https://docs.openmc.org
Other
701 stars 450 forks source link

Enforce lower_left in lattice geometry #2982

Open kmeag opened 2 weeks ago

kmeag commented 2 weeks ago

Description

When exporting a lattice geometry to XML without the lower_left specified, an error is thrown that is hard to debug. I localized this in the code and threw a helpful error so that a user is less frustrated when this happens.

ValueError: Lattice 1 <lower_left> has not been specified.

Fixes #2902

Checklist