mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Making the dagmc attribute strictly a boolean type.
This commit is contained in:
parent
1e3497d607
commit
4c3ae5ee33
1 changed files with 2 additions and 2 deletions
|
|
@ -226,7 +226,7 @@ class Settings(object):
|
|||
self._create_fission_neutrons = None
|
||||
self._log_grid_bins = None
|
||||
|
||||
self._dagmc = None
|
||||
self._dagmc = False
|
||||
|
||||
@property
|
||||
def run_mode(self):
|
||||
|
|
@ -959,7 +959,7 @@ class Settings(object):
|
|||
elem.text = str(self._log_grid_bins)
|
||||
|
||||
def _create_dagmc_subelement(self, root):
|
||||
if self._dagmc is not None:
|
||||
if self._dagmc:
|
||||
elem = ET.SubElement(root, "dagmc")
|
||||
elem.text = str(self._dagmc).lower()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue