diff --git a/smr/build-assembly-long.py b/smr/build-assembly-long.py index 75373b9..cca7640 100644 --- a/smr/build-assembly-long.py +++ b/smr/build-assembly-long.py @@ -18,8 +18,10 @@ from smr.pins import pin_universes, make_stack # Define command-line options parser = argparse.ArgumentParser() -parser.add_argument('-m', '--multipole', action='store_true', - help='Whether to use multipole cross sections') +parser.add_argument('--multipole', action='store_true', + help='Use multipole cross sections') +parser.add_argument('--no-multipole', action='store_false', + help='Do not use multipole cross sections') parser.add_argument('-t', '--tallies', choices=('cell', 'mat'), default='mat', help='Whether to use distribmats or distribcells for tallies') parser.add_argument('-a', '--axial', type=int, default=92, @@ -27,6 +29,7 @@ parser.add_argument('-a', '--axial', type=int, default=92, parser.add_argument('-d', '--depleted', action='store_true', help='Whether UO2 compositions should represent depleted fuel') parser.add_argument('-o', '--output-dir', type=Path, default=None) +parser.set_defaults(multipole=True) args = parser.parse_args() # Make directory for inputs diff --git a/smr/build-assembly-short.py b/smr/build-assembly-short.py index 64999fc..c06c67b 100644 --- a/smr/build-assembly-short.py +++ b/smr/build-assembly-short.py @@ -17,8 +17,10 @@ from smr.pins import pin_universes # Define command-line options parser = argparse.ArgumentParser() -parser.add_argument('-m', '--multipole', action='store_true', - help='Whether to use multipole cross sections') +parser.add_argument('--multipole', action='store_true', + help='Use multipole cross sections') +parser.add_argument('--no-multipole', action='store_false', + help='Do not use multipole cross sections') parser.add_argument('-t', '--tallies', choices=('cell', 'mat'), default='mat', help='Whether to use distribmats or distribcells for tallies') parser.add_argument('-a', '--axial', type=int, default=10, @@ -26,6 +28,7 @@ parser.add_argument('-a', '--axial', type=int, default=10, parser.add_argument('-d', '--depleted', action='store_true', help='Whether UO2 compositions should represent depleted fuel') parser.add_argument('-o', '--output-dir', type=Path, default=None) +parser.set_defaults(multipole=True) args = parser.parse_args() # Make directory for inputs diff --git a/smr/build-assembly.py b/smr/build-assembly.py index e399b45..327f3bc 100644 --- a/smr/build-assembly.py +++ b/smr/build-assembly.py @@ -17,8 +17,10 @@ from smr import inlet_temperature # Define command-line options parser = argparse.ArgumentParser() -parser.add_argument('-m', '--multipole', action='store_true', - help='Whether to use multipole cross sections') +parser.add_argument('--multipole', action='store_true', + help='Use multipole cross sections') +parser.add_argument('--no-multipole', action='store_false', + help='Do not use multipole cross sections') parser.add_argument('-t', '--tallies', choices=('cell', 'mat'), default='mat', help='Whether to use distribmats or distribcells for tallies') parser.add_argument('-r', '--rings', type=int, default=10, @@ -28,6 +30,7 @@ parser.add_argument('-a', '--axial', type=int, default=196, parser.add_argument('-d', '--depleted', action='store_true', help='Whether UO2 compositions should represent depleted fuel') parser.add_argument('-o', '--output-dir', type=Path, default=None) +parser.set_defaults(multipole=True) args = parser.parse_args() # Make directory for inputs diff --git a/smr/build-core-fresh.py b/smr/build-core-fresh.py index caba492..1272f3b 100644 --- a/smr/build-core-fresh.py +++ b/smr/build-core-fresh.py @@ -25,8 +25,10 @@ def clone(mat): # Define command-line options parser = argparse.ArgumentParser() -parser.add_argument('-m', '--multipole', action='store_true', - help='Whether to use multipole cross sections') +parser.add_argument('--multipole', action='store_true', + help='Use multipole cross sections') +parser.add_argument('--no-multipole', action='store_false', + help='Do not use multipole cross sections') parser.add_argument('-t', '--tallies', choices=('cell', 'mat'), default='cell', help='Whether to use distribmats or distribcells for tallies') parser.add_argument('-r', '--rings', type=int, default=10, @@ -36,6 +38,7 @@ parser.add_argument('-a', '--axial', type=int, default=196, parser.add_argument('-d', '--depleted', action='store_true', help='Whether UO2 compositions should represent depleted fuel') parser.add_argument('-o', '--output-dir', type=Path, default=None) +parser.set_defaults(multipole=True) args = parser.parse_args() # Make directory for inputs