Skip to content

Commit

Permalink
Fixes standard workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfullard committed Nov 12, 2024
1 parent a0a0725 commit 400332b
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions tardis/workflows/standard_tardis_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,18 +219,10 @@ def run(self):
self.simulation_state.t_inner,
)

self.opacity_state = self.opacity_solver.solve(self.plasma_solver)

if self.macro_atom_solver is not None:
self.macro_atom_state = self.macro_atom_solver.solve(
self.plasma_solver,
self.plasma_solver.atomic_data,
self.opacity_state.tau_sobolev,
self.plasma_solver.stimulated_emission_factor,
)
opacity_states = self.solve_opacity()

transport_state, virtual_packet_energies = self.solve_montecarlo(
self.real_packet_count
opacity_states, self.real_packet_count
)

(
Expand Down Expand Up @@ -258,7 +250,9 @@ def run(self):
"\n\tITERATIONS HAVE NOT CONVERGED, starting final iteration"
)
transport_state, virtual_packet_energies = self.solve_montecarlo(
self.final_iteration_packet_count, self.virtual_packet_count
opacity_states,
self.final_iteration_packet_count,
self.virtual_packet_count,
)
self.store_plasma_state(
self.completed_iterations,
Expand All @@ -276,5 +270,6 @@ def run(self):
)
self.initialize_spectrum_solver(
transport_state,
opacity_states,
virtual_packet_energies,
)

0 comments on commit 400332b

Please sign in to comment.