diff --git a/src/cad.cpp b/src/cad.cpp index 9ab4e91f91..7680932db7 100644 --- a/src/cad.cpp +++ b/src/cad.cpp @@ -81,8 +81,8 @@ void load_cad_geometry_c() } } else { - std::cout << "Warning: volume without material found!" << std::endl; - c->material_.push_back(openmc::MATERIAL_VOID); + std::cout << c->id_ << std::endl; + openmc::fatal_error("A volume without a material was found."); } }