mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Fix bug re: first nuclide with zero density
This commit is contained in:
parent
edf50f1895
commit
6eb35341a5
1 changed files with 2 additions and 2 deletions
|
|
@ -356,8 +356,8 @@ void Material::finalize()
|
|||
|
||||
void Material::normalize_density()
|
||||
{
|
||||
bool percent_in_atom = (atom_density_(0) > 0.0);
|
||||
bool density_in_atom = (density_ > 0.0);
|
||||
bool percent_in_atom = (atom_density_(0) >= 0.0);
|
||||
bool density_in_atom = (density_ >= 0.0);
|
||||
|
||||
for (int i = 0; i < nuclide_.size(); ++i) {
|
||||
// determine atomic weight ratio
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue