Skip to content

Commit

Permalink
Actually appended the objects to self.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Nov 22, 2024
1 parent c8b5187 commit a2d6081
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion montepy/mcnp_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,8 +667,15 @@ def parse(self, input: str):
obj.link_to_problem(self)
if isinstance(obj, montepy.Cell):
obj.update_pointers(self.cells, self.materials, self.surfaces)
elif isinstance(obj, montepy.surfaces.Surface):
self.cells.append(obj)
elif isinstance(obj, montepy.surfaces.surface.Surface):
obj.update_pointers(self.surfaces, self.data_inputs)
self.surfaces.append(obj)
else:
obj.update_pointers(self.data_inputs)
self.data_inputs.append(obj)
if isinstance(obj, Material):
self._materials.append(obj, False)
if isinstance(obj, transform.Transform):
self._transforms.append(obj, False)
return obj

0 comments on commit a2d6081

Please sign in to comment.