diff --git a/tardis/montecarlo/montecarlo_numba/formal_integral.py b/tardis/montecarlo/montecarlo_numba/formal_integral.py index e27704fbd96..c97c017360d 100644 --- a/tardis/montecarlo/montecarlo_numba/formal_integral.py +++ b/tardis/montecarlo/montecarlo_numba/formal_integral.py @@ -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, @@ -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(