Skip to content

Commit

Permalink
Made exemption for mat 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Nov 27, 2024
1 parent afbd1c2 commit 58ade28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion montepy/data_inputs/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ def get_material_elements(self):
return elements

def validate(self):
if len(self._components) == 0:
if len(self._components) == 0 and self.number != 0:
raise IllegalState(
f"Material: {self.number} does not have any components defined."
)
Expand Down

0 comments on commit 58ade28

Please sign in to comment.