Random Ray Transport (#2823)

Co-authored-by: Gavin Ridley <gavin.keith.ridley@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
John Tramm 2024-04-18 17:10:16 -05:00 committed by GitHub
parent d53155d234
commit 5111aa2621
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 4512 additions and 69 deletions

View file

@ -174,17 +174,9 @@ bool find_cell_inner(
// Set the material and temperature.
p.material_last() = p.material();
if (c.material_.size() > 1) {
p.material() = c.material_[p.cell_instance()];
} else {
p.material() = c.material_[0];
}
p.material() = c.material(p.cell_instance());
p.sqrtkT_last() = p.sqrtkT();
if (c.sqrtkT_.size() > 1) {
p.sqrtkT() = c.sqrtkT_[p.cell_instance()];
} else {
p.sqrtkT() = c.sqrtkT_[0];
}
p.sqrtkT() = c.sqrtkT(p.cell_instance());
return true;