Skip to content

Commit

Permalink
Disabled formal integral
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Holas committed Oct 4, 2023
1 parent f89e125 commit 04be2ff
Showing 1 changed file with 7 additions and 0 deletions.
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

0 comments on commit 04be2ff

Please sign in to comment.