Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabled formal integral for continuum interaction #2426

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tardis/montecarlo/montecarlo_numba/formal_integral.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import pdb

from tardis.montecarlo.montecarlo_numba.numba_config import SIGMA_THOMSON
from tardis.montecarlo import montecarlo_configuration as mc_config_module
from tardis.montecarlo.montecarlo_numba import njit_dict, njit_dict_no_parallel
from tardis.montecarlo.montecarlo_numba.numba_interface import (
opacity_state_initialize,
Expand Down Expand Up @@ -359,6 +360,12 @@ def raise_or_return(message):
'and line_interaction_type == "macroatom"'
)

if mc_config_module.CONTINUUM_PROCESSES_ENABLED:
return raise_or_return(
"The FormalIntegrator currently does not work for "
"continuum interactions."
)

return True

def calculate_spectrum(
Expand Down
Loading