diff --git a/.gitignore b/.gitignore index 85ba2945a4..815e978510 100644 --- a/.gitignore +++ b/.gitignore @@ -43,6 +43,8 @@ results_test.dat # Test build files tests/build/ +tests/coverage/ +tests/memcheck/ tests/ctestscript.run # HDF5 files @@ -60,6 +62,7 @@ data/nndc #Images *.ppm +*.voxel # PyCharm project configuration files .idea diff --git a/CMakeLists.txt b/CMakeLists.txt index 18d028a4bc..7df8eaedb0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -313,113 +313,36 @@ include(CTest) # Get a list of all the tests to run file(GLOB_RECURSE TESTS ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_*.py) -# Check for MEM_CHECK and COVERAGE variables -if (DEFINED ENV{MEM_CHECK}) - set(MEM_CHECK $ENV{MEM_CHECK}) -else(DEFINED ENV{MEM_CHECK}) - set(MEM_CHECK FALSE) -endif(DEFINED ENV{MEM_CHECK}) -if (DEFINED ENV{COVERAGE}) - set(COVERAGE $ENV{COVERAGE}) -else(DEFINED ENV{COVERAGE}) - set(COVERAGE FALSE) -endif(DEFINED ENV{COVERAGE}) - # Loop through all the tests foreach(test ${TESTS}) - # Get test information get_filename_component(TEST_NAME ${test} NAME) get_filename_component(TEST_PATH ${test} PATH) - # Check for running standard tests (no valgrind, no gcov) - if(NOT ${MEM_CHECK} AND NOT ${COVERAGE}) + if (DEFINED ENV{MEM_CHECK}) + # Generate input files if needed + if (NOT EXISTS "${TEST_PATH}/geometry.xml") + execute_process(COMMAND ${PYTHON_EXECUTABLE} ${TEST_NAME} --build-inputs + WORKING_DIRECTORY ${TEST_PATH}) + endif() + # Add serial test + add_test(NAME ${TEST_NAME} + WORKING_DIRECTORY ${TEST_PATH} + COMMAND $) + else() # Check serial/parallel if (${MPI_ENABLED}) - # Preform a parallel test add_test(NAME ${TEST_NAME} WORKING_DIRECTORY ${TEST_PATH} COMMAND ${PYTHON_EXECUTABLE} ${TEST_NAME} --exe $ --mpi_exec $ENV{MPI_DIR}/bin/mpiexec) - - else(${MPI_ENABLED}) - + else() # Perform a serial test add_test(NAME ${TEST_NAME} WORKING_DIRECTORY ${TEST_PATH} COMMAND ${PYTHON_EXECUTABLE} ${TEST_NAME} --exe $) - - endif(${MPI_ENABLED}) - - # Handle special case for valgrind and gcov (run openmc directly, no python) - else(NOT ${MEM_CHECK} AND NOT ${COVERAGE}) - - # If a plot test is encountered, run with "-p" - if (${test} MATCHES "test_plot") - - # Perform serial valgrind and coverage test with plot flag - add_test(NAME ${TEST_NAME} - WORKING_DIRECTORY ${TEST_PATH} - COMMAND $ -p ${TEST_PATH}) - - elseif(${test} MATCHES "test_filter_distribcell") - - # Add each case for distribcell tests - add_test(NAME ${TEST_NAME}_case-1 - WORKING_DIRECTORY ${TEST_PATH}/case-1 - COMMAND $ ${TEST_PATH}/case-1) - add_test(NAME ${TEST_NAME}_case-2 - WORKING_DIRECTORY ${TEST_PATH}/case-2 - COMMAND $ ${TEST_PATH}/case-2) - add_test(NAME ${TEST_NAME}_case-3 - WORKING_DIRECTORY ${TEST_PATH}/case-3 - COMMAND $ ${TEST_PATH}/case-3) - add_test(NAME ${TEST_NAME}_case-4 - WORKING_DIRECTORY ${TEST_PATH}/case-4 - COMMAND $ ${TEST_PATH}/case-4) - - # If a restart test is encounted, need to run with -r and restart file(s) - elseif(${test} MATCHES "restart") - - # Handle restart tests separately - if(${test} MATCHES "test_statepoint_restart") - set(RESTART_FILE statepoint.07.h5) - elseif(${test} MATCHES "test_sourcepoint_restart") - set(RESTART_FILE statepoint.07.h5 source.07.h5) - elseif(${test} MATCHES "test_particle_restart_eigval") - set(RESTART_FILE particle_9_555.h5) - elseif(${test} MATCHES "test_particle_restart_fixed") - set(RESTART_FILE particle_7_928.h5) - else(${test} MATCHES "test_statepoint_restart") - message(FATAL_ERROR "Restart test ${test} not recognized") - endif(${test} MATCHES "test_statepoint_restart") - - # Perform serial valgrind and coverage test - add_test(NAME ${TEST_NAME} - WORKING_DIRECTORY ${TEST_PATH} - COMMAND $ ${TEST_PATH}) - - # Perform serial valgrind and coverage restart test - add_test(NAME ${TEST_NAME}_restart - WORKING_DIRECTORY ${TEST_PATH} - COMMAND $ -r ${RESTART_FILE} ${TEST_PATH}) - - # Set test dependency - set_tests_properties(${TEST_NAME}_restart PROPERTIES DEPENDS ${TEST_NAME}) - - - # Handle standard tests for valgrind and gcov - else(${test} MATCHES "test_plot") - - # Perform serial valgrind and coverage test - add_test(NAME ${TEST_NAME} - WORKING_DIRECTORY ${TEST_PATH} - COMMAND $ ${TEST_PATH}) - - endif(${test} MATCHES "test_plot") - - endif(NOT ${MEM_CHECK} AND NOT ${COVERAGE}) - + endif() + endif() endforeach(test) diff --git a/src/relaxng/tallies.rnc b/src/relaxng/tallies.rnc index 0f3672c6f2..cc327f8048 100644 --- a/src/relaxng/tallies.rnc +++ b/src/relaxng/tallies.rnc @@ -19,8 +19,8 @@ element tallies { (element id { xsd:int } | attribute id { xsd:int }) & (element name { xsd:string { maxLength="52" } } | attribute name { xsd:string { maxLength="52" } })? & - (element estimator { ( "analog" | "tracklength" ) } | - attribute estimator { ( "analog" | "tracklength" ) })? & + (element estimator { ( "analog" | "tracklength" | "collision" ) } | + attribute estimator { ( "analog" | "tracklength" | "collision" ) })? & element filter { (element type { ( "cell" | "cellborn" | "material" | "universe" | "surface" | "distribcell" | "mesh" | "energy" | "energyout" | "mu" | diff --git a/src/relaxng/tallies.rng b/src/relaxng/tallies.rng index 36bd5cb85f..755e9e90dc 100644 --- a/src/relaxng/tallies.rng +++ b/src/relaxng/tallies.rng @@ -120,12 +120,14 @@ analog tracklength + collision analog tracklength + collision diff --git a/tests/cleanup b/tests/cleanup deleted file mode 100755 index 3369c797ee..0000000000 --- a/tests/cleanup +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# This simple script ensures that all binary -# output files have been deleted in all the -# folders. This can occur if a previous error -# occurred and the test suite was rerun without -# deleting left over binary files. This will -# cause an assertion error in some of the -# tests. -find . \( -name "*.h5" -o -name "*.ppm" \) -exec rm -f {} \; diff --git a/tests/run_tests.py b/tests/run_tests.py index 338732c142..48fc23d4af 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -8,7 +8,7 @@ import shutil import re import glob import socket -from subprocess import call +from subprocess import call, check_output from collections import OrderedDict from optparse import OptionParser @@ -42,9 +42,9 @@ parser.add_option("-s", "--script", action="store_true", dest="script", # Default compiler paths FC='gfortran' -MPI_DIR='/opt/mpich/3.1.3-gnu' -HDF5_DIR='/opt/hdf5/1.8.15-gnu' -PHDF5_DIR='/opt/phdf5/1.8.15-gnu' +MPI_DIR='/opt/mpich/3.2-gnu' +HDF5_DIR='/opt/hdf5/1.8.16-gnu' +PHDF5_DIR='/opt/phdf5/1.8.16-gnu' # Script mode for extra capability script_mode = False @@ -73,11 +73,13 @@ set(CTEST_UPDATE_COMMAND "git") set(CTEST_CONFIGURE_COMMAND "${{CMAKE_COMMAND}} -H${{CTEST_SOURCE_DIRECTORY}} -B${{CTEST_BINARY_DIRECTORY}} ${{CTEST_BUILD_OPTIONS}}") set(CTEST_MEMORYCHECK_COMMAND "{valgrind_cmd}") set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes") -set(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE ${{CTEST_SOURCE_DIRECTORY}}/../tests/valgrind.supp) +#set(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE ${{CTEST_SOURCE_DIRECTORY}}/../tests/valgrind.supp) set(MEM_CHECK {mem_check}) +if(MEM_CHECK) set(ENV{{MEM_CHECK}} ${{MEM_CHECK}}) +endif() -set(CTEST_COVERAGE_COMMAND "{gcov_cmd}") +set(CTEST_COVERAGE_COMMAND "gcov") set(COVERAGE {coverage}) set(ENV{{COVERAGE}} ${{COVERAGE}}) @@ -87,9 +89,11 @@ ctest_start("{dashboard}") ctest_configure(RETURN_VALUE res) {update} ctest_build(RETURN_VALUE res) +if(NOT MEM_CHECK) ctest_test({tests} PARALLEL_LEVEL {n_procs}, RETURN_VALUE res) +endif() if(MEM_CHECK) -ctest_memcheck({tests}, RETURN_VALUE res) +ctest_memcheck({tests} RETURN_VALUE res) endif(MEM_CHECK) if(COVERAGE) ctest_coverage(RETURN_VALUE res) @@ -105,6 +109,32 @@ endif() # Define test data structure tests = OrderedDict() +def cleanup(path): + """Remove generated output files.""" + for dirpath, dirnames, filenames in os.walk(path): + for fname in filenames: + for ext in ['.h5', '.ppm', '.voxel']: + if fname.endswith(ext): + os.remove(os.path.join(dirpath, fname)) + + +def which(program): + def is_exe(fpath): + return os.path.isfile(fpath) and os.access(fpath, os.X_OK) + + fpath, fname = os.path.split(program) + if fpath: + if is_exe(program): + return program + else: + for path in os.environ["PATH"].split(os.pathsep): + path = path.strip('"') + exe_file = os.path.join(path, program) + if is_exe(exe_file): + return exe_file + return None + + class Test(object): def __init__(self, name, debug=False, optimize=False, mpi=False, openmp=False, phdf5=False, valgrind=False, coverage=False): @@ -119,8 +149,6 @@ class Test(object): self.success = True self.msg = None self.skipped = False - self.valgrind_cmd = "" - self.gcov_cmd = "" self.cmake = ['cmake', '-H..', '-Bbuild', '-DPYTHON_EXECUTABLE=' + sys.executable] @@ -231,42 +259,6 @@ class Test(object): self.success = False self.msg = 'Failed on testing.' - # Checks to see if file exists in PWD or PATH - def check_compiler(self): - result = False - if os.path.isfile(self.fc): - result = True - for path in os.environ["PATH"].split(":"): - if os.path.isfile(os.path.join(path, self.fc)): - result = True - if not result: - self.msg = 'Compiler not found: {0}'.\ - format((os.path.join(path, self.fc))) - self.success = False - - # Get valgrind command from user's environment - def find_valgrind(self): - result = False - for path in os.environ["PATH"].split(":"): - if os.path.isfile(os.path.join(path, 'valgrind')): - self.valgrind_cmd = os.path.join(path, 'valgrind') - result = True - break - if not result: - self.msg = 'valgrind not found.' - self.success = False - - # Get coverage command from user's environment - def find_coverage(self): - result = False - for path in os.environ["PATH"].split(":"): - if os.path.isfile(os.path.join(path, 'gcov')): - self.gcov_cmd = os.path.join(path, 'gcov') - result = True - break - if not result: - self.msg = 'gcov not found.' - self.success = False # Simple function to add a test to the global tests dictionary def add_test(name, debug=False, optimize=False, mpi=False, openmp=False,\ @@ -342,7 +334,7 @@ else: # Setup CTest script vars. Not used in non-script mode pwd = os.getcwd() ctest_vars = { - 'source_dir': os.path.join(pwd, '..'), + 'source_dir': os.path.join(pwd, os.pardir), 'build_dir': os.path.join(pwd, 'build'), 'host_name': socket.gethostname(), 'dashboard': dash, @@ -363,10 +355,10 @@ else: # Set up default valgrind tests (subset of all tests) # Currently takes too long to run all the tests with valgrind # Only used in script mode -valgrind_default_tests = "basic|cmfd_feed|confidence_intervals|\ -density_atombcm|eigenvalue_genperbatch|energy_grid|entropy|\ -filter_cell|lattice_multiple|output|plot_background|reflective_plane|\ -rotation|salphabeta_multiple|score_absorption|seed|source_energy_mono|\ +valgrind_default_tests = "cmfd_feed|confidence_intervals|\ +density|eigenvalue_genperbatch|energy_grid|entropy|\ +lattice_multiple|output|plotreflective_plane|\ +rotation|salphabetascore_absorption|seed|source_energy_mono|\ sourcepoint_batch|statepoint_interval|survival_biasing|\ tally_assumesep|translation|uniform_fs|universe|void" @@ -383,7 +375,7 @@ if len(list(tests.keys())) == 0: # Begin testing shutil.rmtree('build', ignore_errors=True) -call(['./cleanup']) # removes all binary and hdf5 output files from tests +cleanup('.') for key in iter(tests): test = tests[key] @@ -395,29 +387,34 @@ for key in iter(tests): sys.stdout.flush() # Verify fortran compiler exists - test.check_compiler() - if not test.success: + if which(test.fc) is None: + self.msg = 'Compiler not found: {0}'.format(test.fc) + self.success = False continue - # Get valgrind command + # Verify valgrind command exists if test.valgrind: - test.find_valgrind() - if not test.success: - continue + valgrind_cmd = which('valgrind') + if valgrind_cmd is None: + self.msg = 'No valgrind executable found.' + self.success = False + continue + else: + valgrind_cmd = '' - # Get coverage command + # Verify gcov/lcov exist if test.coverage: - test.find_coverage() - if not test.success: - continue + if which('gcov') is None: + self.msg = 'No {} executable found.'.format(exe) + self.success = False + continue # Set test specific CTest script vars. Not used in non-script mode - ctest_vars.update({'build_name' : test.get_build_name()}) - ctest_vars.update({'build_opts' : test.get_build_opts()}) - ctest_vars.update({'mem_check' : test.valgrind}) - ctest_vars.update({'coverage' : test.coverage}) - ctest_vars.update({'valgrind_cmd' : test.valgrind_cmd}) - ctest_vars.update({'gcov_cmd' : test.gcov_cmd}) + ctest_vars.update({'build_name': test.get_build_name()}) + ctest_vars.update({'build_opts': test.get_build_opts()}) + ctest_vars.update({'mem_check': test.valgrind}) + ctest_vars.update({'coverage': test.coverage}) + ctest_vars.update({'valgrind_cmd': valgrind_cmd}) # Check for user custom tests # INCLUDE is a CTest command that allows for a subset @@ -458,7 +455,7 @@ for key in iter(tests): test.run_ctests() # Leave build directory - os.chdir('..') + os.chdir(os.pardir) # Copy over log file if script_mode: @@ -471,11 +468,37 @@ for key in iter(tests): logfilename = logfilename + '_{0}.log'.format(test.name) shutil.copy(logfile[0], logfilename) + # For coverage builds, use lcov to generate HTML output + if test.coverage: + if which('lcov') is None or which('genhtml') is None: + print('No lcov/genhtml command found. ' + 'Could not generate coverage report.') + else: + shutil.rmtree('coverage', ignore_errors=True) + call(['lcov', '--directory', '.', '--capture', + '--output-file', 'coverage.info']) + call(['genhtml', '--output-directory', 'coverage', 'coverage.info']) + os.remove('coverage.info') + + if test.valgrind: + # Copy memcheck output to memcheck directory + shutil.rmtree('memcheck', ignore_errors=True) + os.mkdir('memcheck') + memcheck_out = glob.glob('build/Testing/Temporary/MemoryChecker.*.log') + for fname in memcheck_out: + shutil.copy(fname, 'memcheck/') + + # Remove generated XML files + xml_files = check_output(['git', 'ls-files', '.', '--exclude-standard', + '--others']).split() + for f in xml_files: + os.remove(f) + # Clear build directory and remove binary and hdf5 files shutil.rmtree('build', ignore_errors=True) if script_mode: os.remove('ctestscript.run') - call(['./cleanup']) + cleanup('.') # Print out summary of results print('\n' + '='*54) diff --git a/tests/test_basic/geometry.xml b/tests/test_basic/geometry.xml deleted file mode 100644 index bc56030e18..0000000000 --- a/tests/test_basic/geometry.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/test_basic/materials.xml b/tests/test_basic/materials.xml deleted file mode 100644 index 315c0fa848..0000000000 --- a/tests/test_basic/materials.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/tests/test_basic/results_true.dat b/tests/test_basic/results_true.dat deleted file mode 100644 index 5263a6b7fd..0000000000 --- a/tests/test_basic/results_true.dat +++ /dev/null @@ -1,2 +0,0 @@ -k-combined: -3.021779E-01 3.813358E-03 diff --git a/tests/test_density/geometry.xml b/tests/test_density/geometry.xml new file mode 100644 index 0000000000..c305754da9 --- /dev/null +++ b/tests/test_density/geometry.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/tests/test_density/materials.xml b/tests/test_density/materials.xml new file mode 100644 index 0000000000..36947d066d --- /dev/null +++ b/tests/test_density/materials.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/test_density/results_true.dat b/tests/test_density/results_true.dat new file mode 100644 index 0000000000..1dbadc039d --- /dev/null +++ b/tests/test_density/results_true.dat @@ -0,0 +1,2 @@ +k-combined: +1.088237E+00 1.999252E-02 diff --git a/tests/test_basic/settings.xml b/tests/test_density/settings.xml similarity index 100% rename from tests/test_basic/settings.xml rename to tests/test_density/settings.xml diff --git a/tests/test_basic/test_basic.py b/tests/test_density/test_density.py old mode 100755 new mode 100644 similarity index 100% rename from tests/test_basic/test_basic.py rename to tests/test_density/test_density.py diff --git a/tests/test_density_atombcm/geometry.xml b/tests/test_density_atombcm/geometry.xml deleted file mode 100644 index bc56030e18..0000000000 --- a/tests/test_density_atombcm/geometry.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/test_density_atombcm/materials.xml b/tests/test_density_atombcm/materials.xml deleted file mode 100644 index 10d0519685..0000000000 --- a/tests/test_density_atombcm/materials.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/tests/test_density_atombcm/results_true.dat b/tests/test_density_atombcm/results_true.dat deleted file mode 100644 index 2956b53888..0000000000 --- a/tests/test_density_atombcm/results_true.dat +++ /dev/null @@ -1,2 +0,0 @@ -k-combined: -1.752274E+00 4.032481E-02 diff --git a/tests/test_density_atombcm/settings.xml b/tests/test_density_atombcm/settings.xml deleted file mode 100644 index a6fd5da19e..0000000000 --- a/tests/test_density_atombcm/settings.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 10 - 5 - 1000 - - - - - -4 -4 -4 4 4 4 - - - - diff --git a/tests/test_density_atombcm/test_density_atombcm.py b/tests/test_density_atombcm/test_density_atombcm.py deleted file mode 100644 index 2a595f3e66..0000000000 --- a/tests/test_density_atombcm/test_density_atombcm.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness - - -if __name__ == '__main__': - harness = TestHarness('statepoint.10.*') - harness.main() diff --git a/tests/test_density_atomcm3/geometry.xml b/tests/test_density_atomcm3/geometry.xml deleted file mode 100644 index bc56030e18..0000000000 --- a/tests/test_density_atomcm3/geometry.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/test_density_atomcm3/materials.xml b/tests/test_density_atomcm3/materials.xml deleted file mode 100644 index 57d177afc7..0000000000 --- a/tests/test_density_atomcm3/materials.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/tests/test_density_atomcm3/results_true.dat b/tests/test_density_atomcm3/results_true.dat deleted file mode 100644 index 0bd16fc4de..0000000000 --- a/tests/test_density_atomcm3/results_true.dat +++ /dev/null @@ -1,2 +0,0 @@ -k-combined: -1.092376E+00 1.759788E-02 diff --git a/tests/test_density_atomcm3/settings.xml b/tests/test_density_atomcm3/settings.xml deleted file mode 100644 index a6fd5da19e..0000000000 --- a/tests/test_density_atomcm3/settings.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 10 - 5 - 1000 - - - - - -4 -4 -4 4 4 4 - - - - diff --git a/tests/test_density_atomcm3/test_density_atomcm3.py b/tests/test_density_atomcm3/test_density_atomcm3.py deleted file mode 100644 index 2a595f3e66..0000000000 --- a/tests/test_density_atomcm3/test_density_atomcm3.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness - - -if __name__ == '__main__': - harness = TestHarness('statepoint.10.*') - harness.main() diff --git a/tests/test_density_kgm3/geometry.xml b/tests/test_density_kgm3/geometry.xml deleted file mode 100644 index bc56030e18..0000000000 --- a/tests/test_density_kgm3/geometry.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/test_density_kgm3/materials.xml b/tests/test_density_kgm3/materials.xml deleted file mode 100644 index 2f74574e75..0000000000 --- a/tests/test_density_kgm3/materials.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/tests/test_density_kgm3/results_true.dat b/tests/test_density_kgm3/results_true.dat deleted file mode 100644 index 6b008101fb..0000000000 --- a/tests/test_density_kgm3/results_true.dat +++ /dev/null @@ -1,2 +0,0 @@ -k-combined: -7.994522E-01 1.065745E-02 diff --git a/tests/test_density_kgm3/test_density_kgm3.py b/tests/test_density_kgm3/test_density_kgm3.py deleted file mode 100644 index 2a595f3e66..0000000000 --- a/tests/test_density_kgm3/test_density_kgm3.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness - - -if __name__ == '__main__': - harness = TestHarness('statepoint.10.*') - harness.main() diff --git a/tests/test_density_sum/geometry.xml b/tests/test_density_sum/geometry.xml deleted file mode 100644 index bc56030e18..0000000000 --- a/tests/test_density_sum/geometry.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/test_density_sum/materials.xml b/tests/test_density_sum/materials.xml deleted file mode 100644 index 713661196f..0000000000 --- a/tests/test_density_sum/materials.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/tests/test_density_sum/results_true.dat b/tests/test_density_sum/results_true.dat deleted file mode 100644 index 9b16f2d988..0000000000 --- a/tests/test_density_sum/results_true.dat +++ /dev/null @@ -1,2 +0,0 @@ -k-combined: -3.231215E-01 6.421320E-03 diff --git a/tests/test_density_sum/settings.xml b/tests/test_density_sum/settings.xml deleted file mode 100644 index a6fd5da19e..0000000000 --- a/tests/test_density_sum/settings.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 10 - 5 - 1000 - - - - - -4 -4 -4 4 4 4 - - - - diff --git a/tests/test_density_sum/test_density_sum.py b/tests/test_density_sum/test_density_sum.py deleted file mode 100644 index 2a595f3e66..0000000000 --- a/tests/test_density_sum/test_density_sum.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness - - -if __name__ == '__main__': - harness = TestHarness('statepoint.10.*') - harness.main() diff --git a/tests/test_filter_azimuthal/inputs_true.dat b/tests/test_filter_azimuthal/inputs_true.dat deleted file mode 100644 index e4a964700f..0000000000 --- a/tests/test_filter_azimuthal/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -57d6fd9cb5180c38efd2729a5dea0708cbd5fd0bf7dcf0c9d5c9cef5d818aeab5a926d03e70dedcf1b60d5740938fb3ba80e6ccdb09c661d159c0893da3bd593 \ No newline at end of file diff --git a/tests/test_filter_azimuthal/results_true.dat b/tests/test_filter_azimuthal/results_true.dat deleted file mode 100644 index 7883a730d4..0000000000 --- a/tests/test_filter_azimuthal/results_true.dat +++ /dev/null @@ -1,76 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -4.215917E+01 -3.561920E+02 -4.174788E+01 -3.505184E+02 -4.603223E+01 -4.242918E+02 -4.496760E+01 -4.075599E+02 -4.088099E+01 -3.376516E+02 -tally 2: -4.157239E+01 -3.482158E+02 -4.227810E+01 -3.613293E+02 -4.376107E+01 -3.835007E+02 -4.644205E+01 -4.327195E+02 -4.191554E+01 -3.522147E+02 -tally 3: -4.215917E+01 -3.561920E+02 -4.174788E+01 -3.505184E+02 -4.603223E+01 -4.242918E+02 -4.496402E+01 -4.075053E+02 -4.088458E+01 -3.377000E+02 -tally 4: -1.531988E+01 -4.816326E+01 -9.274393E+00 -1.821174E+01 -1.595868E+01 -5.124238E+01 -1.299895E+00 -6.417145E-01 -1.510024E+01 -4.604170E+01 -8.533361E+00 -1.462765E+01 -1.658141E+01 -5.595629E+01 -1.427417E+00 -6.621807E-01 -1.683102E+01 -5.741400E+01 -9.845257E+00 -2.028406E+01 -1.773179E+01 -6.477077E+01 -1.536972E+00 -6.111079E-01 -1.586070E+01 -5.360975E+01 -9.928220E+00 -2.089005E+01 -1.737609E+01 -6.161847E+01 -1.700608E+00 -8.439708E-01 -1.607027E+01 -5.490113E+01 -7.569336E+00 -1.280955E+01 -1.606086E+01 -5.308665E+01 -9.898901E-01 -3.143027E-01 diff --git a/tests/test_filter_azimuthal/test_filter_azimuthal.py b/tests/test_filter_azimuthal/test_filter_azimuthal.py deleted file mode 100644 index 248ba00120..0000000000 --- a/tests/test_filter_azimuthal/test_filter_azimuthal.py +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - -class FilterAzimuthalTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt1 = openmc.Filter(type='azimuthal', - bins=(-3.1416, -1.8850, -0.6283, 0.6283, 1.8850, - 3.1416)) - tally1 = openmc.Tally(tally_id=1) - tally1.add_filter(filt1) - tally1.add_score('flux') - tally1.estimator = 'tracklength' - - tally2 = openmc.Tally(tally_id=2) - tally2.add_filter(filt1) - tally2.add_score('flux') - tally2.estimator = 'analog' - - filt3 = openmc.Filter(type='azimuthal', bins=(5,)) - tally3 = openmc.Tally(tally_id=3) - tally3.add_filter(filt3) - tally3.add_score('flux') - tally3.estimator = 'tracklength' - - mesh = openmc.Mesh(mesh_id=1) - mesh.lower_left = [-182.07, -182.07] - mesh.upper_right = [182.07, 182.07] - mesh.dimension = [2, 2] - filt_mesh = openmc.Filter(type='mesh', bins=(1,)) - tally4 = openmc.Tally(tally_id=4) - tally4.add_filter(filt3) - tally4.add_filter(filt_mesh) - tally4.add_score('flux') - tally4.estimator = 'tracklength' - - - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally1) - self._input_set.tallies.add_tally(tally2) - self._input_set.tallies.add_tally(tally3) - self._input_set.tallies.add_tally(tally4) - self._input_set.tallies.add_mesh(mesh) - - super(FilterAzimuthalTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterAzimuthalTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterAzimuthalTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_filter_cell/inputs_true.dat b/tests/test_filter_cell/inputs_true.dat deleted file mode 100644 index d7f0a9e7f8..0000000000 --- a/tests/test_filter_cell/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -f8359184c02fbab5dca5368689a84924066ab1fb09cae575588ceddd696d5461db577498df9959365d89fe933e9b338390e44e362c603c6f2aa5bcf4acc14b20 \ No newline at end of file diff --git a/tests/test_filter_cell/results_true.dat b/tests/test_filter_cell/results_true.dat deleted file mode 100644 index 47ff3c281a..0000000000 --- a/tests/test_filter_cell/results_true.dat +++ /dev/null @@ -1,11 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -0.000000E+00 -0.000000E+00 -1.767552E+01 -6.295417E+01 -3.863588E+00 -3.013300E+00 -5.356594E+01 -5.839391E+02 diff --git a/tests/test_filter_cell/test_filter_cell.py b/tests/test_filter_cell/test_filter_cell.py deleted file mode 100644 index d532d59cf8..0000000000 --- a/tests/test_filter_cell/test_filter_cell.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class FilterCellTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(10, 21, 22, 23)) - tally = openmc.Tally(tally_id=1) - tally.add_filter(filt) - tally.add_score('total') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally) - - super(FilterCellTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterCellTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterCellTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_filter_cellborn/inputs_true.dat b/tests/test_filter_cellborn/inputs_true.dat deleted file mode 100644 index a4f1a74b8f..0000000000 --- a/tests/test_filter_cellborn/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -8ae662f8881ce8cdec550069c6233c2c91e9a10f7200af6892cf6f2d77712ccfa17895dbd2eee02e6daf3d665c6ed84b29e17d89ff519e70c37b36d75a431d53 \ No newline at end of file diff --git a/tests/test_filter_cellborn/results_true.dat b/tests/test_filter_cellborn/results_true.dat deleted file mode 100644 index d0ab58f4ed..0000000000 --- a/tests/test_filter_cellborn/results_true.dat +++ /dev/null @@ -1,11 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -0.000000E+00 -0.000000E+00 -8.921179E+01 -1.601939E+03 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 diff --git a/tests/test_filter_cellborn/test_filter_cellborn.py b/tests/test_filter_cellborn/test_filter_cellborn.py deleted file mode 100644 index 2fac6a1fcd..0000000000 --- a/tests/test_filter_cellborn/test_filter_cellborn.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class FilterCellbornTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cellborn', bins=(10, 21, 22, 23)) - tally = openmc.Tally(tally_id=1) - tally.add_filter(filt) - tally.add_score('total') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally) - - super(FilterCellbornTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterCellbornTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterCellbornTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_filter_delayedgroup/inputs_true.dat b/tests/test_filter_delayedgroup/inputs_true.dat deleted file mode 100644 index 6b06d41735..0000000000 --- a/tests/test_filter_delayedgroup/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -a7c8ce7ffbc3a7b965d8a3077a4d9132130561afef19047b279b2d23198e248b09664856a092a32394894e19fef7708cebad99b3839d735c4e98ae0c9af58cb7 \ No newline at end of file diff --git a/tests/test_filter_delayedgroup/results_true.dat b/tests/test_filter_delayedgroup/results_true.dat deleted file mode 100644 index 9db6de2562..0000000000 --- a/tests/test_filter_delayedgroup/results_true.dat +++ /dev/null @@ -1,15 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -8.141852E-04 -1.337187E-07 -4.849156E-03 -4.744020E-06 -4.460252E-03 -4.015453E-06 -1.028479E-02 -2.136252E-05 -5.002274E-03 -5.056965E-06 -1.974747E-03 -7.882970E-07 diff --git a/tests/test_filter_delayedgroup/test_filter_delayedgroup.py b/tests/test_filter_delayedgroup/test_filter_delayedgroup.py deleted file mode 100644 index bdad3cc958..0000000000 --- a/tests/test_filter_delayedgroup/test_filter_delayedgroup.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class FilterDelayedgroupTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='delayedgroup', - bins=(1, 2, 3, 4, 5, 6)) - tally = openmc.Tally(tally_id=1) - tally.add_filter(filt) - tally.add_score('delayed-nu-fission') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally) - - super(FilterDelayedgroupTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterDelayedgroupTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterDelayedgroupTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_filter_energy/inputs_true.dat b/tests/test_filter_energy/inputs_true.dat deleted file mode 100644 index 4098aaece9..0000000000 --- a/tests/test_filter_energy/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -51d3e2c43f36712a7b26c5fa26e0e2ca6fb9af205af04f0f8cd44c6b100e36382417c2c63d711e4677ce3c1958d15072727d5fd32424a3f6eb08d1f3b1c7db5a \ No newline at end of file diff --git a/tests/test_filter_energy/results_true.dat b/tests/test_filter_energy/results_true.dat deleted file mode 100644 index 599e0bf888..0000000000 --- a/tests/test_filter_energy/results_true.dat +++ /dev/null @@ -1,11 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -2.844008E+01 -1.619630E+02 -4.425619E+01 -3.938244E+02 -5.527425E+01 -6.120383E+02 -9.799897E+00 -1.957877E+01 diff --git a/tests/test_filter_energy/test_filter_energy.py b/tests/test_filter_energy/test_filter_energy.py deleted file mode 100644 index 54d1dd4b7f..0000000000 --- a/tests/test_filter_energy/test_filter_energy.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class FilterEnergyTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='energy', - bins=(0.0, 0.253e-6, 1.0e-3, 1.0, 20.0)) - tally = openmc.Tally(tally_id=1) - tally.add_filter(filt) - tally.add_score('total') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally) - - super(FilterEnergyTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterEnergyTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterEnergyTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_filter_energyout/inputs_true.dat b/tests/test_filter_energyout/inputs_true.dat deleted file mode 100644 index be1ade923f..0000000000 --- a/tests/test_filter_energyout/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -f0810606c5f947a9fe03bcfc87de3883ce46f59d8603e02ed30f853ebf301b2dc6bdcd109889801ada9e6e0b7be4932efeca97d4beea875af8c8e3ecb7511444 \ No newline at end of file diff --git a/tests/test_filter_energyout/results_true.dat b/tests/test_filter_energyout/results_true.dat deleted file mode 100644 index 814385d5a4..0000000000 --- a/tests/test_filter_energyout/results_true.dat +++ /dev/null @@ -1,11 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -2.842000E+01 -1.620214E+02 -4.361000E+01 -3.810139E+02 -5.297000E+01 -5.616595E+02 -6.530000E+00 -8.828900E+00 diff --git a/tests/test_filter_energyout/test_filter_energyout.py b/tests/test_filter_energyout/test_filter_energyout.py deleted file mode 100644 index 43a8c7d5a9..0000000000 --- a/tests/test_filter_energyout/test_filter_energyout.py +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class FilterEnergyoutTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='energyout', - bins=(0.0, 0.253e-6, 1.0e-3, 1.0, 20.0)) - tally = openmc.Tally(tally_id=1) - tally.add_filter(filt) - tally.add_score('scatter') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally) - - super(FilterEnergyoutTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterEnergyoutTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterEnergyoutTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_filter_group_transfer/inputs_true.dat b/tests/test_filter_group_transfer/inputs_true.dat deleted file mode 100644 index 9e3bbdd1ce..0000000000 --- a/tests/test_filter_group_transfer/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -c4d4334d44956d6dc9abe854a5e9403d7f8a87ffb04a15a3d128e8d18eb4111f46ca277b751e1b0e836d69527502f9abba115a4b2fc64c38da63a9d57968d860 \ No newline at end of file diff --git a/tests/test_filter_group_transfer/results_true.dat b/tests/test_filter_group_transfer/results_true.dat deleted file mode 100644 index c41451e776..0000000000 --- a/tests/test_filter_group_transfer/results_true.dat +++ /dev/null @@ -1,67 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -2.576000E+01 -1.331666E+02 -0.000000E+00 -0.000000E+00 -7.000000E-02 -1.300000E-03 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.050675E+00 -2.274991E-01 -0.000000E+00 -0.000000E+00 -2.070821E+00 -8.886068E-01 -2.660000E+00 -1.422000E+00 -0.000000E+00 -0.000000E+00 -3.897000E+01 -3.042635E+02 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -4.352932E-01 -4.705717E-02 -0.000000E+00 -0.000000E+00 -1.018668E+00 -2.090017E-01 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -4.570000E+00 -4.182700E+00 -0.000000E+00 -0.000000E+00 -4.968000E+01 -4.940534E+02 -6.537406E-02 -1.230788E-03 -0.000000E+00 -0.000000E+00 -8.678070E-02 -2.482037E-03 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -3.290000E+00 -2.178900E+00 -1.610879E-01 -5.883677E-03 -6.530000E+00 -8.828900E+00 -3.151783E-01 -2.052521E-02 diff --git a/tests/test_filter_group_transfer/test_filter_group_transfer.py b/tests/test_filter_group_transfer/test_filter_group_transfer.py deleted file mode 100644 index cbea5e0a7f..0000000000 --- a/tests/test_filter_group_transfer/test_filter_group_transfer.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class FilterGroupTransferTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt1 = openmc.Filter(type='energy', - bins=(0.0, 0.253e-6, 1.0e-3, 1.0, 20.0)) - filt2 = openmc.Filter(type='energyout', - bins=(0.0, 0.253e-6, 1.0e-3, 1.0, 20.0)) - tally = openmc.Tally(tally_id=1) - tally.add_filter(filt1) - tally.add_filter(filt2) - tally.add_score('scatter') - tally.add_score('nu-fission') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally) - - super(FilterGroupTransferTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterGroupTransferTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterGroupTransferTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_filter_material/inputs_true.dat b/tests/test_filter_material/inputs_true.dat deleted file mode 100644 index 59afbce647..0000000000 --- a/tests/test_filter_material/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -7689b2c88391128377b7f9bfcda347a42f77d69d194186629fa965ecd3fc51be0bfd1ac92fb9d7551128d8b6ed5241ead4fb94b27ae29d80230863e78fbbcb68 \ No newline at end of file diff --git a/tests/test_filter_material/results_true.dat b/tests/test_filter_material/results_true.dat deleted file mode 100644 index d2b23e2901..0000000000 --- a/tests/test_filter_material/results_true.dat +++ /dev/null @@ -1,11 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -2.868239E+01 -1.648549E+02 -6.779424E+00 -9.202676E+00 -6.446222E+01 -8.387204E+02 -3.367496E+01 -2.349072E+02 diff --git a/tests/test_filter_material/test_filter_material.py b/tests/test_filter_material/test_filter_material.py deleted file mode 100644 index 8e42d8c9a2..0000000000 --- a/tests/test_filter_material/test_filter_material.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class FilterMaterialTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='material', bins=(1, 2, 3, 4)) - tally = openmc.Tally(tally_id=1) - tally.add_filter(filt) - tally.add_score('total') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally) - - super(FilterMaterialTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterMaterialTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterMaterialTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_filter_mu/inputs_true.dat b/tests/test_filter_mu/inputs_true.dat deleted file mode 100644 index 19d08cb457..0000000000 --- a/tests/test_filter_mu/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -ecc649936e2cc364b079944f47e18fb81ec7290017b4bd5837e5aa1e24e1146df77897f44c7c2a88500e3f525566b51777cd9b84ec6a636f5883e411e4c1f75c \ No newline at end of file diff --git a/tests/test_filter_mu/results_true.dat b/tests/test_filter_mu/results_true.dat deleted file mode 100644 index e647a46ec0..0000000000 --- a/tests/test_filter_mu/results_true.dat +++ /dev/null @@ -1,121 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -1.241000E+01 -3.088870E+01 -1.241000E+01 -3.088870E+01 -1.364000E+01 -3.727140E+01 -1.364000E+01 -3.727140E+01 -3.251000E+01 -2.118597E+02 -3.251000E+01 -2.118597E+02 -7.297000E+01 -1.066904E+03 -7.297000E+01 -1.066904E+03 -tally 2: -9.880000E+00 -1.964520E+01 -9.880000E+00 -1.964520E+01 -1.022000E+01 -2.099620E+01 -1.022000E+01 -2.099620E+01 -1.479000E+01 -4.397670E+01 -1.479000E+01 -4.397670E+01 -3.470000E+01 -2.412094E+02 -3.470000E+01 -2.412094E+02 -6.194000E+01 -7.687326E+02 -6.194000E+01 -7.687326E+02 -tally 3: -3.560000E+00 -2.681800E+00 -3.560000E+00 -2.681800E+00 -1.930000E+00 -7.915000E-01 -1.930000E+00 -7.915000E-01 -3.870000E+00 -3.109100E+00 -3.870000E+00 -3.109100E+00 -3.500000E-01 -3.630000E-02 -3.500000E-01 -3.630000E-02 -3.680000E+00 -2.840200E+00 -3.680000E+00 -2.840200E+00 -2.050000E+00 -8.735000E-01 -2.050000E+00 -8.735000E-01 -3.910000E+00 -3.085100E+00 -3.910000E+00 -3.085100E+00 -3.900000E-01 -3.610000E-02 -3.900000E-01 -3.610000E-02 -5.130000E+00 -5.422100E+00 -5.130000E+00 -5.422100E+00 -3.100000E+00 -1.959200E+00 -3.100000E+00 -1.959200E+00 -5.840000E+00 -6.914600E+00 -5.840000E+00 -6.914600E+00 -5.400000E-01 -8.980000E-02 -5.400000E-01 -8.980000E-02 -1.215000E+01 -3.061010E+01 -1.215000E+01 -3.061010E+01 -7.220000E+00 -1.081680E+01 -7.220000E+00 -1.081680E+01 -1.355000E+01 -3.699090E+01 -1.355000E+01 -3.699090E+01 -1.360000E+00 -5.098000E-01 -1.360000E+00 -5.098000E-01 -2.199000E+01 -9.837430E+01 -2.199000E+01 -9.837430E+01 -1.243000E+01 -3.167470E+01 -1.243000E+01 -3.167470E+01 -2.451000E+01 -1.233915E+02 -2.451000E+01 -1.233915E+02 -2.460000E+00 -1.687000E+00 -2.460000E+00 -1.687000E+00 diff --git a/tests/test_filter_mu/test_filter_mu.py b/tests/test_filter_mu/test_filter_mu.py deleted file mode 100644 index f59f8c63fd..0000000000 --- a/tests/test_filter_mu/test_filter_mu.py +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class FilterMuTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt1 = openmc.Filter(type='mu', - bins=(-1.0, -0.5, 0.0, 0.5, 1.0)) - tally1 = openmc.Tally(tally_id=1) - tally1.add_filter(filt1) - tally1.add_score('scatter') - tally1.add_score('nu-scatter') - - filt2 = openmc.Filter(type='mu', bins=(5,)) - tally2 = openmc.Tally(tally_id=2) - tally2.add_filter(filt2) - tally2.add_score('scatter') - tally2.add_score('nu-scatter') - - mesh = openmc.Mesh(mesh_id=1) - mesh.lower_left = [-182.07, -182.07] - mesh.upper_right = [182.07, 182.07] - mesh.dimension = [2, 2] - filt_mesh = openmc.Filter(type='mesh', bins=(1,)) - tally3 = openmc.Tally(tally_id=3) - tally3.add_filter(filt2) - tally3.add_filter(filt_mesh) - tally3.add_score('scatter') - tally3.add_score('nu-scatter') - - - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally1) - self._input_set.tallies.add_tally(tally2) - self._input_set.tallies.add_tally(tally3) - self._input_set.tallies.add_mesh(mesh) - - super(FilterMuTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterMuTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterMuTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_filter_polar/inputs_true.dat b/tests/test_filter_polar/inputs_true.dat deleted file mode 100644 index b3773a9d6b..0000000000 --- a/tests/test_filter_polar/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -301824991a022884215609f39797a61933faf7ccacf81ad6bb883af08857563e8bd74ab946fc4fd072860168d77f76d0c76d1467375158072dce431fc6a1c449 \ No newline at end of file diff --git a/tests/test_filter_polar/results_true.dat b/tests/test_filter_polar/results_true.dat deleted file mode 100644 index 2d822630e5..0000000000 --- a/tests/test_filter_polar/results_true.dat +++ /dev/null @@ -1,76 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -2.127061E+01 -9.220793E+01 -5.602776E+01 -6.373945E+02 -6.367492E+01 -8.138443E+02 -5.529942E+01 -6.140264E+02 -1.951517E+01 -7.668661E+01 -tally 2: -2.075936E+01 -8.757254E+01 -5.524881E+01 -6.153139E+02 -6.475252E+01 -8.402281E+02 -5.446664E+01 -5.961174E+02 -2.074180E+01 -8.681580E+01 -tally 3: -2.128073E+01 -9.230382E+01 -5.601764E+01 -6.371703E+02 -6.367492E+01 -8.138443E+02 -5.529942E+01 -6.140264E+02 -1.951517E+01 -7.668661E+01 -tally 4: -8.088647E+00 -1.396899E+01 -3.960907E+00 -3.249150E+00 -8.430714E+00 -1.435355E+01 -7.192159E-01 -1.641710E-01 -1.974619E+01 -8.105078E+01 -1.212452E+01 -3.016420E+01 -2.228348E+01 -1.050847E+02 -1.748809E+00 -9.501796E-01 -2.257423E+01 -1.038902E+02 -1.351331E+01 -3.969787E+01 -2.507638E+01 -1.283664E+02 -2.193118E+00 -1.424580E+00 -2.192232E+01 -9.859711E+01 -1.096779E+01 -2.506373E+01 -2.074138E+01 -8.670015E+01 -1.469145E+00 -8.072204E-01 -6.850719E+00 -9.425536E+00 -4.584038E+00 -4.399762E+00 -7.176883E+00 -1.090693E+01 -8.244944E-01 -1.794291E-01 diff --git a/tests/test_filter_polar/test_filter_polar.py b/tests/test_filter_polar/test_filter_polar.py deleted file mode 100644 index db7ed4f6d8..0000000000 --- a/tests/test_filter_polar/test_filter_polar.py +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - -class FilterPolarTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt1 = openmc.Filter(type='polar', - bins=(0.0, 0.6283, 1.2566, 1.8850, 2.5132, - 3.1416)) - tally1 = openmc.Tally(tally_id=1) - tally1.add_filter(filt1) - tally1.add_score('flux') - tally1.estimator = 'tracklength' - - tally2 = openmc.Tally(tally_id=2) - tally2.add_filter(filt1) - tally2.add_score('flux') - tally2.estimator = 'analog' - - filt3 = openmc.Filter(type='polar', bins=(5,)) - tally3 = openmc.Tally(tally_id=3) - tally3.add_filter(filt3) - tally3.add_score('flux') - tally3.estimator = 'tracklength' - - mesh = openmc.Mesh(mesh_id=1) - mesh.lower_left = [-182.07, -182.07] - mesh.upper_right = [182.07, 182.07] - mesh.dimension = [2, 2] - filt_mesh = openmc.Filter(type='mesh', bins=(1,)) - tally4 = openmc.Tally(tally_id=4) - tally4.add_filter(filt3) - tally4.add_filter(filt_mesh) - tally4.add_score('flux') - tally4.estimator = 'tracklength' - - - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally1) - self._input_set.tallies.add_tally(tally2) - self._input_set.tallies.add_tally(tally3) - self._input_set.tallies.add_tally(tally4) - self._input_set.tallies.add_mesh(mesh) - - super(FilterPolarTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterPolarTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterPolarTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_filter_universe/inputs_true.dat b/tests/test_filter_universe/inputs_true.dat deleted file mode 100644 index a55ba45f68..0000000000 --- a/tests/test_filter_universe/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -164804414f48a818c93e197f2901ce6ae375d88071a03e89c920dbc4462e7a2c8d2c85acf6560fcd6eb3d7c0c53d3b426ab1cc4b7721266fe8adec3e7231149e \ No newline at end of file diff --git a/tests/test_filter_universe/results_true.dat b/tests/test_filter_universe/results_true.dat deleted file mode 100644 index f71c4d2c21..0000000000 --- a/tests/test_filter_universe/results_true.dat +++ /dev/null @@ -1,11 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -7.510505E+01 -1.143811E+03 -8.792943E+00 -1.575416E+01 -4.214462E+01 -3.642975E+02 -4.335157E+00 -3.864423E+00 diff --git a/tests/test_filter_universe/test_filter_universe.py b/tests/test_filter_universe/test_filter_universe.py deleted file mode 100644 index 00dd166196..0000000000 --- a/tests/test_filter_universe/test_filter_universe.py +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class FilterUniverseTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='universe', bins=(1, 2, 3, 4)) - tally = openmc.Tally(tally_id=1) - tally.add_filter(filt) - tally.add_score('total') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(tally) - - super(FilterUniverseTestHarness, self)._build_inputs() - - def _cleanup(self): - super(FilterUniverseTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = FilterUniverseTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_many_scores/geometry.xml b/tests/test_many_scores/geometry.xml deleted file mode 100644 index f6f067aadd..0000000000 --- a/tests/test_many_scores/geometry.xml +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 17 17 - -10.71 -10.71 - 1.26 1.26 - - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 - 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - 1 1 2 1 1 2 1 1 2 1 1 2 1 1 2 1 1 - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - 1 1 1 2 1 1 1 1 1 1 1 1 1 2 1 1 1 - 1 1 1 1 1 2 1 1 2 1 1 2 1 1 1 1 1 - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - - - - - - 17 17 - -10.71 -10.71 - 1.26 1.26 - - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 - 3 3 3 3 3 4 3 3 4 3 3 4 3 3 3 3 3 - 3 3 3 4 3 3 3 3 3 3 3 3 3 4 3 3 3 - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 - 3 3 4 3 3 4 3 3 4 3 3 4 3 3 4 3 3 - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 - 3 3 4 3 3 4 3 3 4 3 3 4 3 3 4 3 3 - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 - 3 3 4 3 3 4 3 3 4 3 3 4 3 3 4 3 3 - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 - 3 3 3 4 3 3 3 3 3 3 3 3 3 4 3 3 3 - 3 3 3 3 3 4 3 3 4 3 3 4 3 3 3 3 3 - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 - 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 - - - - - - 21 21 - -224.91 -224.91 - 21.42 21.42 - - 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 - 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 - 5 5 5 5 5 5 5 6 6 6 6 6 6 6 5 5 5 5 5 5 5 - 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 5 5 5 5 5 - 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 5 5 - 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 5 - 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 5 - 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 - 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 - 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 - 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 - 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 - 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 - 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 - 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 5 - 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 5 - 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 5 5 5 5 - 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 5 5 5 5 5 - 5 5 5 5 5 5 5 6 6 6 6 6 6 6 5 5 5 5 5 5 5 - 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 - 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 - - - - - - 21 21 - -224.91 -224.91 - 21.42 21.42 - - 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 - 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 - 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 - 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 - 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 - 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 - 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 - 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 - 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 - 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 - 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 - 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 - 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 - 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 - 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 - 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 - 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 - 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 7 7 7 7 7 - 7 7 7 7 7 7 7 8 8 8 8 8 8 8 7 7 7 7 7 7 7 - 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 - 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 - - - - diff --git a/tests/test_many_scores/materials.xml b/tests/test_many_scores/materials.xml deleted file mode 100644 index 9c0b74f3f1..0000000000 --- a/tests/test_many_scores/materials.xml +++ /dev/null @@ -1,272 +0,0 @@ - - - - 71c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/test_many_scores/results_true.dat b/tests/test_many_scores/results_true.dat deleted file mode 100644 index ae5430e30a..0000000000 --- a/tests/test_many_scores/results_true.dat +++ /dev/null @@ -1,101 +0,0 @@ -k-combined: -0.000000E+00 0.000000E+00 -tally 1: -2.247257E+01 -1.683779E+02 -1.014000E+01 -3.427342E+01 -8.628000E+00 -2.481430E+01 -8.632000E+00 -2.483728E+01 -5.102293E-01 -8.710841E-02 -5.087118E-01 -8.657086E-02 -9.212024E+00 -2.829472E+01 -8.628000E+00 -2.481430E+01 -1.512000E+00 -7.620560E-01 -1.816851E+00 -1.102658E+00 -1.337996E+02 -5.985519E+03 -2.247257E+01 -1.683779E+02 -1.512960E-01 -2.623972E-02 --3.775020E-01 -1.055377E-01 -1.916133E-01 -4.680798E-02 -2.754367E-02 -3.320008E-04 -2.028374E-02 -1.319357E-02 -8.974271E-03 -1.681081E-03 -1.658978E-01 -1.520448E-02 -2.878360E-01 -5.645480E-02 -1.014000E+01 -3.427342E+01 -4.798897E-02 -1.551226E-03 --1.818770E-01 -1.492633E-02 -6.340651E-02 -9.011305E-03 -3.395308E-02 -4.612818E-04 -2.640250E-02 -6.434787E-04 --8.242639E-03 -9.516540E-04 -8.378601E-02 -2.645988E-03 -9.567484E-02 -7.262477E-03 -8.628000E+00 -2.481430E+01 -4.712248E-02 -1.140942E-03 --6.431930E-02 -4.290580E-03 -9.251642E-02 -8.134201E-03 -1.020119E-04 -1.154184E-04 -2.994164E-02 -3.079076E-04 -2.128844E-02 -2.046549E-04 --1.637972E-02 -1.459209E-04 -4.629047E-02 -7.823267E-04 -8.632000E+00 -2.483728E+01 -4.651997E-02 -1.133839E-03 --6.416955E-02 -4.279418E-03 -9.280565E-02 -8.095106E-03 --2.078094E-04 -1.151292E-04 -3.005568E-02 -3.104764E-04 -2.199519E-02 -2.179172E-04 --1.660645E-02 -1.451345E-04 -4.607553E-02 -7.673412E-04 -1.014000E+01 -3.427342E+01 -7.652723E-03 -3.578992E-05 diff --git a/tests/test_many_scores/settings.xml b/tests/test_many_scores/settings.xml deleted file mode 100644 index 08dc0d2e12..0000000000 --- a/tests/test_many_scores/settings.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 5 - 2 - 500 - - - - - - -160 -160 -183 - 160 160 183 - - - - - diff --git a/tests/test_many_scores/tallies.xml b/tests/test_many_scores/tallies.xml deleted file mode 100644 index b8a154f1ac..0000000000 --- a/tests/test_many_scores/tallies.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - flux total scatter nu-scatter scatter-2 nu-scatter-2 transport n1n - absorption nu-fission kappa-fission flux-y2 total-y2 scatter-y2 - nu-scatter-y2 events delayed-nu-fission - - - - diff --git a/tests/test_many_scores/test_many_scores.py b/tests/test_many_scores/test_many_scores.py deleted file mode 100644 index 88c3bdfb3d..0000000000 --- a/tests/test_many_scores/test_many_scores.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness - - -if __name__ == '__main__': - harness = TestHarness('statepoint.5.*', True) - harness.main() diff --git a/tests/test_plot_basis/geometry.xml b/tests/test_plot/geometry.xml similarity index 100% rename from tests/test_plot_basis/geometry.xml rename to tests/test_plot/geometry.xml diff --git a/tests/test_plot_basis/materials.xml b/tests/test_plot/materials.xml similarity index 100% rename from tests/test_plot_basis/materials.xml rename to tests/test_plot/materials.xml diff --git a/tests/test_plot_mask/plots.xml b/tests/test_plot/plots.xml similarity index 58% rename from tests/test_plot_mask/plots.xml rename to tests/test_plot/plots.xml index 72b40f72cf..d5e03f598f 100644 --- a/tests/test_plot_mask/plots.xml +++ b/tests/test_plot/plots.xml @@ -5,7 +5,8 @@ 0. 0. 0. 25 25 200 200 - + + @@ -15,11 +16,17 @@ - + 0. 0. 0. 25 25 200 200 - + 0 0 0 + + + + 100 100 10 + 0. 0. 0. + 20 20 10 diff --git a/tests/test_plot/results_true.dat b/tests/test_plot/results_true.dat new file mode 100644 index 0000000000..ba8a49226a --- /dev/null +++ b/tests/test_plot/results_true.dat @@ -0,0 +1 @@ +01ecda0f3820a49c8a41d8dc47d1e5c58767a04301621c2437231fcc04401ddea47b67d0529ca56a32d4d97b4f1416a2e0b6120d3bdc87d74a7e9889758a8808 \ No newline at end of file diff --git a/tests/test_density_kgm3/settings.xml b/tests/test_plot/settings.xml similarity index 66% rename from tests/test_density_kgm3/settings.xml rename to tests/test_plot/settings.xml index a6fd5da19e..03985b3ae9 100644 --- a/tests/test_density_kgm3/settings.xml +++ b/tests/test_plot/settings.xml @@ -13,4 +13,10 @@ + + 5 4 3 + -10 -10 -10 + 10 10 10 + + diff --git a/tests/test_plot/test_plot.py b/tests/test_plot/test_plot.py new file mode 100644 index 0000000000..015577d215 --- /dev/null +++ b/tests/test_plot/test_plot.py @@ -0,0 +1,71 @@ +#!/usr/bin/env python + +import glob +import hashlib +import os +import sys +sys.path.insert(0, os.pardir) +from testing_harness import TestHarness + +import h5py + +from openmc import Executor + + +class PlotTestHarness(TestHarness): + """Specialized TestHarness for running OpenMC plotting tests.""" + def __init__(self, plot_names): + super(PlotTestHarness, self).__init__(None, False) + self._plot_names = plot_names + + def _run_openmc(self): + executor = Executor() + returncode = executor.plot_geometry(openmc_exec=self._opts.exe) + assert returncode == 0, 'OpenMC did not exit successfully.' + + def _test_output_created(self): + """Make sure *.ppm has been created.""" + for fname in self._plot_names: + assert os.path.exists(os.path.join(os.getcwd(), fname)), \ + 'Plot output file does not exist.' + + def _cleanup(self): + super(PlotTestHarness, self)._cleanup() + for fname in self._plot_names: + path = os.path.join(os.getcwd(), fname) + if os.path.exists(path): + #os.remove(path) + pass + + def _get_results(self): + """Return a string hash of the plot files.""" + outstr = bytes() + + # Add PPM output to results + ppm_files = glob.glob(os.path.join(os.getcwd(), '*.ppm')) + for fname in sorted(ppm_files): + with open(fname, 'rb') as fh: + outstr += fh.read() + + # Add voxel data to results + voxel_files = glob.glob(os.path.join(os.getcwd(), '*.voxel')) + for fname in sorted(voxel_files): + with h5py.File(fname, 'r') as fh: + outstr += fh['filetype'].value + outstr += fh['num_voxels'].value.tostring() + outstr += fh['lower_left'].value.tostring() + outstr += fh['voxel_width'].value.tostring() + outstr += fh['data'].value.tostring() + + # Hash the information and return. + sha512 = hashlib.sha512() + sha512.update(outstr) + outstr = sha512.hexdigest() + + return outstr + + +if __name__ == '__main__': + harness = PlotTestHarness(('1_plot.ppm', '2_plot.ppm', '3_plot.ppm', + '4_plot.voxel')) + harness.main() diff --git a/tests/test_plot_background/geometry.xml b/tests/test_plot_background/geometry.xml deleted file mode 100644 index bc56030e18..0000000000 --- a/tests/test_plot_background/geometry.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/test_plot_background/materials.xml b/tests/test_plot_background/materials.xml deleted file mode 100644 index 315c0fa848..0000000000 --- a/tests/test_plot_background/materials.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/tests/test_plot_background/plots.xml b/tests/test_plot_background/plots.xml deleted file mode 100644 index 879d2b30df..0000000000 --- a/tests/test_plot_background/plots.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - 0. 0. 0. - 30. 30. - 200 200 - 0 0 0 - - - diff --git a/tests/test_plot_background/results_true.dat b/tests/test_plot_background/results_true.dat deleted file mode 100644 index cea27e38e2..0000000000 --- a/tests/test_plot_background/results_true.dat +++ /dev/null @@ -1 +0,0 @@ -d0a8c3cd2eb2b73430e0fcac2f5249c012ba678d08add40fc43563332e71873977b2271d1e93ba42b3c1298f987f7d01406f60115d2f1c0879d140a11b909598 \ No newline at end of file diff --git a/tests/test_plot_background/settings.xml b/tests/test_plot_background/settings.xml deleted file mode 100644 index a6fd5da19e..0000000000 --- a/tests/test_plot_background/settings.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 10 - 5 - 1000 - - - - - -4 -4 -4 4 4 4 - - - - diff --git a/tests/test_plot_background/test_plot_background.py b/tests/test_plot_background/test_plot_background.py deleted file mode 100644 index 7890eca19d..0000000000 --- a/tests/test_plot_background/test_plot_background.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import PlotTestHarness - - -if __name__ == '__main__': - harness = PlotTestHarness(('1_plot.ppm', )) - harness.main() diff --git a/tests/test_plot_basis/plots.xml b/tests/test_plot_basis/plots.xml deleted file mode 100644 index 492236d376..0000000000 --- a/tests/test_plot_basis/plots.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - 0. 0. 0. - 25 25 - 200 200 - - - - 0. 0. 0. - 25 25 - 200 200 - - - - 0. 0. 0. - 25 25 - 200 200 - - - diff --git a/tests/test_plot_basis/results_true.dat b/tests/test_plot_basis/results_true.dat deleted file mode 100644 index b1d5dc8534..0000000000 --- a/tests/test_plot_basis/results_true.dat +++ /dev/null @@ -1 +0,0 @@ -368e0135c136d5c8a2dabb4c8085279dc7ac0bd81b2ec905bdf11ecb5fe99803868631cdff0b3ddec941323bcc661747d4c16edfd4f8d38582155bd6fd7e82e8 \ No newline at end of file diff --git a/tests/test_plot_basis/settings.xml b/tests/test_plot_basis/settings.xml deleted file mode 100644 index a6fd5da19e..0000000000 --- a/tests/test_plot_basis/settings.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 10 - 5 - 1000 - - - - - -4 -4 -4 4 4 4 - - - - diff --git a/tests/test_plot_basis/test_plot_basis.py b/tests/test_plot_basis/test_plot_basis.py deleted file mode 100644 index d45479e256..0000000000 --- a/tests/test_plot_basis/test_plot_basis.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import PlotTestHarness - - -if __name__ == '__main__': - harness = PlotTestHarness(('1_plot.ppm', '2_plot.ppm', '3_plot.ppm')) - harness.main() diff --git a/tests/test_plot_colspec/geometry.xml b/tests/test_plot_colspec/geometry.xml deleted file mode 100644 index bc56030e18..0000000000 --- a/tests/test_plot_colspec/geometry.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/tests/test_plot_colspec/materials.xml b/tests/test_plot_colspec/materials.xml deleted file mode 100644 index 315c0fa848..0000000000 --- a/tests/test_plot_colspec/materials.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/tests/test_plot_colspec/plots.xml b/tests/test_plot_colspec/plots.xml deleted file mode 100644 index 27edcb11b0..0000000000 --- a/tests/test_plot_colspec/plots.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - 0. 0. 0. - 30. 30. - 200 200 - - - - diff --git a/tests/test_plot_colspec/results_true.dat b/tests/test_plot_colspec/results_true.dat deleted file mode 100644 index 0e4eb9a59b..0000000000 --- a/tests/test_plot_colspec/results_true.dat +++ /dev/null @@ -1 +0,0 @@ -32acbbd7b0f777589b108333e4928b6ecd93bc9e553b04cc611da4079ff8738a03dd0667e7e17161708fde86180532f19907272356d23e8a827a736a5b4a697a \ No newline at end of file diff --git a/tests/test_plot_colspec/settings.xml b/tests/test_plot_colspec/settings.xml deleted file mode 100644 index a6fd5da19e..0000000000 --- a/tests/test_plot_colspec/settings.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 10 - 5 - 1000 - - - - - -4 -4 -4 4 4 4 - - - - diff --git a/tests/test_plot_colspec/test_plot_colspec.py b/tests/test_plot_colspec/test_plot_colspec.py deleted file mode 100644 index 7890eca19d..0000000000 --- a/tests/test_plot_colspec/test_plot_colspec.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import PlotTestHarness - - -if __name__ == '__main__': - harness = PlotTestHarness(('1_plot.ppm', )) - harness.main() diff --git a/tests/test_plot_mask/geometry.xml b/tests/test_plot_mask/geometry.xml deleted file mode 100644 index 83619d9f78..0000000000 --- a/tests/test_plot_mask/geometry.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/tests/test_plot_mask/materials.xml b/tests/test_plot_mask/materials.xml deleted file mode 100644 index f90a5e7f81..0000000000 --- a/tests/test_plot_mask/materials.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/tests/test_plot_mask/results_true.dat b/tests/test_plot_mask/results_true.dat deleted file mode 100644 index a1e323203d..0000000000 --- a/tests/test_plot_mask/results_true.dat +++ /dev/null @@ -1 +0,0 @@ -a7cb65bf40c84c0540d45ff292c398f9ae51b3d9396e88b9b4e5cdf05e8730f409bddb53aec6d396058194c6293c5bd3ef39efd0b0f30f2423f696193c85176c \ No newline at end of file diff --git a/tests/test_plot_mask/settings.xml b/tests/test_plot_mask/settings.xml deleted file mode 100644 index a6fd5da19e..0000000000 --- a/tests/test_plot_mask/settings.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - 10 - 5 - 1000 - - - - - -4 -4 -4 4 4 4 - - - - diff --git a/tests/test_plot_mask/test_plot_mask.py b/tests/test_plot_mask/test_plot_mask.py deleted file mode 100644 index d45479e256..0000000000 --- a/tests/test_plot_mask/test_plot_mask.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import PlotTestHarness - - -if __name__ == '__main__': - harness = PlotTestHarness(('1_plot.ppm', '2_plot.ppm', '3_plot.ppm')) - harness.main() diff --git a/tests/test_salphabeta/geometry.xml b/tests/test_salphabeta/geometry.xml index f9caa6c883..2b978b9148 100644 --- a/tests/test_salphabeta/geometry.xml +++ b/tests/test_salphabeta/geometry.xml @@ -3,11 +3,13 @@ - - + + + - + + diff --git a/tests/test_salphabeta/materials.xml b/tests/test_salphabeta/materials.xml index 9646e11159..b51395f184 100644 --- a/tests/test_salphabeta/materials.xml +++ b/tests/test_salphabeta/materials.xml @@ -23,6 +23,21 @@ + + + + + + + + + + + + + + + diff --git a/tests/test_salphabeta/results_true.dat b/tests/test_salphabeta/results_true.dat index a04ee8fc89..926af89bca 100644 --- a/tests/test_salphabeta/results_true.dat +++ b/tests/test_salphabeta/results_true.dat @@ -1,2 +1,2 @@ k-combined: -8.538165E-01 6.355606E-03 +8.350634E-01 6.010639E-02 diff --git a/tests/test_salphabeta_multiple/geometry.xml b/tests/test_salphabeta_multiple/geometry.xml deleted file mode 100644 index 13eb601660..0000000000 --- a/tests/test_salphabeta_multiple/geometry.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/test_salphabeta_multiple/materials.xml b/tests/test_salphabeta_multiple/materials.xml deleted file mode 100644 index f1a0d6f393..0000000000 --- a/tests/test_salphabeta_multiple/materials.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - 71c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tests/test_salphabeta_multiple/results_true.dat b/tests/test_salphabeta_multiple/results_true.dat deleted file mode 100644 index 593c5adc74..0000000000 --- a/tests/test_salphabeta_multiple/results_true.dat +++ /dev/null @@ -1,2 +0,0 @@ -k-combined: -9.141547E-01 2.728809E-02 diff --git a/tests/test_salphabeta_multiple/settings.xml b/tests/test_salphabeta_multiple/settings.xml deleted file mode 100644 index 4df1f124a6..0000000000 --- a/tests/test_salphabeta_multiple/settings.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - 10 - 5 - 400 - - - - - box - 0 0 0 1 1 1 - - - - - diff --git a/tests/test_salphabeta_multiple/test_salphabeta_multiple.py b/tests/test_salphabeta_multiple/test_salphabeta_multiple.py deleted file mode 100644 index 2a595f3e66..0000000000 --- a/tests/test_salphabeta_multiple/test_salphabeta_multiple.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness - - -if __name__ == '__main__': - harness = TestHarness('statepoint.10.*') - harness.main() diff --git a/tests/test_score_MT/inputs_true.dat b/tests/test_score_MT/inputs_true.dat deleted file mode 100644 index 33e732bcba..0000000000 --- a/tests/test_score_MT/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -0e8ecbc5afb7fb5e521913f239849febadbc969bbf99159b42d6d7e7930dcdb34f0e778e00a6e7c48170d4dd176b5776455ba96b722ad9cb6f2438e6ac3ce406 \ No newline at end of file diff --git a/tests/test_score_MT/results_true.dat b/tests/test_score_MT/results_true.dat deleted file mode 100644 index 04b9c5ca50..0000000000 --- a/tests/test_score_MT/results_true.dat +++ /dev/null @@ -1,77 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.538090E-03 -1.381456E-06 -3.974412E-01 -3.209809E-02 -1.373550E+00 -3.796357E-01 -5.252455E-06 -2.290531E-11 -3.359792E-02 -2.267331E-04 -2.459115E-02 -1.233078E-04 -0.000000E+00 -0.000000E+00 -7.004005E-05 -1.748739E-09 -8.104946E-02 -1.395618E-03 -tally 2: -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -2.000000E-01 -9.000000E-03 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -2.000000E-02 -2.000000E-04 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -tally 3: -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.408027E-03 -1.849607E-06 -3.946436E-01 -3.166261E-02 -1.288136E+00 -3.382059E-01 -2.179241E-05 -4.749090E-10 -3.146594E-02 -2.159308E-04 -4.278352E-02 -4.094478E-04 -0.000000E+00 -0.000000E+00 -1.736514E-04 -1.245171E-08 -7.989710E-02 -1.377742E-03 diff --git a/tests/test_score_MT/test_score_MT.py b/tests/test_score_MT/test_score_MT.py deleted file mode 100644 index fb8aa7cfb4..0000000000 --- a/tests/test_score_MT/test_score_MT.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreMTTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(10, 21, 22, 23)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 4)] - [t.add_filter(filt) for t in tallies] - [t.add_score('16') for t in tallies] - [t.add_score('51') for t in tallies] - [t.add_score('102') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - tallies[2].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreMTTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreMTTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreMTTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_absorption/inputs_true.dat b/tests/test_score_absorption/inputs_true.dat deleted file mode 100644 index 7932cb78ec..0000000000 --- a/tests/test_score_absorption/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -df0089700d7ca25e997d9e6da4aa7132575298feb14398b2e806961fdb2e1d9bfbd23beb7bbc2a71b2ce18abe324702c2ab654af32e826bba5571a068b00a848 \ No newline at end of file diff --git a/tests/test_score_absorption/results_true.dat b/tests/test_score_absorption/results_true.dat deleted file mode 100644 index 72661f77f4..0000000000 --- a/tests/test_score_absorption/results_true.dat +++ /dev/null @@ -1,29 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -0.000000E+00 -0.000000E+00 -2.533174E+00 -1.298118E+00 -2.453769E-02 -1.227715E-04 -3.869051E-01 -3.180828E-02 -tally 2: -0.000000E+00 -0.000000E+00 -2.540000E+00 -1.293400E+00 -4.000000E-02 -6.000000E-04 -4.000000E-01 -3.600000E-02 -tally 3: -0.000000E+00 -0.000000E+00 -2.422314E+00 -1.193460E+00 -4.285618E-02 -4.109734E-04 -3.832282E-01 -3.169516E-02 diff --git a/tests/test_score_absorption/test_score_absorption.py b/tests/test_score_absorption/test_score_absorption.py deleted file mode 100644 index c7e3e130df..0000000000 --- a/tests/test_score_absorption/test_score_absorption.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreAbsorptionTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(10, 21, 22, 23)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 4)] - [t.add_filter(filt) for t in tallies] - [t.add_score('absorption') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - tallies[2].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreAbsorptionTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreAbsorptionTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreAbsorptionTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_delayed_nufission/inputs_true.dat b/tests/test_score_delayed_nufission/inputs_true.dat deleted file mode 100644 index 11a92dea2c..0000000000 --- a/tests/test_score_delayed_nufission/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -2fb062798cab618153187fe3d8aaee4c6fb61132ab8215742e5939633ab321fb937d4d33a85856271bdf465257aca9cbba1b52716f233c22202ecfbbb9c15b1f \ No newline at end of file diff --git a/tests/test_score_delayed_nufission/results_true.dat b/tests/test_score_delayed_nufission/results_true.dat deleted file mode 100644 index bc2b8e8a7f..0000000000 --- a/tests/test_score_delayed_nufission/results_true.dat +++ /dev/null @@ -1,29 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -1.711611E-02 -5.967549E-05 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.026930E-02 -2.198717E-05 -tally 2: -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.976462E-02 -1.953328E-04 -tally 3: -1.686299E-02 -5.765477E-05 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.061240E-02 -2.305936E-05 diff --git a/tests/test_score_delayed_nufission/test_score_delayed_nufission.py b/tests/test_score_delayed_nufission/test_score_delayed_nufission.py deleted file mode 100644 index 0738520e29..0000000000 --- a/tests/test_score_delayed_nufission/test_score_delayed_nufission.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreDelayedNuFissionTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, 22, 23, 27)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 4)] - [t.add_filter(filt) for t in tallies] - [t.add_score('delayed-nu-fission') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - tallies[2].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreDelayedNuFissionTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreDelayedNuFissionTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreDelayedNuFissionTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_events/inputs_true.dat b/tests/test_score_events/inputs_true.dat deleted file mode 100644 index 4862547c16..0000000000 --- a/tests/test_score_events/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -1e43a3ef68b15aededc0466c913d2f784d237adc88827a980a3dcdcfd64e9bb73679cc3114d69caf389f9c478c439a8771602c397461b90ae0db58a81bfb739a \ No newline at end of file diff --git a/tests/test_score_events/results_true.dat b/tests/test_score_events/results_true.dat deleted file mode 100644 index 34b114fbcb..0000000000 --- a/tests/test_score_events/results_true.dat +++ /dev/null @@ -1,12 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -6.520000E+01 -8.551888E+02 -4.035000E+01 -3.351119E+02 -tally 2: -1.739000E+01 -6.083290E+01 -1.104000E+01 -2.498260E+01 diff --git a/tests/test_score_events/test_score_events.py b/tests/test_score_events/test_score_events.py deleted file mode 100644 index dce944592e..0000000000 --- a/tests/test_score_events/test_score_events.py +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreEventsTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, 27)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 3)] - [t.add_filter(filt) for t in tallies] - [t.add_score('events') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreEventsTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreEventsTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreEventsTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_fission/inputs_true.dat b/tests/test_score_fission/inputs_true.dat deleted file mode 100644 index fb5e6f8915..0000000000 --- a/tests/test_score_fission/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -dc94fe38751001e3950450f8f6e7a865a42e699be76372ac7846da863283b6bb963c32b477ace4217be60e1f7a473e946d27238b3faf17d3b7426dbd1a34f9e6 \ No newline at end of file diff --git a/tests/test_score_fission/results_true.dat b/tests/test_score_fission/results_true.dat deleted file mode 100644 index 2b28cc825c..0000000000 --- a/tests/test_score_fission/results_true.dat +++ /dev/null @@ -1,29 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -1.156315E+00 -2.733527E-01 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -6.971594E-01 -1.004973E-01 -tally 2: -1.225263E+00 -3.054971E-01 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -6.475958E-01 -8.567154E-02 -tally 3: -1.131528E+00 -2.612886E-01 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -7.021712E-01 -1.008605E-01 diff --git a/tests/test_score_fission/test_score_fission.py b/tests/test_score_fission/test_score_fission.py deleted file mode 100644 index 4026c0cabf..0000000000 --- a/tests/test_score_fission/test_score_fission.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreFissionTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, 22, 23, 27)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 4)] - [t.add_filter(filt) for t in tallies] - [t.add_score('fission') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - tallies[2].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreFissionTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreFissionTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreFissionTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_flux/inputs_true.dat b/tests/test_score_flux/inputs_true.dat deleted file mode 100644 index 934ab9d120..0000000000 --- a/tests/test_score_flux/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -bd5362b44190406434cdaa086b7e7397e8f6841b86ad61eda2c3f604df03746832dbcff0e8e96e355f5ba5b4333d6a336358379f8ced51f7a1721ceacb620daa \ No newline at end of file diff --git a/tests/test_score_flux/results_true.dat b/tests/test_score_flux/results_true.dat deleted file mode 100644 index 5c366ea8c7..0000000000 --- a/tests/test_score_flux/results_true.dat +++ /dev/null @@ -1,41 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -3.890713E+01 -3.046363E+02 -1.366220E+01 -3.758161E+01 -6.561669E+01 -8.680729E+02 -2.382728E+01 -1.170590E+02 -8.047875E+00 -1.334796E+01 -4.056568E+01 -3.389623E+02 -tally 2: -3.862543E+01 -2.993190E+02 -1.438678E+01 -4.193571E+01 -6.400634E+01 -8.298077E+02 -2.426423E+01 -1.215124E+02 -7.600812E+00 -1.199814E+01 -4.104875E+01 -3.455300E+02 -tally 3: -3.862543E+01 -2.993190E+02 -1.438678E+01 -4.193571E+01 -6.400634E+01 -8.298077E+02 -2.426423E+01 -1.215124E+02 -7.600812E+00 -1.199814E+01 -4.104875E+01 -3.455300E+02 diff --git a/tests/test_score_flux/test_score_flux.py b/tests/test_score_flux/test_score_flux.py deleted file mode 100644 index 1eea55f45f..0000000000 --- a/tests/test_score_flux/test_score_flux.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreFluxTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, 22, 23, 27, 28, 29)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 4)] - [t.add_filter(filt) for t in tallies] - [t.add_score('flux') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - tallies[2].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreFluxTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreFluxTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreFluxTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_flux_yn/inputs_true.dat b/tests/test_score_flux_yn/inputs_true.dat deleted file mode 100644 index 5ece3ef1ba..0000000000 --- a/tests/test_score_flux_yn/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -7909822f2ad84443506129719c664b71ac0eac875a7c234be42c553564435794b6028078b096b21e9fb5dad650495b84f2b53decf73e277c84a3ea52799c008e \ No newline at end of file diff --git a/tests/test_score_flux_yn/results_true.dat b/tests/test_score_flux_yn/results_true.dat deleted file mode 100644 index 28a1babb04..0000000000 --- a/tests/test_score_flux_yn/results_true.dat +++ /dev/null @@ -1,1314 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -3.890713E+01 -3.046363E+02 -1.366220E+01 -3.758161E+01 -6.561669E+01 -8.680729E+02 -2.382728E+01 -1.170590E+02 -8.047875E+00 -1.334796E+01 -4.056568E+01 -3.389623E+02 -tally 2: -3.890713E+01 -3.046363E+02 --1.623579E-01 -4.602199E-02 -4.860074E-01 -5.999399E-01 --7.895692E-01 -2.803790E-01 -2.525526E-01 -8.261176E-02 -9.103525E-02 -2.246700E-01 -4.583205E-01 -8.444556E-02 --1.246553E-01 -2.351010E-01 --3.534581E-01 -1.247916E-01 --3.700473E-01 -5.215562E-02 --1.831625E-01 -1.927381E-01 --1.540114E-01 -1.918221E-02 --1.266458E-01 -1.455875E-01 --6.796869E-01 -3.911926E-01 -1.987931E-02 -4.966442E-02 -4.443797E-01 -8.842717E-02 --1.073855E-01 -4.912428E-02 --3.999416E-02 -4.440138E-02 -2.857919E-01 -6.935717E-02 -4.174851E-01 -5.485570E-02 --2.178958E-01 -8.052149E-02 --1.179644E-02 -6.709330E-02 -8.843286E-01 -2.749681E-01 -2.935079E-01 -3.032897E-02 --1.809434E-01 -1.902413E-01 --2.091991E-01 -1.061912E-01 --7.137275E-02 -4.397656E-02 -2.311558E-01 -4.680679E-02 -9.927573E-02 -1.844111E-01 --2.821437E-02 -7.293762E-02 -6.224251E-01 -1.028351E-01 -4.136440E-01 -5.198207E-02 --7.833133E-02 -1.192960E-02 -1.041586E-01 -1.587417E-01 --3.595677E-01 -3.086335E-01 --2.096284E-01 -7.881012E-02 -1.366220E+01 -3.758161E+01 -1.461402E-02 -3.260482E-03 -8.325893E-02 -6.248769E-02 --2.785736E-01 -3.698417E-02 -1.932396E-03 -1.561742E-02 -8.063397E-02 -3.598680E-02 -8.565555E-02 -5.344369E-03 --3.899905E-02 -2.422867E-02 --1.215439E-01 -9.193858E-03 --1.982614E-01 -1.045860E-02 --7.712629E-02 -2.199979E-02 -3.626484E-02 -9.872078E-04 --6.305159E-02 -1.645879E-02 --3.052155E-01 -5.620564E-02 -3.507115E-02 -1.056383E-02 -1.297490E-02 -5.889958E-03 --1.208752E-02 -7.323602E-03 --3.441007E-03 -1.841496E-02 -5.543442E-02 -1.186636E-02 -8.000436E-02 -3.703835E-03 --3.636792E-02 -1.490603E-02 -8.753196E-02 -7.958027E-03 -2.066727E-01 -1.414130E-02 -3.652482E-02 -8.380395E-04 --1.652432E-01 -1.878732E-02 --1.375567E-01 -1.302400E-02 -3.692057E-03 -6.312506E-03 -9.016211E-02 -6.699735E-03 --5.875401E-02 -1.731945E-02 --3.960008E-02 -3.595906E-03 -1.653510E-01 -9.277293E-03 -4.064973E-02 -2.794606E-03 --1.729061E-02 -3.219772E-03 -5.764808E-02 -1.861051E-02 --5.970583E-02 -2.070164E-02 --6.739411E-02 -1.063341E-02 -6.561669E+01 -8.680729E+02 --7.938430E-01 -2.994198E-01 -9.278084E-01 -1.861899E+00 --1.432236E+00 -7.429647E-01 -7.460836E-02 -5.946808E-01 -6.140731E-02 -3.175177E-01 -1.212677E+00 -5.125288E-01 -1.952865E-02 -5.468421E-01 --2.965796E-01 -1.123288E-01 --5.334195E-01 -1.589612E-01 --6.340814E-01 -4.874650E-01 --4.264003E-02 -9.109571E-03 --4.323424E-01 -3.370329E-01 --1.186876E+00 -9.854644E-01 --2.420825E-01 -1.699455E-01 -2.920627E-02 -6.816643E-02 --2.684345E-01 -9.799236E-02 -1.281596E-01 -3.092987E-01 -3.746150E-01 -1.242044E-01 -1.035056E+00 -2.589772E-01 -2.005450E-01 -2.074622E-01 -5.412719E-01 -3.193584E-01 -1.070173E+00 -3.266747E-01 -2.657850E-01 -1.599950E-01 --4.694853E-01 -2.738937E-01 --7.761977E-01 -2.561652E-01 -3.673179E-02 -9.486916E-02 -3.309909E-01 -1.095243E-01 -1.623761E-01 -2.874582E-01 -2.846296E-01 -2.430397E-01 -7.384842E-01 -2.556480E-01 -3.577508E-01 -1.763210E-01 --2.917525E-01 -1.875646E-01 -1.634324E-01 -2.952144E-01 --4.329582E-01 -3.418652E-01 --2.719362E-01 -2.278925E-01 -2.382728E+01 -1.170590E+02 --4.718326E-01 -1.961501E-01 -1.612551E-02 -2.815245E-02 --6.390587E-01 -1.902968E-01 -2.290989E-01 -3.758858E-02 --1.568179E-01 -1.509162E-01 --2.363058E-01 -6.671396E-02 -4.350800E-02 -1.031680E-01 --2.956828E-01 -2.515141E-02 -4.835878E-01 -8.614200E-02 --5.365970E-02 -8.404087E-02 -6.079969E-02 -3.684343E-02 --1.313088E-02 -1.488843E-02 --2.603258E-02 -2.900625E-02 -1.249213E-01 -2.737277E-02 --4.491422E-01 -9.482600E-02 --1.095589E-01 -3.711500E-02 -2.248159E-01 -2.815827E-02 --5.976009E-02 -5.887828E-03 -6.097208E-02 -5.393315E-02 -3.449714E-02 -4.332442E-02 -1.030757E-01 -2.839453E-02 --4.399117E-01 -8.887569E-02 --4.564910E-01 -1.172398E-01 --2.528382E-01 -1.217655E-01 --3.443316E-01 -4.275616E-02 -5.437008E-02 -2.355567E-02 -5.505588E-02 -5.479129E-02 --8.326640E-02 -3.095858E-02 -1.888781E-01 -2.884542E-02 -1.981251E-01 -1.520694E-02 -5.279866E-02 -1.020641E-01 --1.465368E-01 -3.070686E-02 -2.356940E-01 -7.899657E-02 -4.109278E-01 -5.291082E-02 --2.572510E-01 -3.420895E-02 -8.047875E+00 -1.334796E+01 --1.707535E-01 -3.290927E-02 -1.024687E-01 -1.308811E-02 --1.805451E-01 -1.696222E-02 -3.519587E-02 -7.546726E-03 --1.034933E-01 -2.224207E-02 --1.580512E-01 -2.369625E-02 --4.302961E-02 -1.635623E-02 --2.992903E-02 -5.190220E-03 -2.130862E-01 -1.186351E-02 --3.321696E-02 -7.972404E-03 -4.992040E-02 -5.667098E-03 -1.261320E-02 -2.436872E-03 -8.314024E-04 -5.360616E-03 --6.318247E-02 -1.644558E-03 --1.373600E-01 -1.030707E-02 -1.511677E-03 -3.467685E-03 -1.923485E-02 -8.106508E-04 --1.180094E-01 -4.381376E-03 --2.798056E-02 -4.871288E-03 --7.689499E-02 -7.079493E-03 --5.842586E-02 -1.380713E-03 --9.946341E-02 -7.085062E-03 --8.061825E-02 -8.679468E-03 --9.229524E-03 -9.187483E-03 --1.048310E-01 -3.506026E-03 -3.666209E-02 -3.259203E-03 -1.190727E-01 -4.935341E-03 --7.391655E-02 -2.805554E-03 -2.029126E-02 -2.497736E-03 -2.787185E-02 -5.677987E-04 -6.873108E-02 -1.287727E-02 --5.262840E-02 -3.190440E-03 -3.910911E-02 -8.661121E-03 -1.076197E-01 -5.456176E-03 --7.476066E-02 -2.693605E-03 -4.056568E+01 -3.389623E+02 --6.428633E-01 -6.128893E-01 -4.878518E-01 -2.130257E-01 --9.548044E-01 -4.556949E-01 -2.234940E-01 -1.006817E-01 -1.080276E-01 -5.980158E-01 --3.639229E-01 -3.120105E-01 -3.237506E-01 -3.451548E-01 -1.143081E-01 -7.924550E-02 -6.456733E-01 -2.424413E-01 -1.478136E-01 -1.458665E-01 -2.134798E-02 -9.102875E-02 -3.633264E-01 -7.386463E-02 --2.213946E-01 -1.253249E-01 --3.153847E-01 -1.094273E-01 --7.161113E-01 -2.275500E-01 --2.461979E-01 -1.484452E-01 -2.332886E-01 -9.715521E-02 --7.029988E-02 -1.835254E-02 --1.982842E-01 -9.722998E-02 --2.089693E-01 -2.271404E-01 -7.316104E-02 -3.974665E-02 --3.266640E-01 -8.054809E-02 --5.126088E-01 -3.234942E-01 --3.048753E-01 -3.439501E-01 --4.872647E-01 -9.473730E-02 -1.590200E-01 -3.613462E-02 -4.641787E-01 -1.671339E-01 --1.391114E-01 -3.581561E-02 -2.209343E-01 -1.489367E-02 -3.015665E-01 -4.265694E-02 -1.334716E-01 -2.321929E-01 --3.702914E-01 -1.699549E-01 -8.891532E-02 -1.708595E-01 -6.123686E-01 -1.429184E-01 --5.891300E-01 -1.085467E-01 -tally 3: -3.862543E+01 -2.993190E+02 --5.083613E-01 -2.933365E-01 --4.356793E-01 -6.676831E-01 --6.093148E-01 -5.685331E-01 -2.512276E-01 -1.308652E-01 --1.075955E+00 -4.775270E-01 -3.660307E-01 -1.627691E-01 -5.402149E-01 -2.324946E-01 --3.887573E-01 -1.028105E-01 -4.324152E-01 -1.015147E-01 -3.306993E-02 -8.425069E-02 -2.127456E-01 -5.435453E-02 -2.977294E-01 -1.088039E-01 --1.055079E+00 -3.590635E-01 --6.740592E-01 -2.606281E-01 -3.329512E-01 -1.587428E-01 --1.248691E-01 -1.659045E-01 -2.306000E-01 -1.062057E-01 -9.127791E-02 -2.649459E-01 -2.629881E-01 -4.786229E-02 -2.286813E-01 -2.363629E-02 -6.338613E-01 -1.118828E-01 -7.466647E-01 -1.424535E-01 -7.955161E-02 -1.003327E-02 -1.082691E-01 -2.727882E-02 --5.295185E-01 -1.335133E-01 --6.321517E-01 -1.422916E-01 -1.236137E-01 -2.041422E-01 --5.389265E-02 -1.852888E-01 -3.746082E-01 -5.580885E-02 -1.383528E-01 -2.754456E-01 -5.081204E-01 -1.886515E-01 --4.022264E-01 -1.417397E-01 --3.377771E-01 -6.673888E-02 -1.170109E-01 -1.783182E-02 --2.097916E-01 -7.139323E-02 -1.438678E+01 -4.193571E+01 --6.547124E-01 -1.780450E-01 -2.207489E-01 -2.115835E-01 -4.952323E-02 -3.039341E-01 -6.681546E-01 -1.389250E-01 --4.078026E-02 -4.393667E-02 --8.695509E-01 -2.850853E-01 --1.792062E-01 -7.367253E-02 --5.657500E-01 -2.115125E-01 --8.525189E-02 -2.541971E-02 -5.227867E-02 -2.008468E-02 -6.825349E-02 -5.316522E-02 -3.763076E-01 -7.112554E-02 --1.279973E-02 -1.883096E-01 -7.775189E-02 -6.874374E-02 -1.119537E-01 -8.467755E-02 --1.600632E-01 -8.650448E-02 -6.210095E-01 -1.094309E-01 --9.997484E-02 -3.935353E-02 --2.300525E-01 -2.351925E-02 -2.486103E-02 -3.125565E-02 -1.289518E-02 -2.879251E-02 --3.166559E-01 -2.931428E-02 --1.379285E-02 -2.416257E-02 -1.220552E-02 -5.154030E-02 --1.431676E-01 -3.434080E-02 -8.148581E-02 -4.218412E-02 -8.541678E-03 -6.396306E-02 --7.851012E-03 -5.799658E-02 -2.435723E-01 -6.744263E-02 --2.429877E-01 -6.966516E-02 --1.638644E-01 -2.058798E-02 --8.986584E-03 -1.374824E-02 -3.547454E-01 -7.765460E-02 --1.570173E-01 -6.916960E-02 --1.056941E-02 -7.626528E-03 -6.400634E+01 -8.298077E+02 --3.894111E-01 -8.617494E-01 -1.796567E-01 -1.065356E+00 --1.561037E+00 -7.701475E-01 --2.237530E-01 -2.259442E-01 -1.109999E+00 -6.179412E-01 -1.636912E+00 -7.887441E-01 -4.661183E-01 -4.191138E-01 --1.040546E+00 -2.971961E-01 -1.044850E-01 -1.493530E-01 --4.991935E-01 -3.222404E-01 --4.205099E-01 -2.734911E-01 --7.583139E-01 -3.000853E-01 --3.750811E-01 -1.348273E-01 --6.355508E-01 -3.666139E-01 -5.233787E-01 -1.292414E-01 --2.869538E-02 -9.115092E-02 -6.851052E-01 -3.061040E-01 -1.703522E-01 -7.300335E-02 -4.541075E-01 -4.438507E-01 --2.674857E-01 -4.718588E-01 -3.022517E-02 -1.136781E-01 -5.755596E-01 -2.688162E-01 -2.698373E-01 -1.403188E-01 -8.772347E-01 -3.503562E-01 --4.258508E-01 -1.400825E-01 --1.384853E-01 -4.924947E-02 --1.009402E-01 -2.039230E-01 --1.339732E-01 -4.772083E-02 --3.249636E-01 -4.339747E-01 -1.564400E-01 -2.703717E-01 -2.536360E-01 -8.543919E-02 --3.622063E-01 -7.442240E-02 --2.074953E-02 -1.355614E-01 --3.909820E-02 -1.007999E-01 -3.162815E-01 -9.656425E-02 -2.426423E+01 -1.215124E+02 --9.628829E-01 -3.563586E-01 -2.964625E-01 -9.739638E-02 --3.680881E-01 -3.484018E-01 -4.339143E-01 -7.590564E-02 -4.633394E-02 -1.080030E-01 -3.091634E-01 -1.246585E-01 -4.520500E-02 -1.095704E-01 -2.479383E-01 -1.138276E-01 -6.457108E-02 -6.833667E-02 --5.623363E-02 -1.087254E-01 -3.675294E-01 -9.602246E-02 --1.459951E-01 -9.440544E-02 --6.817672E-02 -4.978066E-02 -1.076782E-02 -1.697440E-01 --1.024501E-02 -1.184830E-01 --1.654178E-01 -1.689209E-02 --1.006214E-01 -3.392546E-02 -5.070063E-01 -7.598100E-02 -2.251704E-01 -7.867348E-02 --1.693789E-01 -2.069974E-01 --2.790249E-01 -2.674643E-02 -3.888604E-01 -3.649330E-02 -7.614452E-02 -7.098023E-02 -1.236282E-02 -5.476895E-02 --3.151637E-01 -3.543466E-02 --6.363562E-01 -9.323507E-02 -2.808153E-01 -8.537981E-02 -2.197639E-01 -3.393653E-02 -8.660625E-02 -1.575544E-02 -3.733826E-02 -1.449783E-02 -8.800903E-04 -3.993931E-02 -3.304886E-01 -3.099095E-02 --4.149186E-02 -5.375091E-02 -2.448819E-01 -9.225028E-02 --1.230091E-01 -3.865008E-02 -7.600812E+00 -1.199814E+01 --8.738539E-01 -3.078183E-01 --2.592305E-01 -1.015952E-01 --6.391696E-02 -6.657129E-02 --2.857855E-01 -2.216294E-02 --3.516811E-01 -3.429194E-02 -4.585144E-02 -6.204056E-02 --1.599494E-01 -1.684846E-02 --2.364219E-01 -1.550644E-02 -1.197289E-01 -8.631394E-02 --1.364517E-01 -5.086560E-02 --2.213374E-01 -2.779096E-02 --7.328761E-02 -1.216230E-02 -2.476803E-01 -2.724500E-02 --6.356296E-02 -2.513244E-02 --3.886281E-01 -9.479377E-02 -1.006972E-01 -1.352120E-02 -6.932242E-02 -3.192705E-02 --3.232505E-02 -5.592418E-02 -9.582599E-02 -1.504811E-02 --2.887999E-01 -3.760482E-02 --2.372013E-01 -1.868786E-02 --1.655526E-01 -4.720116E-02 -8.611265E-02 -2.284310E-02 --2.142116E-01 -2.619080E-02 --1.811202E-01 -1.457105E-02 -1.430164E-01 -2.016598E-02 --4.066031E-01 -7.671356E-02 -1.364946E-01 -1.385677E-02 -8.357667E-02 -1.521943E-02 --2.235270E-02 -1.029570E-02 --7.920760E-02 -4.227880E-02 -2.622096E-01 -2.327728E-02 --7.787296E-03 -2.288300E-02 --1.645219E-02 -5.394704E-02 -7.274557E-02 -1.075570E-02 -4.104875E+01 -3.455300E+02 --9.827893E-01 -2.751051E-01 -3.227606E-01 -1.213711E-01 --1.272840E-02 -2.813639E-01 --1.910394E-01 -5.682320E-02 -4.136260E-01 -2.444497E-01 --5.123352E-02 -3.867174E-01 -4.424857E-02 -9.651204E-02 --3.975443E-02 -1.867060E-01 -7.618837E-01 -1.756891E-01 -4.259599E-01 -1.146646E-01 -5.658031E-02 -1.366891E-01 -2.464931E-01 -2.181122E-01 --1.593998E-01 -2.666678E-01 --1.928096E-01 -1.216164E-01 --7.020992E-01 -1.701086E-01 -3.914244E-01 -1.772217E-01 -3.285697E-01 -1.521826E-01 --2.947923E-02 -8.201284E-02 --1.346653E-01 -4.498340E-02 -2.112724E-01 -9.923303E-02 --8.551910E-02 -8.804286E-03 --3.631005E-01 -1.168145E-01 --1.840770E-01 -5.714283E-02 --2.709303E-02 -9.381338E-02 --2.104005E-02 -4.479215E-02 -4.059493E-01 -8.277066E-02 -2.877400E-01 -8.584721E-02 -4.881128E-02 -1.864179E-01 -8.584545E-02 -4.421744E-02 --4.392466E-01 -6.260373E-02 --3.143214E-02 -8.184856E-02 --5.630973E-01 -1.323469E-01 --8.010498E-02 -1.096975E-01 -1.818829E-01 -1.717701E-02 --1.062149E-01 -5.400365E-02 -tally 4: -3.862543E+01 -2.993190E+02 --5.083613E-01 -2.933365E-01 --4.356793E-01 -6.676831E-01 --6.093148E-01 -5.685331E-01 -2.512276E-01 -1.308652E-01 --1.075955E+00 -4.775270E-01 -3.660307E-01 -1.627691E-01 -5.402149E-01 -2.324946E-01 --3.887573E-01 -1.028105E-01 -4.324152E-01 -1.015147E-01 -3.306993E-02 -8.425069E-02 -2.127456E-01 -5.435453E-02 -2.977294E-01 -1.088039E-01 --1.055079E+00 -3.590635E-01 --6.740592E-01 -2.606281E-01 -3.329512E-01 -1.587428E-01 --1.248691E-01 -1.659045E-01 -2.306000E-01 -1.062057E-01 -9.127791E-02 -2.649459E-01 -2.629881E-01 -4.786229E-02 -2.286813E-01 -2.363629E-02 -6.338613E-01 -1.118828E-01 -7.466647E-01 -1.424535E-01 -7.955161E-02 -1.003327E-02 -1.082691E-01 -2.727882E-02 --5.295185E-01 -1.335133E-01 --6.321517E-01 -1.422916E-01 -1.236137E-01 -2.041422E-01 --5.389265E-02 -1.852888E-01 -3.746082E-01 -5.580885E-02 -1.383528E-01 -2.754456E-01 -5.081204E-01 -1.886515E-01 --4.022264E-01 -1.417397E-01 --3.377771E-01 -6.673888E-02 -1.170109E-01 -1.783182E-02 --2.097916E-01 -7.139323E-02 -1.438678E+01 -4.193571E+01 --6.547124E-01 -1.780450E-01 -2.207489E-01 -2.115835E-01 -4.952323E-02 -3.039341E-01 -6.681546E-01 -1.389250E-01 --4.078026E-02 -4.393667E-02 --8.695509E-01 -2.850853E-01 --1.792062E-01 -7.367253E-02 --5.657500E-01 -2.115125E-01 --8.525189E-02 -2.541971E-02 -5.227867E-02 -2.008468E-02 -6.825349E-02 -5.316522E-02 -3.763076E-01 -7.112554E-02 --1.279973E-02 -1.883096E-01 -7.775189E-02 -6.874374E-02 -1.119537E-01 -8.467755E-02 --1.600632E-01 -8.650448E-02 -6.210095E-01 -1.094309E-01 --9.997484E-02 -3.935353E-02 --2.300525E-01 -2.351925E-02 -2.486103E-02 -3.125565E-02 -1.289518E-02 -2.879251E-02 --3.166559E-01 -2.931428E-02 --1.379285E-02 -2.416257E-02 -1.220552E-02 -5.154030E-02 --1.431676E-01 -3.434080E-02 -8.148581E-02 -4.218412E-02 -8.541678E-03 -6.396306E-02 --7.851012E-03 -5.799658E-02 -2.435723E-01 -6.744263E-02 --2.429877E-01 -6.966516E-02 --1.638644E-01 -2.058798E-02 --8.986584E-03 -1.374824E-02 -3.547454E-01 -7.765460E-02 --1.570173E-01 -6.916960E-02 --1.056941E-02 -7.626528E-03 -6.400634E+01 -8.298077E+02 --3.894111E-01 -8.617494E-01 -1.796567E-01 -1.065356E+00 --1.561037E+00 -7.701475E-01 --2.237530E-01 -2.259442E-01 -1.109999E+00 -6.179412E-01 -1.636912E+00 -7.887441E-01 -4.661183E-01 -4.191138E-01 --1.040546E+00 -2.971961E-01 -1.044850E-01 -1.493530E-01 --4.991935E-01 -3.222404E-01 --4.205099E-01 -2.734911E-01 --7.583139E-01 -3.000853E-01 --3.750811E-01 -1.348273E-01 --6.355508E-01 -3.666139E-01 -5.233787E-01 -1.292414E-01 --2.869538E-02 -9.115092E-02 -6.851052E-01 -3.061040E-01 -1.703522E-01 -7.300335E-02 -4.541075E-01 -4.438507E-01 --2.674857E-01 -4.718588E-01 -3.022517E-02 -1.136781E-01 -5.755596E-01 -2.688162E-01 -2.698373E-01 -1.403188E-01 -8.772347E-01 -3.503562E-01 --4.258508E-01 -1.400825E-01 --1.384853E-01 -4.924947E-02 --1.009402E-01 -2.039230E-01 --1.339732E-01 -4.772083E-02 --3.249636E-01 -4.339747E-01 -1.564400E-01 -2.703717E-01 -2.536360E-01 -8.543919E-02 --3.622063E-01 -7.442240E-02 --2.074953E-02 -1.355614E-01 --3.909820E-02 -1.007999E-01 -3.162815E-01 -9.656425E-02 -2.426423E+01 -1.215124E+02 --9.628829E-01 -3.563586E-01 -2.964625E-01 -9.739638E-02 --3.680881E-01 -3.484018E-01 -4.339143E-01 -7.590564E-02 -4.633394E-02 -1.080030E-01 -3.091634E-01 -1.246585E-01 -4.520500E-02 -1.095704E-01 -2.479383E-01 -1.138276E-01 -6.457108E-02 -6.833667E-02 --5.623363E-02 -1.087254E-01 -3.675294E-01 -9.602246E-02 --1.459951E-01 -9.440544E-02 --6.817672E-02 -4.978066E-02 -1.076782E-02 -1.697440E-01 --1.024501E-02 -1.184830E-01 --1.654178E-01 -1.689209E-02 --1.006214E-01 -3.392546E-02 -5.070063E-01 -7.598100E-02 -2.251704E-01 -7.867348E-02 --1.693789E-01 -2.069974E-01 --2.790249E-01 -2.674643E-02 -3.888604E-01 -3.649330E-02 -7.614452E-02 -7.098023E-02 -1.236282E-02 -5.476895E-02 --3.151637E-01 -3.543466E-02 --6.363562E-01 -9.323507E-02 -2.808153E-01 -8.537981E-02 -2.197639E-01 -3.393653E-02 -8.660625E-02 -1.575544E-02 -3.733826E-02 -1.449783E-02 -8.800903E-04 -3.993931E-02 -3.304886E-01 -3.099095E-02 --4.149186E-02 -5.375091E-02 -2.448819E-01 -9.225028E-02 --1.230091E-01 -3.865008E-02 -7.600812E+00 -1.199814E+01 --8.738539E-01 -3.078183E-01 --2.592305E-01 -1.015952E-01 --6.391696E-02 -6.657129E-02 --2.857855E-01 -2.216294E-02 --3.516811E-01 -3.429194E-02 -4.585144E-02 -6.204056E-02 --1.599494E-01 -1.684846E-02 --2.364219E-01 -1.550644E-02 -1.197289E-01 -8.631394E-02 --1.364517E-01 -5.086560E-02 --2.213374E-01 -2.779096E-02 --7.328761E-02 -1.216230E-02 -2.476803E-01 -2.724500E-02 --6.356296E-02 -2.513244E-02 --3.886281E-01 -9.479377E-02 -1.006972E-01 -1.352120E-02 -6.932242E-02 -3.192705E-02 --3.232505E-02 -5.592418E-02 -9.582599E-02 -1.504811E-02 --2.887999E-01 -3.760482E-02 --2.372013E-01 -1.868786E-02 --1.655526E-01 -4.720116E-02 -8.611265E-02 -2.284310E-02 --2.142116E-01 -2.619080E-02 --1.811202E-01 -1.457105E-02 -1.430164E-01 -2.016598E-02 --4.066031E-01 -7.671356E-02 -1.364946E-01 -1.385677E-02 -8.357667E-02 -1.521943E-02 --2.235270E-02 -1.029570E-02 --7.920760E-02 -4.227880E-02 -2.622096E-01 -2.327728E-02 --7.787296E-03 -2.288300E-02 --1.645219E-02 -5.394704E-02 -7.274557E-02 -1.075570E-02 -4.104875E+01 -3.455300E+02 --9.827893E-01 -2.751051E-01 -3.227606E-01 -1.213711E-01 --1.272840E-02 -2.813639E-01 --1.910394E-01 -5.682320E-02 -4.136260E-01 -2.444497E-01 --5.123352E-02 -3.867174E-01 -4.424857E-02 -9.651204E-02 --3.975443E-02 -1.867060E-01 -7.618837E-01 -1.756891E-01 -4.259599E-01 -1.146646E-01 -5.658031E-02 -1.366891E-01 -2.464931E-01 -2.181122E-01 --1.593998E-01 -2.666678E-01 --1.928096E-01 -1.216164E-01 --7.020992E-01 -1.701086E-01 -3.914244E-01 -1.772217E-01 -3.285697E-01 -1.521826E-01 --2.947923E-02 -8.201284E-02 --1.346653E-01 -4.498340E-02 -2.112724E-01 -9.923303E-02 --8.551910E-02 -8.804286E-03 --3.631005E-01 -1.168145E-01 --1.840770E-01 -5.714283E-02 --2.709303E-02 -9.381338E-02 --2.104005E-02 -4.479215E-02 -4.059493E-01 -8.277066E-02 -2.877400E-01 -8.584721E-02 -4.881128E-02 -1.864179E-01 -8.584545E-02 -4.421744E-02 --4.392466E-01 -6.260373E-02 --3.143214E-02 -8.184856E-02 --5.630973E-01 -1.323469E-01 --8.010498E-02 -1.096975E-01 -1.818829E-01 -1.717701E-02 --1.062149E-01 -5.400365E-02 diff --git a/tests/test_score_flux_yn/test_score_flux_yn.py b/tests/test_score_flux_yn/test_score_flux_yn.py deleted file mode 100755 index 254069226c..0000000000 --- a/tests/test_score_flux_yn/test_score_flux_yn.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreFluxYnTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, 22, 23, 27, 28, 29)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 5)] - [t.add_filter(filt) for t in tallies] - tallies[0].add_score('flux') - [t.add_score('flux-y5') for t in tallies[1:]] - tallies[1].estimator = 'tracklength' - tallies[2].estimator = 'analog' - tallies[3].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreFluxYnTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreFluxYnTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreFluxYnTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_inverse_velocity/inputs_true.dat b/tests/test_score_inverse_velocity/inputs_true.dat deleted file mode 100644 index 96cbc7378a..0000000000 --- a/tests/test_score_inverse_velocity/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -4eee301ac8b984041ded725f1b031602e823edec1dd0883481fba794d6301eb5b83a0e87cf77b1298901de518c783ee5a017a91b5ac962ab0db8b37bb9918053 \ No newline at end of file diff --git a/tests/test_score_inverse_velocity/results_true.dat b/tests/test_score_inverse_velocity/results_true.dat deleted file mode 100644 index 740d31f16b..0000000000 --- a/tests/test_score_inverse_velocity/results_true.dat +++ /dev/null @@ -1,29 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -1.049628E-05 -2.261930E-11 -4.056389E-06 -3.411247E-12 -2.243766E-05 -1.069671E-10 -6.354432E-06 -8.370608E-12 -tally 2: -1.029200E-05 -2.180706E-11 -4.353200E-06 -4.363747E-12 -2.211790E-05 -1.055892E-10 -6.086777E-06 -7.589579E-12 -tally 3: -1.029200E-05 -2.180706E-11 -4.353200E-06 -4.363747E-12 -2.211790E-05 -1.055892E-10 -6.086777E-06 -7.589579E-12 diff --git a/tests/test_score_inverse_velocity/test_score_inversevelocity.py b/tests/test_score_inverse_velocity/test_score_inversevelocity.py deleted file mode 100644 index 787e9df091..0000000000 --- a/tests/test_score_inverse_velocity/test_score_inversevelocity.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreInverseVelocityTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, 22, 23, 27)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 4)] - [t.add_filter(filt) for t in tallies] - [t.add_score('inverse-velocity') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - tallies[2].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreInverseVelocityTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreInverseVelocityTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreInverseVelocityTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_kappafission/inputs_true.dat b/tests/test_score_kappafission/inputs_true.dat deleted file mode 100644 index b89696c82b..0000000000 --- a/tests/test_score_kappafission/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -32c8c6625dbeecd8ed670871234a0aa9878a29cd86d93328151d90eda209bf70ee83901418cb29f7e8ef66d6f9bdc74a350f2340b285abc64d772baf02ed6377 \ No newline at end of file diff --git a/tests/test_score_kappafission/results_true.dat b/tests/test_score_kappafission/results_true.dat deleted file mode 100644 index 976eefa36e..0000000000 --- a/tests/test_score_kappafission/results_true.dat +++ /dev/null @@ -1,29 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -2.266169E+02 -1.049923E+04 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.366590E+02 -3.861651E+03 -tally 2: -2.403775E+02 -1.175130E+04 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.270420E+02 -3.297537E+03 -tally 3: -2.217588E+02 -1.003581E+04 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.376303E+02 -3.875598E+03 diff --git a/tests/test_score_kappafission/test_score_kappafission.py b/tests/test_score_kappafission/test_score_kappafission.py deleted file mode 100644 index 2e93b51c46..0000000000 --- a/tests/test_score_kappafission/test_score_kappafission.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreKappaFissionTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, 22, 23, 27)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 4)] - [t.add_filter(filt) for t in tallies] - [t.add_score('kappa-fission') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - tallies[2].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreKappaFissionTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreKappaFissionTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreKappaFissionTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_nufission/inputs_true.dat b/tests/test_score_nufission/inputs_true.dat deleted file mode 100644 index 0e6d19262d..0000000000 --- a/tests/test_score_nufission/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -ef1c9dc1906068cb48427ffc8776d8b95810ca1aca4534692ab7f788d8dac84c5f4545c7edbd884b55fb3e2b35aa1f28b9277d359427fe89bed012b38bf6342e \ No newline at end of file diff --git a/tests/test_score_nufission/results_true.dat b/tests/test_score_nufission/results_true.dat deleted file mode 100644 index 31c6abe9d5..0000000000 --- a/tests/test_score_nufission/results_true.dat +++ /dev/null @@ -1,29 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -3.041781E+00 -1.891714E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.835166E+00 -6.963265E-01 -tally 2: -3.341227E+00 -2.322075E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.862652E+00 -7.112121E-01 -tally 3: -2.975121E+00 -1.806644E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -1.846861E+00 -6.985413E-01 diff --git a/tests/test_score_nufission/test_score_nufission.py b/tests/test_score_nufission/test_score_nufission.py deleted file mode 100644 index 3d540daac7..0000000000 --- a/tests/test_score_nufission/test_score_nufission.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreNuFissionTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, 22, 23, 27)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 4)] - [t.add_filter(filt) for t in tallies] - [t.add_score('nu-fission') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - tallies[2].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreNuFissionTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreNuFissionTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreNuFissionTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_nuscatter/inputs_true.dat b/tests/test_score_nuscatter/inputs_true.dat deleted file mode 100644 index aaf16deca5..0000000000 --- a/tests/test_score_nuscatter/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -2ec83c8c9175d4fccd6421ef736cced51f90bf01f7e20992a0d1b49db04221132d483032467c9dcda5f562f10a67f5fde1967a025230e4ea2bf9668816881d21 \ No newline at end of file diff --git a/tests/test_score_nuscatter/results_true.dat b/tests/test_score_nuscatter/results_true.dat deleted file mode 100644 index 8f9fcba891..0000000000 --- a/tests/test_score_nuscatter/results_true.dat +++ /dev/null @@ -1,11 +0,0 @@ -k-combined: -1.034954E+00 1.782721E-02 -tally 1: -0.000000E+00 -0.000000E+00 -2.514000E+01 -6.511880E+01 -6.370000E+00 -4.230900E+00 -8.547000E+01 -7.481913E+02 diff --git a/tests/test_score_nuscatter/test_score_nuscatter.py b/tests/test_score_nuscatter/test_score_nuscatter.py deleted file mode 100644 index 6f33181265..0000000000 --- a/tests/test_score_nuscatter/test_score_nuscatter.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreNuScatterTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(10, 21, 22, 23)) - t = openmc.Tally(tally_id=1) - t.add_filter(filt) - t.add_score('nu-scatter') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(t) - - self._input_set.build_default_materials_and_geometry() - self._input_set.build_default_settings() - - self._input_set.settings.inactive = 0 - - self._input_set.export() - - def _cleanup(self): - super(ScoreNuScatterTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreNuScatterTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_nuscatter_n/inputs_true.dat b/tests/test_score_nuscatter_n/inputs_true.dat deleted file mode 100644 index cd16f80122..0000000000 --- a/tests/test_score_nuscatter_n/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -b304e586966abb31fbe625a7a48547e51ea563061928c61bc8bbec01df94b4a61b8c874dd4b5cac86a74508e81dd3f7dd8d801fcc4fe75ded5eeb3f73cf113a2 \ No newline at end of file diff --git a/tests/test_score_nuscatter_n/results_true.dat b/tests/test_score_nuscatter_n/results_true.dat deleted file mode 100644 index 0c1315807f..0000000000 --- a/tests/test_score_nuscatter_n/results_true.dat +++ /dev/null @@ -1,33 +0,0 @@ -k-combined: -1.034954E+00 1.782721E-02 -tally 1: -2.514000E+01 -6.511880E+01 -2.724740E+00 -8.378120E-01 -1.521255E+00 -2.667071E-01 -7.903706E-01 -1.216244E-01 -5.770120E-01 -5.508594E-02 -6.370000E+00 -4.230900E+00 -8.075261E-01 -9.047897E-02 -5.879624E-01 -4.107777E-02 -2.034636E-01 -8.243025E-03 --2.744502E-02 -1.515916E-03 -8.547000E+01 -7.481913E+02 -4.446994E+01 -2.016855E+02 -1.664683E+01 -2.837713E+01 -1.373176E+00 -3.329601E-01 --1.663772E+00 -4.264485E-01 diff --git a/tests/test_score_nuscatter_n/test_score_nuscatter_n.py b/tests/test_score_nuscatter_n/test_score_nuscatter_n.py deleted file mode 100644 index 40029bd02c..0000000000 --- a/tests/test_score_nuscatter_n/test_score_nuscatter_n.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreNuScatterNTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, 22, 23)) - t = openmc.Tally(tally_id=1) - t.add_filter(filt) - t.add_score('nu-scatter') - t.add_score('nu-scatter-1') - t.add_score('nu-scatter-2') - t.add_score('nu-scatter-3') - t.add_score('nu-scatter-4') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(t) - - self._input_set.build_default_materials_and_geometry() - self._input_set.build_default_settings() - - self._input_set.settings.inactive = 0 - - self._input_set.export() - - def _cleanup(self): - super(ScoreNuScatterNTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreNuScatterNTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_nuscatter_pn/inputs_true.dat b/tests/test_score_nuscatter_pn/inputs_true.dat deleted file mode 100644 index ae7c108b7a..0000000000 --- a/tests/test_score_nuscatter_pn/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -9c3d305ad2c4ac642db896100805c32ce0cf0bbf89958718a30afde7e1dd1329fb7946c35fc628355d29270760e5f1c3700890dfba1afe8d31f4deab63de86ff \ No newline at end of file diff --git a/tests/test_score_nuscatter_pn/results_true.dat b/tests/test_score_nuscatter_pn/results_true.dat deleted file mode 100644 index 603c13e701..0000000000 --- a/tests/test_score_nuscatter_pn/results_true.dat +++ /dev/null @@ -1,24 +0,0 @@ -k-combined: -1.034954E+00 1.782721E-02 -tally 1: -2.514000E+01 -6.511880E+01 -2.724740E+00 -8.378120E-01 -1.521255E+00 -2.667071E-01 -7.903706E-01 -1.216244E-01 -5.770120E-01 -5.508594E-02 -tally 2: -2.514000E+01 -6.511880E+01 -2.724740E+00 -8.378120E-01 -1.521255E+00 -2.667071E-01 -7.903706E-01 -1.216244E-01 -5.770120E-01 -5.508594E-02 diff --git a/tests/test_score_nuscatter_pn/test_score_nuscatter_pn.py b/tests/test_score_nuscatter_pn/test_score_nuscatter_pn.py deleted file mode 100644 index 6a69fe054d..0000000000 --- a/tests/test_score_nuscatter_pn/test_score_nuscatter_pn.py +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreNuScatterPNTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, )) - t1 = openmc.Tally(tally_id=1) - t1.add_filter(filt) - t1.add_score('nu-scatter-0') - t1.add_score('nu-scatter-1') - t1.add_score('nu-scatter-2') - t1.add_score('nu-scatter-3') - t1.add_score('nu-scatter-4') - t2 = openmc.Tally(tally_id=2) - t2.add_filter(filt) - t2.add_score('nu-scatter-p4') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(t1) - self._input_set.tallies.add_tally(t2) - - self._input_set.build_default_materials_and_geometry() - self._input_set.build_default_settings() - - self._input_set.settings.inactive = 0 - - self._input_set.export() - - def _cleanup(self): - super(ScoreNuScatterPNTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreNuScatterPNTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_nuscatter_yn/inputs_true.dat b/tests/test_score_nuscatter_yn/inputs_true.dat deleted file mode 100644 index da8fc3f2fe..0000000000 --- a/tests/test_score_nuscatter_yn/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -c483f62afa60f7390bbd82d7372a1f629f6783f8fb85857c63a3912e8d980118eff38f356b53312d067daa0f190634ac89bebac19cfe15325fb2b440473addae \ No newline at end of file diff --git a/tests/test_score_nuscatter_yn/results_true.dat b/tests/test_score_nuscatter_yn/results_true.dat deleted file mode 100644 index 2b14a72560..0000000000 --- a/tests/test_score_nuscatter_yn/results_true.dat +++ /dev/null @@ -1,38 +0,0 @@ -k-combined: -1.034954E+00 1.782721E-02 -tally 1: -2.514000E+01 -6.511880E+01 -tally 2: -2.514000E+01 -6.511880E+01 -2.222467E-01 -2.881247E-02 -3.019176E-01 -3.014833E-02 --8.459006E-04 -4.773570E-02 -9.596964E-02 -1.009754E-02 -4.314855E-02 -6.207871E-03 -4.607677E-02 -9.205573E-03 -2.345994E-03 -1.243004E-02 -9.577397E-02 -6.605519E-03 -2.821584E-02 -3.834286E-03 --1.077389E-01 -6.570217E-03 -1.106443E-01 -1.006436E-02 -1.322104E-01 -7.721677E-03 --1.315548E-02 -5.488918E-04 --2.792171E-02 -5.816161E-03 -1.994370E-02 -1.169674E-03 diff --git a/tests/test_score_nuscatter_yn/test_score_nuscatter_yn.py b/tests/test_score_nuscatter_yn/test_score_nuscatter_yn.py deleted file mode 100644 index 6a6ad54956..0000000000 --- a/tests/test_score_nuscatter_yn/test_score_nuscatter_yn.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreNuScatterYNTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, )) - t1 = openmc.Tally(tally_id=1) - t1.add_filter(filt) - t1.add_score('nu-scatter-0') - t2 = openmc.Tally(tally_id=2) - t2.add_filter(filt) - t2.add_score('nu-scatter-y3') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(t1) - self._input_set.tallies.add_tally(t2) - - self._input_set.build_default_materials_and_geometry() - self._input_set.build_default_settings() - - self._input_set.settings.inactive = 0 - - self._input_set.export() - - def _cleanup(self): - super(ScoreNuScatterYNTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreNuScatterYNTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_scatter/inputs_true.dat b/tests/test_score_scatter/inputs_true.dat deleted file mode 100644 index 28e2bebeee..0000000000 --- a/tests/test_score_scatter/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -b3e7dc8968d814e455866532c05702196bab7dbdaca3c6cd3eb4f22243efb67755b373a7c54de7d767c6f3e0c4b5db612c345832c8f07cd1f50bc08fc841b3b8 \ No newline at end of file diff --git a/tests/test_score_scatter/results_true.dat b/tests/test_score_scatter/results_true.dat deleted file mode 100644 index 8d3e0fdc03..0000000000 --- a/tests/test_score_scatter/results_true.dat +++ /dev/null @@ -1,29 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -0.000000E+00 -0.000000E+00 -1.514235E+01 -4.620490E+01 -3.839050E+00 -2.975620E+00 -5.317903E+01 -5.754103E+02 -tally 2: -0.000000E+00 -0.000000E+00 -1.485000E+01 -4.439790E+01 -4.120000E+00 -3.438000E+00 -5.173000E+01 -5.467243E+02 -tally 3: -0.000000E+00 -0.000000E+00 -1.496769E+01 -4.502714E+01 -4.117144E+00 -3.431861E+00 -5.174677E+01 -5.469474E+02 diff --git a/tests/test_score_scatter/test_score_scatter.py b/tests/test_score_scatter/test_score_scatter.py deleted file mode 100644 index 0b2621acd3..0000000000 --- a/tests/test_score_scatter/test_score_scatter.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreScatterTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(10, 21, 22, 23)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 4)] - [t.add_filter(filt) for t in tallies] - [t.add_score('scatter') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - tallies[2].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreScatterTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreScatterTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreScatterTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_scatter_n/inputs_true.dat b/tests/test_score_scatter_n/inputs_true.dat deleted file mode 100644 index ea71722993..0000000000 --- a/tests/test_score_scatter_n/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -fae463e84fbb166a9ec03390824e359d162fae9f8556d44681c76907c22a0d48e69281dcce6ffd7f3d6e4b19dad3d705c516328d902878288300f87c4a72a671 \ No newline at end of file diff --git a/tests/test_score_scatter_n/results_true.dat b/tests/test_score_scatter_n/results_true.dat deleted file mode 100644 index 96e56bd6ab..0000000000 --- a/tests/test_score_scatter_n/results_true.dat +++ /dev/null @@ -1,33 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -1.485000E+01 -4.439790E+01 -1.259515E+00 -3.360064E-01 -7.983154E-01 -1.355632E-01 -3.425460E-01 -2.971972E-02 -2.949225E-01 -3.975603E-02 -4.120000E+00 -3.438000E+00 -6.222571E-01 -8.335984E-02 -1.670136E-01 -1.374768E-02 --5.819374E-02 -1.091808E-02 --6.389550E-02 -5.688533E-03 -5.173000E+01 -5.467243E+02 -2.669403E+01 -1.451361E+02 -9.691140E+00 -1.933574E+01 -5.860769E-01 -2.122377E-01 --1.190340E+00 -3.145785E-01 diff --git a/tests/test_score_scatter_n/test_score_scatter_n.py b/tests/test_score_scatter_n/test_score_scatter_n.py deleted file mode 100644 index 47fd12b2ed..0000000000 --- a/tests/test_score_scatter_n/test_score_scatter_n.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreScatterNTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, 22, 23)) - t = openmc.Tally(tally_id=1) - t.add_filter(filt) - t.add_score('scatter') - t.add_score('scatter-1') - t.add_score('scatter-2') - t.add_score('scatter-3') - t.add_score('scatter-4') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(t) - - super(ScoreScatterNTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreScatterNTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreScatterNTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_scatter_pn/inputs_true.dat b/tests/test_score_scatter_pn/inputs_true.dat deleted file mode 100644 index 9c74a13f93..0000000000 --- a/tests/test_score_scatter_pn/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -2d2e8de66740bbed327dd926f59d75120b04d30ffb9d7c96876ba21c7768c367c63e3624c3ee40553dc40d9a5379fa0052a932a6c5f45d1ad4327c4ac83cdff2 \ No newline at end of file diff --git a/tests/test_score_scatter_pn/results_true.dat b/tests/test_score_scatter_pn/results_true.dat deleted file mode 100644 index 753216a8b7..0000000000 --- a/tests/test_score_scatter_pn/results_true.dat +++ /dev/null @@ -1,24 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -1.485000E+01 -4.439790E+01 -1.259515E+00 -3.360064E-01 -7.983154E-01 -1.355632E-01 -3.425460E-01 -2.971972E-02 -2.949225E-01 -3.975603E-02 -tally 2: -1.485000E+01 -4.439790E+01 -1.259515E+00 -3.360064E-01 -7.983154E-01 -1.355632E-01 -3.425460E-01 -2.971972E-02 -2.949225E-01 -3.975603E-02 diff --git a/tests/test_score_scatter_pn/test_score_scatter_pn.py b/tests/test_score_scatter_pn/test_score_scatter_pn.py deleted file mode 100644 index 9186fe5480..0000000000 --- a/tests/test_score_scatter_pn/test_score_scatter_pn.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreScatterPNTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, )) - t1 = openmc.Tally(tally_id=1) - t1.add_filter(filt) - t1.add_score('scatter-0') - t1.add_score('scatter-1') - t1.add_score('scatter-2') - t1.add_score('scatter-3') - t1.add_score('scatter-4') - t1.estimator = 'analog' - t2 = openmc.Tally(tally_id=2) - t2.add_filter(filt) - t2.add_score('scatter-p4') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(t1) - self._input_set.tallies.add_tally(t2) - - super(ScoreScatterPNTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreScatterPNTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreScatterPNTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_scatter_yn/inputs_true.dat b/tests/test_score_scatter_yn/inputs_true.dat deleted file mode 100644 index 0bfb564ff8..0000000000 --- a/tests/test_score_scatter_yn/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -8dd146ebd2008801a4c83470e8d9fcc8d39fe5e687c65f980eca209dd5f7fb8d17bfadf3bf3d452eaa564ee5f35a8fc97adc3dda44160d6ad574b784f2dd0030 \ No newline at end of file diff --git a/tests/test_score_scatter_yn/results_true.dat b/tests/test_score_scatter_yn/results_true.dat deleted file mode 100644 index fb6b4749d1..0000000000 --- a/tests/test_score_scatter_yn/results_true.dat +++ /dev/null @@ -1,56 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -1.485000E+01 -4.439790E+01 -tally 2: -1.485000E+01 -4.439790E+01 --8.440076E-02 -1.135203E-02 -8.198663E-02 -3.887429E-02 --1.358080E-01 -2.890416E-02 --3.544823E-02 -9.843339E-04 --1.542072E-01 -8.228126E-03 -1.057111E-01 -3.758100E-03 --1.647870E-02 -4.827841E-03 -1.378297E-01 -1.566876E-02 -4.676778E-02 -4.809366E-03 -1.966204E-02 -7.447981E-04 -1.889258E-02 -6.841953E-04 -1.337703E-02 -1.250077E-03 --1.044684E-01 -6.969498E-03 --1.177995E-02 -8.208715E-03 --1.940058E-04 -5.128759E-03 --2.165868E-02 -1.335569E-03 --3.080886E-02 -4.544434E-04 -1.039856E-03 -1.209631E-03 --1.317068E-02 -1.469722E-03 --6.432758E-02 -2.106736E-03 -3.323023E-02 -4.513838E-03 -2.683700E-02 -1.146747E-03 --3.494912E-02 -1.006153E-03 -6.289525E-02 -3.700145E-03 diff --git a/tests/test_score_scatter_yn/test_score_scatter_yn.py b/tests/test_score_scatter_yn/test_score_scatter_yn.py deleted file mode 100644 index 9e6900031f..0000000000 --- a/tests/test_score_scatter_yn/test_score_scatter_yn.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreScatterYNTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(21, )) - t1 = openmc.Tally(tally_id=1) - t1.add_filter(filt) - t1.add_score('scatter-0') - t1.estimator = 'analog' - t2 = openmc.Tally(tally_id=2) - t2.add_filter(filt) - t2.add_score('scatter-y4') - self._input_set.tallies = openmc.TalliesFile() - self._input_set.tallies.add_tally(t1) - self._input_set.tallies.add_tally(t2) - - super(ScoreScatterYNTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreScatterYNTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreScatterYNTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_total/inputs_true.dat b/tests/test_score_total/inputs_true.dat deleted file mode 100644 index 45bebe24c2..0000000000 --- a/tests/test_score_total/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -7bf8aa36c31ca8b34f7c410901cb96e1ba7d389c33c850591519b15753c1322b75e5051c960dbc2e254cf46cc9720dd5e348aac0acbb70d10c71165e2f5ab9e4 \ No newline at end of file diff --git a/tests/test_score_total/results_true.dat b/tests/test_score_total/results_true.dat deleted file mode 100644 index 9b8a06f807..0000000000 --- a/tests/test_score_total/results_true.dat +++ /dev/null @@ -1,29 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -0.000000E+00 -0.000000E+00 -1.767552E+01 -6.295417E+01 -3.863588E+00 -3.013300E+00 -5.356594E+01 -5.839391E+02 -tally 2: -0.000000E+00 -0.000000E+00 -1.739000E+01 -6.083290E+01 -4.160000E+00 -3.501000E+00 -5.213000E+01 -5.552351E+02 -tally 3: -0.000000E+00 -0.000000E+00 -1.739000E+01 -6.083290E+01 -4.160000E+00 -3.501000E+00 -5.213000E+01 -5.552351E+02 diff --git a/tests/test_score_total/test_score_total.py b/tests/test_score_total/test_score_total.py deleted file mode 100644 index c6f3f335fc..0000000000 --- a/tests/test_score_total/test_score_total.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreTotalTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(10, 21, 22, 23)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 4)] - [t.add_filter(filt) for t in tallies] - [t.add_score('total') for t in tallies] - tallies[0].estimator = 'tracklength' - tallies[1].estimator = 'analog' - tallies[2].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreTotalTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreTotalTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreTotalTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_score_total_yn/inputs_true.dat b/tests/test_score_total_yn/inputs_true.dat deleted file mode 100644 index 939252597c..0000000000 --- a/tests/test_score_total_yn/inputs_true.dat +++ /dev/null @@ -1 +0,0 @@ -3c05a49f78866eda267c9f8eab2669a3a1aeb4eabfade9697d551b13f482d9076190c63a52a8aade59c20d917cebdd3e9bedabda6bc5bfd549db43cc61d7466f \ No newline at end of file diff --git a/tests/test_score_total_yn/results_true.dat b/tests/test_score_total_yn/results_true.dat deleted file mode 100644 index b416b05ec3..0000000000 --- a/tests/test_score_total_yn/results_true.dat +++ /dev/null @@ -1,1214 +0,0 @@ -k-combined: -9.903196E-01 4.279617E-02 -tally 1: -0.000000E+00 -0.000000E+00 -1.767552E+01 -6.295417E+01 -3.863588E+00 -3.013300E+00 -5.356594E+01 -5.839391E+02 -tally 2: -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -9.780506E-01 -1.942072E-01 --4.170415E-02 -7.581469E-04 --2.419728E-03 -6.296241E-04 --8.163997E-03 -4.785197E-04 -3.971909E-03 -1.363304E-04 -1.585497E-02 -1.295251E-04 --7.029875E-02 -1.208194E-03 --1.524070E-02 -2.828843E-04 --2.141105E-02 -2.953327E-04 --2.147623E-02 -2.390414E-04 -5.592040E-04 -1.720605E-04 -3.022066E-03 -1.843720E-04 -1.489821E-02 -9.193290E-05 --1.354668E-02 -2.551940E-04 --5.692690E-04 -3.013453E-04 -2.324582E-02 -2.170615E-04 -1.883012E-02 -1.045949E-04 --3.997107E-03 -1.674058E-04 -1.616443E-02 -2.046286E-04 -1.625747E-02 -1.851351E-04 -1.120209E-02 -2.028649E-04 -4.240284E-03 -4.019011E-05 -1.535379E-02 -9.872559E-05 --8.973926E-03 -1.448680E-04 --3.933227E-03 -4.305328E-04 -1.767552E+01 -6.295417E+01 --1.458308E-01 -8.239551E-03 -1.976485E-01 -7.360520E-02 --2.647182E-01 -5.347815E-02 -1.828025E-01 -1.840743E-02 -1.865994E-01 -2.843407E-02 --6.438995E-02 -8.898045E-03 --1.416445E-01 -3.839856E-02 --3.298894E-01 -2.672141E-02 --1.462639E-01 -1.225250E-02 --6.410138E-02 -3.766615E-02 -4.701705E-02 -1.968428E-03 -2.953056E-02 -2.358647E-02 --1.717672E-01 -5.877351E-02 -1.927497E-02 -1.358953E-02 -1.708870E-01 -1.502033E-02 -4.453803E-02 -1.622532E-02 --2.076143E-02 -1.850686E-03 -1.111325E-01 -8.415150E-03 -1.249594E-01 -7.491280E-03 -1.381757E-02 -1.537264E-02 --7.286234E-03 -9.057874E-03 -3.162973E-01 -3.303388E-02 -1.012773E-01 -8.345375E-03 --5.238963E-02 -3.920421E-02 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -3.863588E+00 -3.013300E+00 -5.075749E-02 -1.018210E-03 -3.445344E-02 -5.778215E-03 --6.239642E-02 -4.107408E-03 --1.475495E-02 -7.971898E-04 -5.809323E-02 -3.039895E-03 --2.510339E-02 -3.529134E-04 --9.731680E-03 -1.221628E-03 --5.815144E-02 -1.403261E-03 --4.936694E-02 -6.481626E-04 -5.141985E-03 -1.343973E-03 -1.515105E-02 -3.044735E-04 -4.474521E-03 -1.155268E-03 --6.855877E-02 -4.048417E-03 --2.701967E-05 -1.279041E-03 -2.197636E-02 -2.843662E-04 --1.780381E-02 -8.441574E-04 -2.916634E-02 -2.530602E-03 -2.289834E-02 -2.201375E-03 -3.283424E-02 -7.615219E-04 -9.623726E-03 -7.614092E-04 -2.808239E-02 -1.500381E-03 -4.835419E-02 -6.933678E-04 --2.636221E-02 -2.230834E-04 --4.957463E-02 -1.939266E-03 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -5.356594E+01 -5.839391E+02 --1.198882E+00 -3.391100E-01 -3.952398E-01 -5.729760E-01 --1.045726E+00 -4.419194E-01 -2.683170E-01 -1.872580E-01 -5.059349E-01 -2.592209E-01 -4.561651E-01 -1.253696E-01 --4.273775E-01 -3.509266E-01 --6.300496E-01 -2.102051E-01 --3.094705E-01 -1.410278E-01 --6.840225E-01 -1.971765E-01 -4.123355E-02 -3.962538E-02 --1.554557E-01 -2.784362E-02 --4.698631E-01 -1.867413E-01 --7.016026E-02 -3.059344E-02 -2.922284E-01 -8.680517E-02 --1.252431E-01 -3.180591E-02 -1.825937E-01 -8.626653E-02 -1.637960E-01 -1.329538E-01 -6.662867E-01 -1.497985E-01 -4.662585E-01 -7.552145E-02 -1.198254E-03 -2.020899E-01 -5.281410E-01 -9.615758E-02 -6.396211E-02 -1.806992E-01 --1.898620E-01 -1.113751E-01 -tally 3: -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -9.300000E-01 -1.839000E-01 -4.056201E-03 -8.670884E-04 --2.262959E-02 -2.263780E-03 --4.568371E-02 -4.078305E-03 -6.023055E-02 -1.099458E-03 --2.468374E-02 -3.403931E-03 --8.676202E-02 -2.444658E-03 -2.075016E-02 -5.432442E-03 -1.101095E-02 -3.129947E-04 -8.689134E-03 -2.422445E-03 --1.097503E-02 -4.670673E-04 -4.979355E-02 -1.791811E-03 -1.769845E-02 -6.074665E-04 --1.473469E-02 -1.257671E-03 --1.133757E-02 -1.555143E-03 -1.730195E-02 -1.841949E-03 --1.191492E-02 -1.859105E-03 -9.038577E-03 -4.401577E-04 -1.770047E-02 -4.158291E-04 -1.492809E-02 -5.488168E-04 -7.970152E-02 -1.597910E-03 -3.741348E-02 -5.704935E-04 -2.078478E-02 -5.379832E-04 --1.355930E-02 -6.747758E-04 -3.416200E-02 -8.262470E-04 -1.739000E+01 -6.083290E+01 --2.434171E-01 -3.049063E-02 --1.278707E-01 -9.585267E-02 --2.597328E-01 -8.692607E-02 -2.496700E-01 -3.750933E-02 --1.309937E-01 -4.217907E-02 --1.863241E-01 -1.738581E-02 -1.292679E-01 -1.799004E-02 --3.543191E-01 -3.682107E-02 -1.904413E-01 -1.455250E-02 --7.093238E-02 -1.473997E-02 -1.920412E-01 -1.308864E-02 -1.566093E-01 -1.913492E-02 --2.499642E-01 -3.036874E-02 --2.323022E-01 -3.794368E-02 -6.361729E-02 -3.266166E-02 -4.688479E-02 -2.806712E-02 -9.796563E-02 -1.419748E-02 -1.000847E-02 -3.233262E-02 -7.570231E-02 -4.626536E-03 -1.489091E-01 -1.159345E-02 -2.236285E-01 -1.480084E-02 -2.461305E-01 -1.643844E-02 -1.773523E-02 -1.626036E-03 -6.570774E-02 -1.069893E-02 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -4.160000E+00 -3.501000E+00 --9.464171E-02 -8.682833E-03 -8.467800E-02 -1.402624E-02 -1.283471E-02 -2.630439E-02 -1.859869E-01 -1.189528E-02 -1.910311E-02 -2.907370E-03 --2.542253E-01 -2.143851E-02 --4.021473E-02 -5.812599E-03 --1.242140E-01 -1.017873E-02 --2.934198E-02 -2.409920E-03 -5.719767E-02 -2.211520E-03 -3.023903E-02 -2.870625E-03 -1.092479E-01 -6.089989E-03 -1.604743E-02 -1.110224E-02 -3.811062E-03 -5.234112E-03 -5.446762E-02 -5.323411E-03 --3.868978E-02 -4.949255E-03 -1.384260E-01 -4.903532E-03 --3.761889E-02 -2.524889E-03 --6.079772E-02 -2.328339E-03 -1.956623E-03 -4.096814E-03 -1.716402E-03 -2.022751E-03 --1.108600E-01 -3.227014E-03 --2.447622E-03 -4.075421E-03 -1.582493E-02 -4.847858E-03 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -5.213000E+01 -5.552351E+02 --6.019876E-01 -2.938936E-01 -2.126970E-01 -3.363271E-01 --6.928646E-01 -3.077152E-01 --2.976474E-01 -5.830705E-02 -7.804821E-01 -3.967156E-01 -5.737502E-01 -1.090147E-01 --2.867929E-01 -1.312720E-01 --4.735578E-01 -6.714577E-02 --6.340442E-02 -4.240623E-02 --1.594570E-01 -1.167021E-01 --5.403124E-02 -6.452745E-02 --2.670969E-01 -5.822561E-02 --3.033558E-01 -4.890487E-02 --3.515557E-01 -5.069681E-02 -2.257462E-01 -4.682933E-02 --1.449924E-02 -1.625521E-02 -2.809498E-01 -6.883451E-02 -1.904808E-01 -1.004755E-01 -2.570005E-01 -4.301248E-02 -9.493600E-02 -7.708499E-02 --2.804222E-01 -4.455703E-02 -3.199914E-01 -7.435651E-02 --2.818069E-04 -7.231318E-02 -3.689494E-01 -1.349712E-01 -tally 4: -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -9.453374E-01 -1.815824E-01 --4.552571E-02 -8.689847E-04 -4.192526E-03 -6.095248E-04 --4.085060E-03 -3.488081E-04 -3.074303E-02 -3.709785E-04 -1.949067E-02 -1.995057E-04 --7.372260E-02 -1.709765E-03 --5.140901E-03 -6.268082E-05 --2.589014E-02 -1.616678E-04 -1.683116E-02 -2.122512E-04 --1.074659E-02 -1.087471E-04 -3.762844E-03 -3.439135E-05 -1.365793E-02 -5.255161E-05 -5.869374E-05 -4.060049E-04 --7.715004E-03 -3.629588E-04 -8.240120E-03 -5.192031E-04 -1.662861E-02 -5.038262E-04 --2.845811E-03 -2.843348E-04 -1.826833E-03 -1.104947E-05 --5.596885E-04 -1.922661E-05 -1.398723E-02 -1.025178E-04 -1.733988E-02 -1.184228E-04 -1.250057E-02 -1.447801E-04 --5.450018E-03 -3.725923E-05 -2.390947E-02 -6.837656E-04 -1.739000E+01 -6.083290E+01 --2.434171E-01 -3.049063E-02 --1.278707E-01 -9.585267E-02 --2.597328E-01 -8.692607E-02 -2.496700E-01 -3.750933E-02 --1.309937E-01 -4.217907E-02 --1.863241E-01 -1.738581E-02 -1.292679E-01 -1.799004E-02 --3.543191E-01 -3.682107E-02 -1.904413E-01 -1.455250E-02 --7.093238E-02 -1.473997E-02 -1.920412E-01 -1.308864E-02 -1.566093E-01 -1.913492E-02 --2.499642E-01 -3.036874E-02 --2.323022E-01 -3.794368E-02 -6.361729E-02 -3.266166E-02 -4.688479E-02 -2.806712E-02 -9.796563E-02 -1.419748E-02 -1.000847E-02 -3.233262E-02 -7.570231E-02 -4.626536E-03 -1.489091E-01 -1.159345E-02 -2.236285E-01 -1.480084E-02 -2.461305E-01 -1.643844E-02 -1.773523E-02 -1.626036E-03 -6.570774E-02 -1.069893E-02 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -4.160000E+00 -3.501000E+00 --9.464171E-02 -8.682833E-03 -8.467800E-02 -1.402624E-02 -1.283471E-02 -2.630439E-02 -1.859869E-01 -1.189528E-02 -1.910311E-02 -2.907370E-03 --2.542253E-01 -2.143851E-02 --4.021473E-02 -5.812599E-03 --1.242140E-01 -1.017873E-02 --2.934198E-02 -2.409920E-03 -5.719767E-02 -2.211520E-03 -3.023903E-02 -2.870625E-03 -1.092479E-01 -6.089989E-03 -1.604743E-02 -1.110224E-02 -3.811062E-03 -5.234112E-03 -5.446762E-02 -5.323411E-03 --3.868978E-02 -4.949255E-03 -1.384260E-01 -4.903532E-03 --3.761889E-02 -2.524889E-03 --6.079772E-02 -2.328339E-03 -1.956623E-03 -4.096814E-03 -1.716402E-03 -2.022751E-03 --1.108600E-01 -3.227014E-03 --2.447622E-03 -4.075421E-03 -1.582493E-02 -4.847858E-03 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -0.000000E+00 -5.213000E+01 -5.552351E+02 --6.019876E-01 -2.938936E-01 -2.126970E-01 -3.363271E-01 --6.928646E-01 -3.077152E-01 --2.976474E-01 -5.830705E-02 -7.804821E-01 -3.967156E-01 -5.737502E-01 -1.090147E-01 --2.867929E-01 -1.312720E-01 --4.735578E-01 -6.714577E-02 --6.340442E-02 -4.240623E-02 --1.594570E-01 -1.167021E-01 --5.403124E-02 -6.452745E-02 --2.670969E-01 -5.822561E-02 --3.033558E-01 -4.890487E-02 --3.515557E-01 -5.069681E-02 -2.257462E-01 -4.682933E-02 --1.449924E-02 -1.625521E-02 -2.809498E-01 -6.883451E-02 -1.904808E-01 -1.004755E-01 -2.570005E-01 -4.301248E-02 -9.493600E-02 -7.708499E-02 --2.804222E-01 -4.455703E-02 -3.199914E-01 -7.435651E-02 --2.818069E-04 -7.231318E-02 -3.689494E-01 -1.349712E-01 diff --git a/tests/test_score_total_yn/test_score_total_yn.py b/tests/test_score_total_yn/test_score_total_yn.py deleted file mode 100644 index 80f947f920..0000000000 --- a/tests/test_score_total_yn/test_score_total_yn.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env python - -import os -import sys -sys.path.insert(0, os.pardir) -from testing_harness import TestHarness, PyAPITestHarness -import openmc - - -class ScoreTotalYNTestHarness(PyAPITestHarness): - def _build_inputs(self): - filt = openmc.Filter(type='cell', bins=(10, 21, 22, 23)) - tallies = [openmc.Tally(tally_id=i) for i in range(1, 5)] - [t.add_filter(filt) for t in tallies] - tallies[0].add_score('total') - [t.add_score('total-y4') for t in tallies[1:]] - [t.add_nuclide('U-235') for t in tallies[1:]] - [t.add_nuclide('total') for t in tallies[1:]] - tallies[1].estimator = 'tracklength' - tallies[2].estimator = 'analog' - tallies[3].estimator = 'collision' - self._input_set.tallies = openmc.TalliesFile() - [self._input_set.tallies.add_tally(t) for t in tallies] - - super(ScoreTotalYNTestHarness, self)._build_inputs() - - def _cleanup(self): - super(ScoreTotalYNTestHarness, self)._cleanup() - f = os.path.join(os.getcwd(), 'tallies.xml') - if os.path.exists(f): os.remove(f) - - -if __name__ == '__main__': - harness = ScoreTotalYNTestHarness('statepoint.10.*', True) - harness.main() diff --git a/tests/test_survival_biasing/results_true.dat b/tests/test_survival_biasing/results_true.dat index a97654cfa2..3e327841aa 100644 --- a/tests/test_survival_biasing/results_true.dat +++ b/tests/test_survival_biasing/results_true.dat @@ -1,2 +1,20 @@ k-combined: 9.997733E-01 2.995572E-02 +tally 1: +4.354055E+01 +3.793645E+02 +1.808636E+01 +6.546005E+01 +2.234465E+00 +9.989832E-01 +1.937431E+00 +7.510380E-01 +5.021671E+00 +5.045425E+00 +3.506791E-02 +2.460654E-04 +3.752351E+02 +2.817188E+04 +tally 2: +1.808636E+01 +6.546005E+01 diff --git a/tests/test_survival_biasing/tallies.xml b/tests/test_survival_biasing/tallies.xml new file mode 100644 index 0000000000..8d939dfffc --- /dev/null +++ b/tests/test_survival_biasing/tallies.xml @@ -0,0 +1,16 @@ + + + + + + flux total absorption fission nu-fission delayed-nu-fission kappa-fission + + analog + + + + total + collision + + + diff --git a/tests/test_survival_biasing/test_survival_biasing.py b/tests/test_survival_biasing/test_survival_biasing.py index 2a595f3e66..ed6addec45 100644 --- a/tests/test_survival_biasing/test_survival_biasing.py +++ b/tests/test_survival_biasing/test_survival_biasing.py @@ -7,5 +7,5 @@ from testing_harness import TestHarness if __name__ == '__main__': - harness = TestHarness('statepoint.10.*') + harness = TestHarness('statepoint.10.*', True) harness.main() diff --git a/tests/test_tallies/inputs_true.dat b/tests/test_tallies/inputs_true.dat new file mode 100644 index 0000000000..657a9e77da --- /dev/null +++ b/tests/test_tallies/inputs_true.dat @@ -0,0 +1 @@ +5e168146d91b7b5fadecb80a32df9edc906718fb2d70b68b4c18dbed0641739251a1c16177c9f4d47516dfd528ec930879534292ff0eb82af89eca2c3fa4a3e0 \ No newline at end of file diff --git a/tests/test_tallies/results_true.dat b/tests/test_tallies/results_true.dat new file mode 100644 index 0000000000..4f8b3956b7 --- /dev/null +++ b/tests/test_tallies/results_true.dat @@ -0,0 +1 @@ +5be9b80ecc189d4ee3a6a228d97b0c76b6b47e5204a86ecf03b8faa65c499f6861ffd85c153084bafd0835d10dfacc14f28802901ce966c8a803d60d0c2f42e5 \ No newline at end of file diff --git a/tests/test_tallies/test_tallies.py b/tests/test_tallies/test_tallies.py new file mode 100644 index 0000000000..9fca93bcab --- /dev/null +++ b/tests/test_tallies/test_tallies.py @@ -0,0 +1,239 @@ +#!/usr/bin/env python + +import os +import sys +sys.path.insert(0, os.pardir) +from testing_harness import PyAPITestHarness +from openmc import Filter, Mesh, Tally, TalliesFile +from openmc.source import Source +from openmc.stats import Box + +class TalliesTestHarness(PyAPITestHarness): + def _build_inputs(self): + # Build default materials/geometry + self._input_set.build_default_materials_and_geometry() + + # Set settings explicitly + self._input_set.settings.batches = 5 + self._input_set.settings.inactive = 0 + self._input_set.settings.particles = 400 + self._input_set.settings.source = Source(space=Box( + [-160, -160, -183], [160, 160, 183])) + + azimuthal_bins = (-3.1416, -1.8850, -0.6283, 0.6283, 1.8850, 3.1416) + azimuthal_filter1 = Filter(type='azimuthal', bins=azimuthal_bins) + azimuthal_tally1 = Tally() + azimuthal_tally1.add_filter(azimuthal_filter1) + azimuthal_tally1.add_score('flux') + azimuthal_tally1.estimator = 'tracklength' + + azimuthal_tally2 = Tally() + azimuthal_tally2.add_filter(azimuthal_filter1) + azimuthal_tally2.add_score('flux') + azimuthal_tally2.estimator = 'analog' + + azimuthal_filter2 = Filter(type='azimuthal', bins=(5,)) + azimuthal_tally3 = Tally() + azimuthal_tally3.add_filter(azimuthal_filter2) + azimuthal_tally3.add_score('flux') + azimuthal_tally3.estimator = 'tracklength' + + mesh_2x2 = Mesh(mesh_id=1) + mesh_2x2.lower_left = [-182.07, -182.07] + mesh_2x2.upper_right = [182.07, 182.07] + mesh_2x2.dimension = [2, 2] + mesh_filter = Filter(type='mesh', bins=(1,)) + azimuthal_tally4 = Tally() + azimuthal_tally4.add_filter(azimuthal_filter2) + azimuthal_tally4.add_filter(mesh_filter) + azimuthal_tally4.add_score('flux') + azimuthal_tally4.estimator = 'tracklength' + + cellborn_tally = Tally() + cellborn_tally.add_filter(Filter(type='cellborn', bins=(10, 21, 22, 23))) + cellborn_tally.add_score('total') + + dg_tally = Tally() + dg_tally.add_filter(Filter(type='delayedgroup', bins=(1, 2, 3, 4, 5, 6))) + dg_tally.add_score('delayed-nu-fission') + + four_groups = (0.0, 0.253e-6, 1.0e-3, 1.0, 20.0) + energy_filter = Filter(type='energy', bins=four_groups) + energy_tally = Tally() + energy_tally.add_filter(energy_filter) + energy_tally.add_score('total') + + energyout_filter = Filter(type='energyout', bins=four_groups) + energyout_tally = Tally() + energyout_tally.add_filter(energyout_filter) + energyout_tally.add_score('scatter') + + transfer_tally = Tally() + transfer_tally.add_filter(energy_filter) + transfer_tally.add_filter(energyout_filter) + transfer_tally.add_score('scatter') + transfer_tally.add_score('nu-fission') + + material_tally = Tally() + material_tally.add_filter(Filter(type='material', bins=(1, 2, 3, 4))) + material_tally.add_score('total') + + mu_tally1 = Tally() + mu_tally1.add_filter(Filter(type='mu', bins=(-1.0, -0.5, 0.0, 0.5, 1.0))) + mu_tally1.add_score('scatter') + mu_tally1.add_score('nu-scatter') + + mu_filter = Filter(type='mu', bins=(5,)) + mu_tally2 = Tally() + mu_tally2.add_filter(mu_filter) + mu_tally2.add_score('scatter') + mu_tally2.add_score('nu-scatter') + + mu_tally3 = Tally() + mu_tally3.add_filter(mu_filter) + mu_tally3.add_filter(mesh_filter) + mu_tally3.add_score('scatter') + mu_tally3.add_score('nu-scatter') + + polar_bins = (0.0, 0.6283, 1.2566, 1.8850, 2.5132, 3.1416) + polar_filter = Filter(type='polar', bins=polar_bins) + polar_tally1 = Tally() + polar_tally1.add_filter(polar_filter) + polar_tally1.add_score('flux') + polar_tally1.estimator = 'tracklength' + + polar_tally2 = Tally() + polar_tally2.add_filter(polar_filter) + polar_tally2.add_score('flux') + polar_tally2.estimator = 'analog' + + polar_filter2 = Filter(type='polar', bins=(5,)) + polar_tally3 = Tally() + polar_tally3.add_filter(polar_filter2) + polar_tally3.add_score('flux') + polar_tally3.estimator = 'tracklength' + + polar_tally4 = Tally() + polar_tally4.add_filter(polar_filter2) + polar_tally4.add_filter(mesh_filter) + polar_tally4.add_score('flux') + polar_tally4.estimator = 'tracklength' + + universe_tally = Tally() + universe_tally.add_filter(Filter(type='universe', bins=(1, 2, 3, 4))) + universe_tally.add_score('total') + + cell_filter = Filter(type='cell', bins=(10, 21, 22, 23)) + score_tallies = [Tally(), Tally(), Tally()] + for t in score_tallies: + t.add_filter(cell_filter) + t.add_score('absorption') + t.add_score('delayed-nu-fission') + t.add_score('events') + t.add_score('fission') + t.add_score('inverse-velocity') + t.add_score('kappa-fission') + t.add_score('(n,2n)') + t.add_score('(n,n1)') + t.add_score('(n,gamma)') + t.add_score('nu-fission') + t.add_score('scatter') + t.add_score('elastic') + t.add_score('total') + score_tallies[0].estimator = 'tracklength' + score_tallies[1].estimator = 'analog' + score_tallies[2].estimator = 'collision' + + cell_filter2 = Filter(type='cell', bins=(21, 22, 23, 27, 28, 29)) + flux_tallies = [Tally() for i in range(4)] + [t.add_filter(cell_filter2) for t in flux_tallies] + flux_tallies[0].add_score('flux') + [t.add_score('flux-y5') for t in flux_tallies[1:]] + flux_tallies[1].estimator = 'tracklength' + flux_tallies[2].estimator = 'analog' + flux_tallies[3].estimator = 'collision' + + scatter_tally1 = Tally() + scatter_tally1.add_filter(cell_filter) + scatter_tally1.add_score('scatter') + scatter_tally1.add_score('scatter-1') + scatter_tally1.add_score('scatter-2') + scatter_tally1.add_score('scatter-3') + scatter_tally1.add_score('scatter-4') + scatter_tally1.add_score('nu-scatter') + scatter_tally1.add_score('nu-scatter-1') + scatter_tally1.add_score('nu-scatter-2') + scatter_tally1.add_score('nu-scatter-3') + scatter_tally1.add_score('nu-scatter-4') + + scatter_tally2 = Tally() + scatter_tally2.add_filter(cell_filter) + scatter_tally2.add_score('scatter-p4') + scatter_tally2.add_score('scatter-y4') + scatter_tally2.add_score('nu-scatter-p4') + scatter_tally2.add_score('nu-scatter-y3') + + total_tallies = [Tally() for i in range(4)] + [t.add_filter(cell_filter) for t in total_tallies] + total_tallies[0].add_score('total') + [t.add_score('total-y4') for t in total_tallies[1:]] + [t.add_nuclide('U-235') for t in total_tallies[1:]] + [t.add_nuclide('total') for t in total_tallies[1:]] + total_tallies[1].estimator = 'tracklength' + total_tallies[2].estimator = 'analog' + total_tallies[3].estimator = 'collision' + + questionable_tally = Tally() + questionable_tally.add_score('transport') + questionable_tally.add_score('n1n') + + all_nuclide_tallies = [Tally(), Tally()] + for t in all_nuclide_tallies: + t.add_filter(cell_filter) + t.add_nuclide('all') + t.add_score('total') + all_nuclide_tallies[0].estimator = 'tracklength' + all_nuclide_tallies[0].estimator = 'collision' + + self._input_set.tallies = TalliesFile() + self._input_set.tallies.add_tally(azimuthal_tally1) + self._input_set.tallies.add_tally(azimuthal_tally2) + self._input_set.tallies.add_tally(azimuthal_tally3) + self._input_set.tallies.add_tally(azimuthal_tally4) + self._input_set.tallies.add_tally(cellborn_tally) + self._input_set.tallies.add_tally(dg_tally) + self._input_set.tallies.add_tally(energy_tally) + self._input_set.tallies.add_tally(energyout_tally) + self._input_set.tallies.add_tally(transfer_tally) + self._input_set.tallies.add_tally(material_tally) + self._input_set.tallies.add_tally(mu_tally1) + self._input_set.tallies.add_tally(mu_tally2) + self._input_set.tallies.add_tally(mu_tally3) + self._input_set.tallies.add_tally(polar_tally1) + self._input_set.tallies.add_tally(polar_tally2) + self._input_set.tallies.add_tally(polar_tally3) + self._input_set.tallies.add_tally(polar_tally4) + self._input_set.tallies.add_tally(universe_tally) + [self._input_set.tallies.add_tally(t) for t in score_tallies] + [self._input_set.tallies.add_tally(t) for t in flux_tallies] + self._input_set.tallies.add_tally(scatter_tally1) + self._input_set.tallies.add_tally(scatter_tally2) + [self._input_set.tallies.add_tally(t) for t in total_tallies] + self._input_set.tallies.add_tally(questionable_tally) + [self._input_set.tallies.add_tally(t) for t in all_nuclide_tallies] + self._input_set.tallies.add_mesh(mesh_2x2) + + self._input_set.export() + + def _get_results(self): + return super(TalliesTestHarness, self)._get_results(hash_output=True) + + def _cleanup(self): + super(TalliesTestHarness, self)._cleanup() + f = os.path.join(os.getcwd(), 'tallies.xml') + if os.path.exists(f): os.remove(f) + + +if __name__ == '__main__': + harness = TalliesTestHarness('statepoint.5.*', True) + harness.main() diff --git a/tests/testing_harness.py b/tests/testing_harness.py index f1d72dd81c..66cadfe633 100644 --- a/tests/testing_harness.py +++ b/tests/testing_harness.py @@ -152,49 +152,6 @@ class HashedTestHarness(TestHarness): return super(HashedTestHarness, self)._get_results(True) -class PlotTestHarness(TestHarness): - """Specialized TestHarness for running OpenMC plotting tests.""" - def __init__(self, plot_names): - super(PlotTestHarness, self).__init__(None, False) - self._plot_names = plot_names - - def _run_openmc(self): - executor = Executor() - returncode = executor.plot_geometry(openmc_exec=self._opts.exe) - assert returncode == 0, 'OpenMC did not exit successfully.' - - def _test_output_created(self): - """Make sure *.ppm has been created.""" - for fname in self._plot_names: - assert os.path.exists(os.path.join(os.getcwd(), fname)), \ - 'Plot output file does not exist.' - - def _cleanup(self): - super(PlotTestHarness, self)._cleanup() - output = glob.glob(os.path.join(os.getcwd(), '*.ppm')) - for f in output: - if os.path.exists(f): - os.remove(f) - - def _get_results(self): - """Return a string hash of the plot files.""" - # Find the plot files. - plot_files = glob.glob(os.path.join(os.getcwd(), '*.ppm')) - - # Read the plot files. - outstr = bytes() - for fname in sorted(plot_files): - with open(fname, 'rb') as fh: - outstr += fh.read() - - # Hash the information and return. - sha512 = hashlib.sha512() - sha512.update(outstr) - outstr = sha512.hexdigest() - - return outstr - - class CMFDTestHarness(TestHarness): """Specialized TestHarness for running OpenMC CMFD tests.""" def _get_results(self): @@ -230,6 +187,23 @@ class CMFDTestHarness(TestHarness): class ParticleRestartTestHarness(TestHarness): """Specialized TestHarness for running OpenMC particle restart tests.""" + def _run_openmc(self): + # Set arguments + args = {'openmc_exec': self._opts.exe} + if self._opts.mpi_exec is not None: + args.update({'mpi_procs': self._opts.mpi_np, + 'mpi_exec': self._opts.mpi_exec}) + + # Initial run + executor = Executor() + returncode = executor.run_simulation(**args) + assert returncode == 0, 'OpenMC did not exit successfully.' + + # Run particle restart + args.update({'restart_file': self._sp_name}) + returncode = executor.run_simulation(**args) + assert returncode == 0, 'OpenMC did not exit successfully.' + def _test_output_created(self): """Make sure the restart file has been created.""" particle = glob.glob(os.path.join(os.getcwd(), self._sp_name))