From 14f6185744399413eaef85503b4ae5fc256262c6 Mon Sep 17 00:00:00 2001 From: Adam Nelson Date: Sun, 26 Feb 2017 05:39:20 -0500 Subject: [PATCH] resolved @wbinventor comments on the mesh and executor --- openmc/executor.py | 6 +++--- openmc/mesh.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openmc/executor.py b/openmc/executor.py index efc28a0b98..6f7e223110 100644 --- a/openmc/executor.py +++ b/openmc/executor.py @@ -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. diff --git a/openmc/mesh.py b/openmc/mesh.py index 4d97262924..6e3f2a2665 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -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] ...