Skip to content

Commit f730fb9

Browse files
roee2000roee yaron
and
roee yaron
authored
Fix init bug for: line_interaction_type=scatter (#2984)
Co-authored-by: roee yaron <[email protected]>
1 parent 42edc69 commit f730fb9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: .mailmap

+2
Original file line numberDiff line numberDiff line change
@@ -294,4 +294,6 @@ Michael Zingale <[email protected]>
294294

295295
Akash Kaushik <[email protected]>
296296

297+
Roee Yaron <[email protected]>
298+
297299
Rudraksh Nalbalwar <[email protected]>

Diff for: tardis/simulation/base.py

+4
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@ def iterate(self, no_of_packets, no_of_virtual_packets=0):
444444
logger.info(
445445
f"\n\tStarting iteration {(self.iterations_executed + 1):d} of {self.iterations:d}"
446446
)
447+
448+
if self.macro_atom is None:
449+
self.plasma.beta_sobolev = None
450+
macro_atom_state = None
447451

448452
opacity_state = self.opacity.legacy_solve(self.plasma)
449453
if self.macro_atom is not None:

0 commit comments

Comments
 (0)