mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Fix calculation of Material.density_gpcc_
This commit is contained in:
parent
19a83ca1d4
commit
170f4a0a62
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ void Material::normalize_density()
|
|||
atom_density_ *= density_;
|
||||
|
||||
// Calculate density in g/cm^3.
|
||||
double density_gpcc_ = 0.0;
|
||||
density_gpcc_ = 0.0;
|
||||
for (int i = 0; i < nuclide_.size(); ++i) {
|
||||
int i_nuc = nuclide_[i];
|
||||
double awr = settings::run_CE ? data::nuclides[i_nuc]->awr_ : 1.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue