mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
only reassign temps when not None
This commit is contained in:
parent
ac2ba93b3a
commit
affc62f09c
1 changed files with 2 additions and 1 deletions
|
|
@ -520,8 +520,9 @@ class Cell(IDManagerMixin):
|
|||
|
||||
clone = openmc.Cell()
|
||||
clone.name = self.name
|
||||
clone.temperature = self.temperature
|
||||
clone.volume = self.volume
|
||||
if self.temperature is not None:
|
||||
clone.temperature = self.temperature
|
||||
if self.translation is not None:
|
||||
clone.translation = self.translation
|
||||
if self.rotation is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue