Support setting density in g/cm3 through C API

This commit is contained in:
Paul Romano 2018-11-02 11:25:08 -05:00
parent dd9463c288
commit 16124d2569
5 changed files with 61 additions and 30 deletions

View file

@ -333,12 +333,14 @@ Functions
:return: Return status (negative if an error occurred)
:rtype: int
.. c:function:: int openmc_material_set_density(int32_t index, double density)
.. c:function:: int openmc_material_set_density(int32_t index, double density, const char* units)
Set the density of a material.
:param int32_t index: Index in the materials array
:param double density: Density of the material in atom/b-cm
:param double density: Density of the material
:param units: Units for density
:type units: const char*
:return: Return status (negative if an error occurs)
:rtype: int