mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
enable mcpl from the python layer
if the source filename ends with mcpl use that
This commit is contained in:
parent
4623cb4c9c
commit
e3f1bdaca1
1 changed files with 4 additions and 1 deletions
|
|
@ -223,7 +223,10 @@ class Source:
|
|||
if self.particle != 'neutron':
|
||||
element.set("particle", self.particle)
|
||||
if self.file is not None:
|
||||
element.set("file", self.file)
|
||||
if (self.file.endswith('.mcpl')):
|
||||
element.set("mcpl", self.file)
|
||||
else:
|
||||
element.set("file", self.file)
|
||||
if self.library is not None:
|
||||
element.set("library", self.library)
|
||||
if self.parameters is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue