resolved @wbinventor comments on the mesh and executor

This commit is contained in:
Adam Nelson 2017-02-26 05:39:20 -05:00
parent 6aa561c291
commit 14f6185744
2 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@ import sys
from six import string_types
summary_indicator = "TIMING STATISTICS"
_summary_indicator = "TIMING STATISTICS"
def _run(command, output, cwd):
@ -25,7 +25,7 @@ def _run(command, output, cwd):
if output == 'full':
# If user requested output, print to screen
print(line, end='')
elif output == 'summary' and summary_indicator in line:
elif output == 'summary' and _summary_indicator in line:
# If they requested a summary, look for the start of the summary
storage_flag = True
@ -56,7 +56,7 @@ def plot_geometry(output=True, openmc_exec='openmc', cwd='.'):
def run(particles=None, threads=None, geometry_debug=False,
restart_file=None, tracks=False, output="full", cwd='.',
restart_file=None, tracks=False, output='full', cwd='.',
openmc_exec='openmc', mpi_args=None):
"""Run an OpenMC simulation.

View file

@ -188,8 +188,8 @@ class Mesh(EqualityMixin):
return mesh
def cell_generator(self):
"""Generator function to traverse through every [i,j,k] index
of the mesh in the same order that would be done by the Fortran
"""Generator function to traverse through every [i,j,k] index of the
mesh
For example the following code:
@ -202,8 +202,8 @@ class Mesh(EqualityMixin):
[1, 1, 1]
[2, 1, 1]
[1, 1, 2]
[1, 2, 1]
[2, 2, 1]
...