mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Merge pull request #1535 from paulromano/njoy-acethermal-fix
Make sure output_dir gets set for ThermalScattering.from_njoy
This commit is contained in:
commit
2f2b70cf24
1 changed files with 2 additions and 2 deletions
|
|
@ -766,8 +766,8 @@ class ThermalScattering(EqualityMixin):
|
|||
"""
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
# Run NJOY to create an ACE library
|
||||
kwargs.setdefault('ace', os.path.join(tmpdir, 'ace'))
|
||||
kwargs.setdefault('xsdir', os.path.join(tmpdir, 'xsdir'))
|
||||
kwargs.setdefault('output_dir', tmpdir)
|
||||
kwargs.setdefault('ace', os.path.join(kwargs['output_dir'], 'ace'))
|
||||
kwargs['evaluation'] = evaluation
|
||||
kwargs['evaluation_thermal'] = evaluation_thermal
|
||||
make_ace_thermal(filename, filename_thermal, temperatures, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue