Skip to content

Commit

Permalink
Fix init bug for: line_interaction_type=scatter
Browse files Browse the repository at this point in the history
  • Loading branch information
roee yaron authored and roee yaron committed Feb 23, 2025
1 parent cec8b53 commit f9c2f1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -289,4 +289,6 @@ Israel Roldan <[email protected]> airv_zxf <[email protected]

Michael Zingale <[email protected]>

Akash Kaushik <[email protected]>
Akash Kaushik <[email protected]>

Roee Yaron <[email protected]>
4 changes: 4 additions & 0 deletions tardis/simulation/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ def iterate(self, no_of_packets, no_of_virtual_packets=0):
logger.info(
f"\n\tStarting iteration {(self.iterations_executed + 1):d} of {self.iterations:d}"
)

if self.macro_atom is None:
self.plasma.beta_sobolev = None
macro_atom_state = None

opacity_state = self.opacity.legacy_solve(self.plasma)
if self.macro_atom is not None:
Expand Down

0 comments on commit f9c2f1c

Please sign in to comment.