OpenMC/tests
2017-11-11 14:28:38 -06:00
..
test_asymmetric_lattice Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_cmfd_feed Allow entropy mesh and UFS mesh to be specified using <mesh> elements 2017-08-24 14:57:55 -05:00
test_cmfd_nofeed Allow entropy mesh and UFS mesh to be specified using <mesh> elements 2017-08-24 14:57:55 -05:00
test_complex_cell Merge branch 'develop' into separate_filters 2017-04-30 17:41:38 -05:00
test_confidence_intervals Merge branch 'develop' into separate_filters 2017-04-30 17:41:38 -05:00
test_create_fission_neutrons Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_density Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_diff_tally Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_distribmat Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_eigenvalue_genperbatch Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_eigenvalue_no_inactive Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_energy_cutoff Fix writing of energy cutoff, few other issues 2017-07-20 08:11:14 -05:00
test_energy_grid Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_energy_laws Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_enrichment Fix comment in enrichment test 2017-10-04 21:06:28 -05:00
test_entropy Allow entropy mesh and UFS mesh to be specified using <mesh> elements 2017-08-24 14:57:55 -05:00
test_filter_distribcell Merge branch 'develop' into separate_filters 2017-04-30 17:41:38 -05:00
test_filter_energyfun Improve handling of units on division for tally arithmetic. Closes #549. 2017-10-04 09:53:47 -05:00
test_filter_mesh Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_fixed_source Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_infinite_cell Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_iso_in_lab Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_lattice Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_lattice_hex Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_lattice_mixed Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_lattice_multiple Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_mg_basic Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_mg_convert Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_mg_legendre Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_mg_max_order Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_mg_nuclide Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_mg_survival_biasing Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_mg_tallies Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_mgxs_library_ce_to_mg Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_mgxs_library_condense Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_mgxs_library_distribcell Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_mgxs_library_hdf5 Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_mgxs_library_mesh Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_mgxs_library_no_nuclides Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_mgxs_library_nuclides Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_multipole Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_output Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_particle_restart_eigval Better use of verbosity 2017-03-02 09:17:00 -06:00
test_particle_restart_fixed Update particle restart format and documentation 2017-02-21 21:26:25 -06:00
test_periodic Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_plot Allow entropy mesh and UFS mesh to be specified using <mesh> elements 2017-08-24 14:57:55 -05:00
test_ptables_off Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_quadric_surfaces Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_reflective_plane Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_resonance_scattering Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_rotation Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_salphabeta Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_score_current Merge branch 'develop' into separate_filters 2017-04-30 17:41:38 -05:00
test_seed Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_source Sort XML elements by integer ID, use 2 spaces per indent level 2017-06-07 20:12:51 -05:00
test_source_file Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_sourcepoint_batch Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_sourcepoint_latest Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_sourcepoint_restart Merge branch 'develop' into separate_filters 2017-04-30 17:41:38 -05:00
test_statepoint_batch Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_statepoint_restart Merge branch 'develop' into separate_filters 2017-04-30 17:41:38 -05:00
test_statepoint_sourcesep Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_surface_tally pleasing python2: .set_element was not giving the same round offs in python2 and python3 2017-08-06 15:31:02 -04:00
test_survival_biasing Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_tallies Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_tally_aggregation Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_tally_arithmetic Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_tally_assumesep Merge branch 'develop' into separate_filters 2017-04-30 17:41:38 -05:00
test_tally_nuclides Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_tally_slice_merge Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_trace Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_track_output Fix openmc-track-to-vtk and track test 2017-04-07 21:04:14 -05:00
test_translation Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_trigger_batch_interval Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_trigger_no_batch_interval Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_trigger_no_status Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_trigger_tallies Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_triso Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
test_uniform_fs Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_universe Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_void Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
test_volume_calc Only put S(a,b) fraction in XML if not unity 2017-07-12 11:53:50 -04:00
unit_tests Move test_element_wo to unit tests 2017-10-13 15:24:47 -05:00
1d_mgxs.h5 updated test library version info 2017-03-18 10:20:19 -04:00
check_source.py Fix some PEP-8 for #423 2015-07-26 12:23:21 -06:00
convert_precision.py PEP8 fixes on convert_precision.py 2013-09-02 17:11:30 -04:00
readme.rst updated documentation 2014-04-11 09:10:25 -04:00
run_tests.py PEP8 fixes in run_tests.py 2017-11-07 08:28:29 -06:00
testing_harness.py Get rid of tallies_present argument for test harness classes 2017-04-07 21:04:14 -05:00
update_results.py Added update capability to TestHarness #402 2015-06-29 19:22:14 -06:00
valgrind.supp added valgrind suppressions for HDF5 create/open 2014-05-08 12:31:21 -04:00

=================
OpenMC Test Suite
=================

The purpose of this test suite is to ensure that OpenMC compiles using various
combinations of compiler flags and options and that all user input options can
be used successfully without breaking the code. The test suite is based on
regression or integrated testing where different types of input files are
configured and the full OpenMC code is executed. Results from simulations
are compared with expected results. The test suite is comprised of many
build configurations (e.g. debug, mpi, hdf5) and the actual tests which
reside in sub-directories in the tests directory.

The test suite is designed to integrate with cmake using ctest_. To run the
full test suite run:

.. code-block:: sh

    python run_tests.py

The test suite is configured to run with cross sections from NNDC_. To
download these cross sections please do the following:

.. code-block:: sh

    cd ../data
    python get_nndc.py
    export CROSS_SECTIONS=<path_to_data_folder>/nndc/cross_sections.xml

The environmental variable **CROSS_SECTIONS** can be used to quickly switch
between the cross sections  set for the test suite and cross section set for 
your simulations.

A subset of build configurations and/or tests can be run. To see how to use
the script run:

.. code-block:: sh

    python run_tests.py --help

As an example, say we want to run all tests with debug flags only on tests
that have cone and plot in their name. Also, we would like to run this on
4 processors. We can run:

.. code-block:: sh

    python run_tests.py -j 4 -C debug -R "cone|plot"

Note that standard regular expression syntax is used for selecting build
configurations and tests. To print out a list of build configurations, we
can run:

.. code-block:: sh

    python run_tests.py -p

.. _ctest: http://www.cmake.org/cmake/help/v2.8.12/ctest.html
.. _NNDC:  http://http://www.nndc.bnl.gov/endf/b7.1/acefiles.html