Skip to content

Commit

Permalink
Fix #6178: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gurhar1133 committed Aug 2, 2023
1 parent 59789e1 commit 8574f8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sirepo/package_data/template/silas/crystal.py.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def thermo_optic_sim():
thermo.set_boundary(2*(crystal.radius*100.)**2./40.)

if '{{ crystalSimType }}' == "analytical":
Ts = thermo.{{ pump_pulse_profile }}_solution() #solve_steady()#gaussian_solution()
Ts = thermo.{{ pump_pulse_profile }}_solution()

elif '{{ crystalSimType }}' == "simulated":
thermo.set_load('{{ pump_pulse_profile }}')
Expand All @@ -31,7 +31,7 @@ def thermo_optic_sim():
elif r >= 100:
Ts = thermo.solve_steady()
else:
raise AssertionError(f"Invalid rep rate for simulated {'{{ pump_pulse_profile }}'}")
raise AssertionError(f"Invalid rep rate for simulated solve heat_load={'{{ pump_pulse_profile }}'}")

nT, n0Fit, n2Fit = thermo.compute_indices(Ts)
# Positions of each evaluation point & sets of the unique values
Expand Down

0 comments on commit 8574f8a

Please sign in to comment.