mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge pull request #2148 from openmc-dev/yardasol-patch-1
Minor styling fix in `Material.py`
This commit is contained in:
commit
58f3b1d849
1 changed files with 2 additions and 2 deletions
|
|
@ -861,7 +861,7 @@ class Material(IDManagerMixin):
|
|||
elif self.density_units == 'atom/b-cm':
|
||||
density = self.density
|
||||
elif self.density_units == 'atom/cm3' or self.density_units == 'atom/cc':
|
||||
density = 1.E-24 * self.density
|
||||
density = 1.e-24 * self.density
|
||||
|
||||
# For ease of processing split out nuc, nuc_density,
|
||||
# and nuc_density_type into separate arrays
|
||||
|
|
@ -897,7 +897,7 @@ class Material(IDManagerMixin):
|
|||
|
||||
# Convert the mass density to an atom density
|
||||
if not density_in_atom:
|
||||
density = -density / self.average_molar_mass * 1.E-24 \
|
||||
density = -density / self.average_molar_mass * 1.e-24 \
|
||||
* openmc.data.AVOGADRO
|
||||
|
||||
nuc_densities = density * nuc_densities
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue