diff --git a/CMakeLists.txt b/CMakeLists.txt index 7326e7f3525..dcd0a0bef55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,8 +3,8 @@ project(openmc C CXX) # Set version numbers set(OPENMC_VERSION_MAJOR 0) -set(OPENMC_VERSION_MINOR 13) -set(OPENMC_VERSION_RELEASE 0) +set(OPENMC_VERSION_MINOR 12) +set(OPENMC_VERSION_RELEASE 2) set(OPENMC_VERSION ${OPENMC_VERSION_MAJOR}.${OPENMC_VERSION_MINOR}.${OPENMC_VERSION_RELEASE}) configure_file(include/openmc/version.h.in "${CMAKE_BINARY_DIR}/include/openmc/version.h" @ONLY) diff --git a/docs/source/conf.py b/docs/source/conf.py index ed790a2e27f..55cfef35218 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -70,9 +70,9 @@ # built documents. # # The short X.Y version. -version = "0.13" +version = "0.12" # The full version, including alpha/beta/rc tags. -release = "0.13.0-dev" +release = "0.12.2" # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/docs/source/releasenotes/0.12.2.rst b/docs/source/releasenotes/0.12.2.rst new file mode 100644 index 00000000000..9dce6e89129 --- /dev/null +++ b/docs/source/releasenotes/0.12.2.rst @@ -0,0 +1,57 @@ +==================== +What's New in 0.12.2 +==================== + +.. currentmodule:: openmc + +------- +Summary +------- + +This release of OpenMC is primarily a hotfix release with numerous important bug +fixes. Several tally-related enhancements have also been added. + +------------ +New Features +------------ + +Three tally-related enhancements were added to the code in this release: + +- A new :class:`~openmc.CollisionFilter` class that allows tallies to be filtered + by the number of collisions a particle has undergone. +- A `translation` attribute has been added to :class:`~openmc.MeshFilter` that + allows a mesh to be translated from its original position before location + checks are performed. +- The :class:`~openmc.UnstructuredMesh` class now supports libMesh unstructured + meshes to enable better ingration with MOOSE-based applications. + +--------- +Bug Fixes +--------- + +- `Reset particle coordinates during find cell operation `_ +- `Cover quadric edge case `_ +- `Prevent divide-by-zero in bins_crossed methods for meshes `_ +- `Fix for translational periodic boundary conditions `_ +- `Fix angle sampling in CorrelatedAngleEnergy `_ +- `Fix typo in fmt string for a lattice error `_ +- `Nu-fission tally and stochastic volume bug fixes `_ +- `Make sure failed neighbor list triggers exhaustic search `_ +- `Change element to element.title to catch lowercase entries `_ +- `Disallow non-current scores with a surface filter `_ +- `Depletion operator obeys Materials.cross_sections `_ +- `Fix for surface_bins_crossed override `_ + +------------ +Contributors +------------ + +This release contains new contributions from the following people: + +- `Hunter Belanger `_ +- `Isaac Griswold-Steiner `_ +- `Andrew Johnson `_ +- `Gavin Ridley `_ +- `Paul Romano `_ +- `Patrick Shriwise `_ +- `Jonathan Shimwell `_ diff --git a/docs/source/releasenotes/index.rst b/docs/source/releasenotes/index.rst index 61bac06f17d..f3c02f0396c 100644 --- a/docs/source/releasenotes/index.rst +++ b/docs/source/releasenotes/index.rst @@ -7,6 +7,7 @@ Release Notes .. toctree:: :maxdepth: 1 + 0.12.2 0.12.1 0.12.0 0.11.0 diff --git a/include/openmc/version.h.in b/include/openmc/version.h.in index 995f20c3b18..fe282be7c01 100644 --- a/include/openmc/version.h.in +++ b/include/openmc/version.h.in @@ -6,7 +6,7 @@ namespace openmc { constexpr int VERSION_MAJOR {@OPENMC_VERSION_MAJOR@}; constexpr int VERSION_MINOR {@OPENMC_VERSION_MINOR@}; constexpr int VERSION_RELEASE {@OPENMC_VERSION_RELEASE@}; -constexpr bool VERSION_DEV {true}; +constexpr bool VERSION_DEV {false}; constexpr std::array VERSION {VERSION_MAJOR, VERSION_MINOR, VERSION_RELEASE}; } diff --git a/openmc/__init__.py b/openmc/__init__.py index 50246cdd8a2..bd27ab308ed 100644 --- a/openmc/__init__.py +++ b/openmc/__init__.py @@ -34,4 +34,4 @@ # Import a few convencience functions that used to be here from openmc.model import rectangular_prism, hexagonal_prism -__version__ = '0.13.0-dev' +__version__ = '0.12.2' diff --git a/openmc/filter.py b/openmc/filter.py index 8da3cf78f65..e0cedd6bf24 100644 --- a/openmc/filter.py +++ b/openmc/filter.py @@ -993,6 +993,8 @@ def get_pandas_dataframe(self, data_size, stride, **kwargs): class CollisionFilter(Filter): """Bins tally events based on the number of collisions. + .. versionadded:: 0.12.2 + Parameters ---------- bins : Iterable of int diff --git a/openmc/mesh.py b/openmc/mesh.py index 16e25cddc47..7ef18b1ceb9 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -605,6 +605,9 @@ class UnstructuredMesh(MeshBase): .. versionadded:: 0.12 + .. versionchanged:: 0.12.2 + Support for libMesh unstructured meshes was added. + Parameters ---------- filename : str