pub struct SolverOpts {Show 16 fields
pub z_start: Option<f64>,
pub z_end: f64,
pub dy_max: Option<f64>,
pub dtau_max: Option<f64>,
pub n_points: Option<usize>,
pub disable_dcbr: bool,
pub split_dcbr: bool,
pub cn_dcbr: bool,
pub number_conserving: bool,
pub nc_stride: Option<usize>,
pub nc_z_min: Option<f64>,
pub production_grid: bool,
pub dn_planck: Option<f64>,
pub no_auto_refine: bool,
pub n_threads: Option<usize>,
pub dtau_max_photon_source: Option<f64>,
}Expand description
Solver tuning parameters.
Fields§
§z_start: Option<f64>Starting redshift --z-start. None lets each subcommand pick a default.
z_end: f64Ending redshift --z-end (default 500.0).
dy_max: Option<f64>Cap on adaptive y-step --dy-max.
dtau_max: Option<f64>Cap on adaptive optical-depth step --dtau-max.
n_points: Option<usize>Frequency-grid point count --n-points. Overrides the built-in
fast / production presets.
disable_dcbr: boolDisable double-Compton + bremsstrahlung emission/absorption (--no-dcbr).
split_dcbr: boolSplit the DC/BR step into separate DC and BR substeps (--split-dcbr).
cn_dcbr: boolUse Crank-Nicolson (instead of backward Euler) for the DC/BR solve
(--cn-dcbr). Diagnostic only — known to fail at low x.
number_conserving: boolKeep the photon-number-conserving Kompaneets correction enabled
(default true; disabled with --no-number-conserving).
nc_stride: Option<usize>Apply the number-conserving correction every nc_stride steps
(--nc-stride).
nc_z_min: Option<f64>Lower-z cutoff --nc-z-min below which the number-conserving
correction is suppressed.
production_grid: boolUse the high-resolution production grid preset (--production-grid).
dn_planck: Option<f64>Override the initial-condition Δn at z_start (--dn-planck); used
for adiabatic / baseline diagnostics.
no_auto_refine: boolDisable automatic grid refinement for photon-injection scenarios
(--no-auto-refine).
n_threads: Option<usize>Thread count for parallel sweep execution (--threads).
dtau_max_photon_source: Option<f64>Maximum dtau per step during photon-source injection
(--dtau-max-photon-source); tightens the timestep near a delta-line
source.