fn apply_d_log(val: f64, log_flag: bool) -> f64
Post-process a density value: apply log if requested.