diff --git a/build_log.txt b/build_log.txt new file mode 100644 index 0000000..fc5f8b7 --- /dev/null +++ b/build_log.txt @@ -0,0 +1,5208 @@ + Compiling tlusty-rust v0.1.0 (/home/fmq/.zeroclaw/workspace/SpectraRust) +warning: unused import: `crate::tlusty::state::atomic::AtomicData` + --> src/tlusty/io/incldy.rs:11:5 + | +11 | use crate::tlusty::state::atomic::AtomicData; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default + +warning: unused imports: `BOLK` and `MDEPTH` + --> src/tlusty/io/incldy.rs:13:39 + | +13 | use crate::tlusty::state::constants::{BOLK, MDEPTH}; + | ^^^^ ^^^^^^ + +warning: unused imports: `LevPop` and `WmComp` + --> src/tlusty/io/incldy.rs:14:35 + | +14 | use crate::tlusty::state::model::{LevPop, ModPar, WmComp}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `FortranReader`, `FortranWriter`, and `Result` + --> src/tlusty/io/initia.rs:19:13 + | +19 | use super::{Result, FortranReader, FortranWriter}; + | ^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ + +warning: unexpected `cfg` condition value: `debug_output` + --> src/tlusty/io/iroset.rs:334:15 + | +334 | #[cfg(feature = "debug_output")] + | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition + | + = note: no expected values for `feature` + = help: consider adding `debug_output` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + = note: `#[warn(unexpected_cfgs)]` on by default + +warning: unused import: `FortranReader` + --> src/tlusty/io/levcd.rs:11:13 + | +11 | use super::{FortranReader, IoError, Result}; + | ^^^^^^^^^^^^^ + +warning: unused import: `AtomicData` + --> src/tlusty/io/levcd.rs:18:36 + | +18 | use crate::tlusty::state::atomic::{AtomicData, IonPar, LevPar}; + | ^^^^^^^^^^ + +warning: unused imports: `BufWriter` and `Write` + --> src/tlusty/io/levcd.rs:23:35 + | +23 | use std::io::{BufRead, BufReader, BufWriter, Write}; + | ^^^^^^^^^ ^^^^^ + +warning: unused imports: `FrqAll` and `LinOvr` + --> src/tlusty/io/linset.rs:10:35 + | +10 | use crate::tlusty::state::model::{FrqAll, LinOvr, StdPar, Turbul}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `SIG4P`, `TWO`, and `UN` + --> src/tlusty/io/ltegr.rs:26:59 + | +26 | use crate::tlusty::state::constants::{BOLK, MDEPTH, HALF, TWO, UN, SIG4P}; + | ^^^ ^^ ^^^^^ + +warning: unused imports: `compute_hopf` and `compute_temperature` + --> src/tlusty/io/ltegr.rs:28:5 + | +28 | compute_hopf, compute_temperature, rossop, RossopConfig, RossopParams, RossopModelState, RossopOutput, + | ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `IoError` + --> src/tlusty/io/model.rs:13:13 + | +13 | use super::{IoError, Result}; + | ^^^^^^^ + +warning: unused import: `FortranWriter` + --> src/tlusty/io/nstpar.rs:8:28 + | +8 | use super::{FortranReader, FortranWriter, Result}; + | ^^^^^^^^^^^^^ + +warning: unused imports: `MDEPTH`, `MFREQ`, `MFREX`, and `MLEVEL` + --> src/tlusty/io/outpri.rs:14:39 + | +14 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MFREX, MLEVEL, UN, HALF}; + | ^^^^^^ ^^^^^ ^^^^^ ^^^^^^ + +warning: unused import: `MDEPTH` + --> src/tlusty/io/rayini.rs:15:39 + | +15 | use crate::tlusty::state::constants::{MDEPTH, MTABR, MTABT}; + | ^^^^^^ + +warning: unused import: `Read` + --> src/tlusty/io/reader.rs:6:43 + | +6 | use std::io::{BufRead, BufReader, Cursor, Read}; + | ^^^^ + +warning: unused imports: `MDEPTH`, `MFREQ`, and `MLEVEL` + --> src/tlusty/io/resolv.rs:33:39 + | +33 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MLEVEL}; + | ^^^^^^ ^^^^^ ^^^^^^ + +warning: unused imports: `coolrt_pure`, `linsel_pure`, `opacf1`, `output`, `princ_pure`, `ratsp1`, `rechck_pure`, `rtecf1`, `rtecmu`, `rtecom`, `rtefr1`, `rteint`, and `taufr1` + --> src/tlusty/io/resolv.rs:35:39 + | +35 | rayset, prd, opaini, rates1_pure, ratsp1, steqeq_pure, newpop, + | ^^^^^^ +36 | elcor_pure, accelp, rosstd_evaluate, output, pzert, + | ^^^^^^ +... +39 | rybheq, princ_pure, coolrt_pure, rechck_pure, rteint, rtecmu, + | ^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^ +40 | taufr1, linsel_pure, rtecf1, opacf1, rtefr1, rtecom, + | ^^^^^^ ^^^^^^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^ + +warning: unexpected `cfg` condition value: `debug_output` + --> src/tlusty/io/srtfrq.rs:215:11 + | +215 | #[cfg(feature = "debug_output")] + | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition + | + = note: no expected values for `feature` + = help: consider adding `debug_output` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `debug_output` + --> src/tlusty/io/srtfrq.rs:444:11 + | +444 | #[cfg(feature = "debug_output")] + | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition + | + = note: no expected values for `feature` + = help: consider adding `debug_output` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `debug_output` + --> src/tlusty/io/srtfrq.rs:456:11 + | +456 | #[cfg(feature = "debug_output")] + | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition + | + = note: no expected values for `feature` + = help: consider adding `debug_output` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unexpected `cfg` condition value: `debug_output` + --> src/tlusty/io/srtfrq.rs:458:11 + | +458 | #[cfg(feature = "debug_output")] + | ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition + | + = note: no expected values for `feature` + = help: consider adding `debug_output` as a feature in `Cargo.toml` + = note: see for more information about checking conditional configuration + +warning: unused imports: `MATOM`, `MLEVEL`, and `MTRANS` + --> src/tlusty/io/start.rs:43:39 + | +43 | use crate::tlusty::state::constants::{MTRANS, MLEVEL, MATOM}; + | ^^^^^^ ^^^^^^ ^^^^^ + +warning: unused import: `IoError` + --> src/tlusty/io/settrm.rs:10:28 + | +10 | use super::{FortranReader, IoError, Result}; + | ^^^^^^^ + +warning: unused import: `BufWriter` + --> src/tlusty/io/tabini.rs:19:35 + | +19 | use std::io::{BufRead, BufReader, BufWriter, Read, Write}; + | ^^^^^^^^^ + +warning: unused import: `std::path::Path` + --> src/tlusty/io/tabini.rs:20:5 + | +20 | use std::path::Path; + | ^^^^^^^^^^^^^^^ + +warning: unused import: `IoError` + --> src/tlusty/io/xenini.rs:7:28 + | +7 | use super::{FortranReader, IoError, Result}; + | ^^^^^^^ + +warning: unused imports: `MDEPTH` and `MLEVEL` + --> src/tlusty/math/ali/alifr3.rs:10:39 + | +10 | use crate::tlusty::state::constants::{MLEVEL, MDEPTH, UN, TWO}; + | ^^^^^^ ^^^^^^ + +warning: unused import: `MFREQ` + --> src/tlusty/math/ali/alifrk.rs:9:47 + | +9 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, UN, HALF}; + | ^^^^^ + +warning: unused imports: `MFREQ` and `MTRANS` + --> src/tlusty/math/ali/alisk1.rs:25:47 + | +25 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MTRANS, UN, HK, PCK}; + | ^^^^^ ^^^^^^ + +warning: unused import: `crate::tlusty::math::continuum::opacf1` + --> src/tlusty/math/ali/alisk1.rs:27:5 + | +27 | use crate::tlusty::math::continuum::opacf1; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `HK`, `MFREQ`, and `MTRANS` + --> src/tlusty/math/ali/alisk2.rs:16:47 + | +16 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MTRANS, UN, HK, PCK}; + | ^^^^^ ^^^^^^ ^^ + +warning: unused import: `crate::tlusty::math::continuum::opacf1` + --> src/tlusty/math/ali/alisk2.rs:18:5 + | +18 | use crate::tlusty::math::continuum::opacf1; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `HALF`, `HK`, `MDEPTH`, `MFREQ`, `MLEVEL`, and `MTRANS` + --> src/tlusty/math/ali/alist1.rs:20:39 + | +20 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MLEVEL, MTRANS, HALF, HK, PCK, UN}; + | ^^^^^^ ^^^^^ ^^^^^^ ^^^^^^ ^^^^ ^^ + +warning: unused imports: `MFREQ`, `MLEVEL`, `MLVEXP`, and `MTRANS` + --> src/tlusty/math/ali/alist2.rs:13:47 + | +13 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MLEVEL, MTRANS, MLVEXP, UN}; + | ^^^^^ ^^^^^^ ^^^^^^ ^^^^^^ + +warning: unused import: `MFREQ` + --> src/tlusty/math/ali/ijali2.rs:8:45 + | +8 | use crate::tlusty::state::constants::{MITJ, MFREQ}; + | ^^^^^ + +warning: unused import: `MFREQ` + --> src/tlusty/math/ali/taufr1.rs:5:51 + | +5 | use crate::tlusty::state::constants::{HK, MDEPTH, MFREQ}; + | ^^^^^ + +warning: unused import: `IoError` + --> src/tlusty/math/atomic/chctab.rs:6:40 + | +6 | use crate::tlusty::io::{FortranWriter, IoError, Result}; + | ^^^^^^^ + +warning: unused imports: `BOLK`, `EH`, `TWO`, and `UN` + --> src/tlusty/math/continuum/lte_opacity.rs:18:46 + | +18 | use crate::tlusty::state::constants::{H, HK, BOLK, SIGE, EH, UN, TWO}; + | ^^^^ ^^ ^^ ^^^ + +warning: unused imports: `MION` and `MTRANS` + --> src/tlusty/math/continuum/opacf0.rs:18:85 + | +18 | use crate::tlusty::state::constants::{HK, H, UN, SIGE, NLMX, MFREQ, MFREQL, MLEVEL, MTRANS, MION, MMER, MDEPTH}; + | ^^^^^^ ^^^^ + +warning: unused import: `MION` + --> src/tlusty/math/continuum/opacf1.rs:8:78 + | +8 | use crate::tlusty::state::constants::{UN, SIGE, NLMX, MFREQ, MLEVEL, MTRANS, MION, MMER, MDEPTH}; + | ^^^^ + +warning: unused import: `HK` + --> src/tlusty/math/continuum/opactd.rs:8:39 + | +8 | use crate::tlusty::state::constants::{HK, UN}; + | ^^ + +warning: unused imports: `BN`, `HALF`, `HK`, `MDEPTH`, `MFREQ`, and `MLEVEL` + --> src/tlusty/math/continuum/opactr.rs:26:39 + | +26 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MLEVEL, BN, HALF, HK, UN}; + | ^^^^^^ ^^^^^ ^^^^^^ ^^ ^^^^ ^^ + +warning: unused import: `IoError` + --> src/tlusty/math/continuum/opfrac.rs:11:33 + | +11 | use crate::tlusty::io::{Result, IoError}; + | ^^^^^^^ + +warning: unused import: `Write` + --> src/tlusty/math/continuum/opacity_table.rs:9:41 + | +9 | use std::io::{BufRead, BufReader, Read, Write}; + | ^^^^^ + +warning: ambiguous glob re-exports + --> src/tlusty/math/continuum/mod.rs:28:9 + | +28 | pub use opacf0::*; + | ^^^^^^^^^ the name `OpaddResult` in the type namespace is first re-exported here +29 | pub use opacf1::*; + | --------- but the name `OpaddResult` in the type namespace is also re-exported here + | + = note: `#[warn(ambiguous_glob_reexports)]` on by default + +warning: ambiguous glob re-exports + --> src/tlusty/math/continuum/mod.rs:28:9 + | +28 | pub use opacf0::*; + | ^^^^^^^^^ the name `NoOpCallbacks` in the type namespace is first re-exported here +29 | pub use opacf1::*; + | --------- but the name `NoOpCallbacks` in the type namespace is also re-exported here + +warning: ambiguous glob re-exports + --> src/tlusty/math/continuum/mod.rs:28:9 + | +28 | pub use opacf0::*; + | ^^^^^^^^^ the name `NoOpCallbacks` in the value namespace is first re-exported here +29 | pub use opacf1::*; + | --------- but the name `NoOpCallbacks` in the value namespace is also re-exported here + +warning: unused import: `TWO` + --> src/tlusty/math/convection/concor.rs:17:43 + | +17 | use crate::tlusty::state::constants::{UN, TWO}; + | ^^^ + +warning: unused import: `crate::tlusty::math::continuum::opacf0` + --> src/tlusty/math/convection/conout.rs:16:5 + | +16 | use crate::tlusty::math::continuum::opacf0; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::math::format_conout_header` + --> src/tlusty/math/convection/contmd.rs:23:5 + | +23 | use crate::tlusty::math::format_conout_header; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `PrsentParams` and `prsent` + --> src/tlusty/math/convection/convec.rs:14:27 + | +14 | use crate::tlusty::math::{prsent, PrsentParams, ThermTables}; + | ^^^^^^ ^^^^^^^^^^^^ + +warning: ambiguous glob re-exports + --> src/tlusty/math/convection/mod.rs:11:9 + | +11 | pub use conout::*; + | ^^^^^^^^^ the name `CubconData` in the type namespace is first re-exported here +12 | pub use conref::*; +13 | pub use contmd::*; + | --------- but the name `CubconData` in the type namespace is also re-exported here + +warning: unused import: `moleq_pure` + --> src/tlusty/math/eos/eldenc.rs:10:27 + | +10 | use crate::tlusty::math::{moleq_pure, MoleqParams}; + | ^^^^^^^^^^ + +warning: unused import: `EnteneOutput` + --> src/tlusty/math/eos/eldens.rs:15:49 + | +15 | use crate::tlusty::math::{entene, EnteneParams, EnteneOutput}; + | ^^^^^^^^^^^^ + +warning: unused imports: `MAX_MOL` and `RusselOutput` + --> src/tlusty/math/eos/moleq.rs:11:63 + | +11 | use crate::tlusty::math::{russel, MoleculeData, RusselParams, RusselOutput, MAX_ELEM, MAX_MOL}; + | ^^^^^^^^^^^^ ^^^^^^^ + +warning: unused import: `EldensOutput` + --> src/tlusty/math/eos/rhonen.rs:9:54 + | +9 | use crate::tlusty::math::{eldens_pure, EldensConfig, EldensOutput, EldensParams}; + | ^^^^^^^^^^^^ + +warning: unused imports: `ColhOutput` and `colh` + --> src/tlusty/math/hydrogen/colis.rs:13:27 + | +13 | use crate::tlusty::math::{colh, ColhAtomicData, ColhOutput, ColhParams}; + | ^^^^ ^^^^^^^^^^ + +warning: unused imports: `MFHTAB` and `UN` + --> src/tlusty/math/hydrogen/ghydop.rs:7:47 + | +7 | use crate::tlusty::state::constants::{MDEPTH, MFHTAB, MFREQ, MTABEH, MTABTH, UN}; + | ^^^^^^ ^^ + +warning: unused import: `Hediff` + --> src/tlusty/math/hydrogen/hedif.rs:10:35 + | +10 | use crate::tlusty::state::model::{Hediff, ModelState}; + | ^^^^^^ + +warning: unused imports: `MDEPTH`, `MLEVEL`, and `MMER` + --> src/tlusty/math/hydrogen/sgmer.rs:10:5 + | +10 | MDEPTH, MLEVEL, MMER, NLMX, + | ^^^^^^ ^^^^^^ ^^^^ + +warning: unused import: `Read` + --> src/tlusty/math/hydrogen/sigave.rs:11:43 + | +11 | use std::io::{BufRead, BufReader, Cursor, Read}; + | ^^^^ + +warning: unused import: `MFREQC` + --> src/tlusty/math/interpolation/tabint.rs:5:46 + | +5 | use crate::tlusty::state::constants::{MFREQ, MFREQC, MFRTAB, MTABR, MTABT}; + | ^^^^^^ + +warning: unused import: `MDEPTH` + --> src/tlusty/math/io/princ.rs:18:63 + | +18 | use crate::tlusty::state::constants::{UN, HALF, HK, BOLK, BN, MDEPTH, MFREQ, MLEVEL}; + | ^^^^^^ + +warning: unused import: `LinproOutput` + --> src/tlusty/math/io/princ.rs:25:49 + | +25 | use crate::tlusty::math::{linpro, LinproParams, LinproOutput}; + | ^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::math::cross` + --> src/tlusty/math/io/princ.rs:27:5 + | +27 | use crate::tlusty::math::cross; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unnecessary parentheses around assigned value + --> src/tlusty/math/io/princ.rs:304:20 + | +304 | let anes = (ane.powf(SIXTH)); + | ^ ^ + | + = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default +help: remove these parentheses + | +304 - let anes = (ane.powf(SIXTH)); +304 + let anes = ane.powf(SIXTH); + | + +warning: unused import: `MDEPTH` + --> src/tlusty/math/io/pzert.rs:9:39 + | +9 | use crate::tlusty::state::constants::{MDEPTH, MLEVEL}; + | ^^^^^^ + +warning: unused imports: `TWO` and `UN` + --> src/tlusty/math/io/pzeval.rs:9:51 + | +9 | use crate::tlusty::state::constants::{BOLK, HALF, TWO, UN}; + | ^^^ ^^ + +warning: unused imports: `LevPar`, `PhoSet`, `TabCol`, `TopCs`, `TraPar`, and `VoiPar` + --> src/tlusty/math/io/rdata.rs:12:68 + | +12 | use crate::tlusty::state::atomic::{AtoPar, IonDat, IonFil, IonPar, LevPar, PhoSet, TabCol, TopCs, TraPar, VoiPar}; + | ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^ ^^^^^^ ^^^^^^ + +warning: unused imports: `BasNum` and `InpPar` + --> src/tlusty/math/io/rdata.rs:13:36 + | +13 | use crate::tlusty::state::config::{BasNum, InpPar}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `MCORAT`, `MCROSS`, `MFIT`, `MLEVEL`, `MVOIGT`, and `MXTCOL` + --> src/tlusty/math/io/rdata.rs:14:46 + | +14 | use crate::tlusty::state::constants::{EH, H, MCORAT, MCROSS, MFIT, MLEVEL, MTRANS, MVOIGT, MXTCOL}; + | ^^^^^^ ^^^^^^ ^^^^ ^^^^^^ ^^^^^^ ^^^^^^ + +warning: unused import: `crate::tlusty::state::iterat::IterControl` + --> src/tlusty/math/io/rdata.rs:15:5 + | +15 | use crate::tlusty::state::iterat::IterControl; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::model::ModelState` + --> src/tlusty/math/io/rdata.rs:16:5 + | +16 | use crate::tlusty::state::model::ModelState; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::odfpar::OdfData` + --> src/tlusty/math/io/rdata.rs:17:5 + | +17 | use crate::tlusty::state::odfpar::OdfData; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `Read` + --> src/tlusty/math/io/readbf.rs:7:43 + | +7 | use std::io::{BufRead, BufReader, Cursor, Read}; + | ^^^^ + +warning: unused import: `crate::tlusty::state::constants::MDEPTH` + --> src/tlusty/math/io/rechck.rs:17:5 + | +17 | use crate::tlusty::state::constants::MDEPTH; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused doc comment + --> src/tlusty/math/io/timing.rs:16:1 + | +16 | /// 全局计时器(使用 thread_local 避免并发问题) + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations + | + = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion + = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default + +warning: unused imports: `MDEPTH` and `MFREQ` + --> src/tlusty/math/odf/odf1.rs:22:28 + | +22 | use crate::tlusty::state::{MFREQ, MFRO, NLMX, MDEPTH}; + | ^^^^^ ^^^^^^ + +warning: unused import: `crate::tlusty::state::MFRO` + --> src/tlusty/math/odf/odfhst.rs:9:5 + | +9 | use crate::tlusty::state::MFRO; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `UN` + --> src/tlusty/math/odf/odfhyd.rs:10:50 + | +10 | use crate::tlusty::state::constants::{HALF, TWO, UN}; + | ^^ + +warning: unused import: `MDEPTH` + --> src/tlusty/math/opacity/dwnfr0.rs:5:39 + | +5 | use crate::tlusty::state::constants::{MDEPTH, MZZ, UN}; + | ^^^^^^ + +warning: unused imports: `MFREQ`, `MLEVEL`, and `MTRANS` + --> src/tlusty/math/opacity/inilam.rs:20:59 + | +20 | use crate::tlusty::state::constants::{BOLK, HALF, MDEPTH, MFREQ, MLEVEL, MTRANS, PCK, SIG4P, UN}; + | ^^^^^ ^^^^^^ ^^^^^^ + +warning: unused import: `TWO` + --> src/tlusty/math/opacity/inpdis.rs:15:46 + | +15 | use crate::tlusty::state::constants::{SIG4P, TWO}; + | ^^^ + +warning: unused import: `FortranReader` + --> src/tlusty/math/opacity/lemini.rs:15:25 + | +15 | use crate::tlusty::io::{FortranReader, Result, IoError}; + | ^^^^^^^^^^^^^ + +warning: unused imports: `MDEPTH` and `MLEVEL` + --> src/tlusty/math/opacity/levset.rs:18:39 + | +18 | use crate::tlusty::state::constants::{MLEVEL, MDEPTH, MLVEXP}; + | ^^^^^^ ^^^^^^ + +warning: unused import: `crate::tlusty::state::constants::*` + --> src/tlusty/math/opacity/linpro.rs:15:5 + | +15 | use crate::tlusty::state::constants::*; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `Opacf1AtomicParams`, `Opacf1Config`, `Opacf1FreqParams`, `Opacf1ModelState`, `Opacf1Output`, `Opacf1Precomputed`, and `opacf1` + --> src/tlusty/math/opacity/linsel.rs:15:27 + | +15 | ...y::math::{opacf1, Opacf1Config, Opacf1ModelState, Opacf1AtomicParams, Opacf1FreqParams, Opacf1Precomputed, Opacf1Output}; + | ^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ + +warning: unused imports: `Rtefr1ModelState`, `Rtefr1Params`, and `rtefr1` + --> src/tlusty/math/opacity/linsel.rs:16:27 + | +16 | use crate::tlusty::math::{rtefr1, Rtefr1Params, Rtefr1ModelState}; + | ^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ + +warning: unused imports: `OpainiOutput`, `OpainiParams`, and `opaini` + --> src/tlusty/math/opacity/linsel.rs:17:27 + | +17 | use crate::tlusty::math::{opaini, OpainiParams, OpainiOutput}; + | ^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::math::quit` + --> src/tlusty/math/opacity/linsel.rs:18:5 + | +18 | use crate::tlusty::math::quit; + | ^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `MFREQC` and `MFREQ` + --> src/tlusty/math/opacity/meanop.rs:5:43 + | +5 | use crate::tlusty::state::constants::{HK, MFREQ, MFREQC}; + | ^^^^^ ^^^^^^ + +warning: unused import: `crate::tlusty::math::opacity::dopgam` + --> src/tlusty/math/opacity/prd.rs:8:5 + | +8 | use crate::tlusty::math::opacity::dopgam; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `TWO` + --> src/tlusty/math/opacity/prd.rs:9:39 + | +9 | use crate::tlusty::state::constants::{TWO, UN}; + | ^^^ + +warning: unused imports: `MDEPTH` and `MTRANS` + --> src/tlusty/math/opacity/prdini.rs:7:39 + | +7 | use crate::tlusty::state::constants::{MDEPTH, MTRANS}; + | ^^^^^^ ^^^^^^ + +warning: unused import: `SabolfOutput` + --> src/tlusty/math/opacity/profsp.rs:11:54 + | +11 | use crate::tlusty::math::{sabolf_pure, SabolfParams, SabolfOutput}; + | ^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::constants::MDEPTH` + --> src/tlusty/math/opacity/rayset.rs:7:5 + | +7 | use crate::tlusty::state::constants::MDEPTH; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `IoError` and `Result` + --> src/tlusty/math/partition/partf.rs:16:25 + | +16 | use crate::tlusty::io::{Result, IoError}; + | ^^^^^^ ^^^^^^^ + +warning: unused imports: `IoError` and `Result` + --> src/tlusty/math/partition/pfheav.rs:11:25 + | +11 | use crate::tlusty::io::{Result, IoError}; + | ^^^^^^ ^^^^^^^ + +warning: unused import: `StateOutput` + --> src/tlusty/math/population/bpopc.rs:18:52 + | +18 | use crate::tlusty::math::{state_pure, StateParams, StateOutput}; + | ^^^^^^^^^^^ + +warning: unused imports: `MLEVEL` and `MLVEXP` + --> src/tlusty/math/population/bpope.rs:7:46 + | +7 | use crate::tlusty::state::constants::{MFREX, MLEVEL, MLVEXP, UN}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `MLEVEL` and `MLVEX3` + --> src/tlusty/math/population/bpopf.rs:19:39 + | +19 | use crate::tlusty::state::constants::{MLEVEL, MLVEX3, MTOT, UN}; + | ^^^^^^ ^^^^^^ + +warning: unused import: `MDEPTH` + --> src/tlusty/math/population/newpop.rs:8:39 + | +8 | use crate::tlusty::state::constants::{MDEPTH, MLEVEL, UN}; + | ^^^^^^ + +warning: unused imports: `MDEPTH` and `MION` + --> src/tlusty/math/radiative/coolrt.rs:16:39 + | +16 | use crate::tlusty::state::constants::{MDEPTH, MION}; + | ^^^^^^ ^^^^ + +warning: unused imports: `MDEPTH`, `MFREQ`, `MLEVEL`, and `MTRANS` + --> src/tlusty/math/radiative/radpre.rs:8:51 + | +8 | use crate::tlusty::state::constants::{BOLK, HALF, MDEPTH, MFREQ, MLEVEL, MTRANS}; + | ^^^^^^ ^^^^^ ^^^^^^ ^^^^^^ + +warning: unused imports: `MDEPTH` and `MFREQ` + --> src/tlusty/math/radiative/radtot.rs:8:45 + | +8 | use crate::tlusty::state::constants::{HALF, MDEPTH, MFREQ}; + | ^^^^^^ ^^^^^ + +warning: unused import: `MFREQ` + --> src/tlusty/math/radiative/rtecmc.rs:9:47 + | +9 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, UN}; + | ^^^^^ + +warning: unused imports: `MDEPTH` and `MFREQ` + --> src/tlusty/math/radiative/rtecmu.rs:8:87 + | +8 | use crate::tlusty::state::constants::{HALF, HK, SIGE, SIG4P, TWO, UN, XCON, YCON, BN, MDEPTH, MFREQ, MMU}; + | ^^^^^^ ^^^^^ + +warning: unused import: `crate::tlusty::math::opacf1` + --> src/tlusty/math/radiative/rtecom.rs:14:5 + | +14 | use crate::tlusty::math::opacf1; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `MDEPTH` + --> src/tlusty/math/radiative/rtefr1.rs:14:53 + | +14 | use crate::tlusty::state::constants::{BN, HALF, HK, MDEPTH, TWO, UN}; + | ^^^^^^ + +warning: unused import: `crate::tlusty::math::minv3` + --> src/tlusty/math/radiative/rtefr1.rs:16:5 + | +16 | use crate::tlusty::math::minv3; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `MFREQ` + --> src/tlusty/math/radiative/rteint.rs:13:47 + | +13 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, UN, HALF, TWO}; + | ^^^^^ + +warning: unused imports: `BOLK` and `HMASS` + --> src/tlusty/math/radiative/trmder.rs:20:39 + | +20 | use crate::tlusty::state::constants::{BOLK, HMASS, UN}; + | ^^^^ ^^^^^ + +warning: unused imports: `HALF`, `HK`, `MDEPTH`, `MFREQ`, and `MTRANS` + --> src/tlusty/math/rates/rates1.rs:16:39 + | +16 | use crate::tlusty::state::constants::{HALF, HK, MDEPTH, MFREQ, MFREQP, MLEVEL, MTRANS, UN}; + | ^^^^ ^^ ^^^^^^ ^^^^^ ^^^^^^ + +warning: unused imports: `MDEPTH` and `MTRANS` + --> src/tlusty/math/rates/ratsp1.rs:8:48 + | +8 | use crate::tlusty::state::constants::{UN, PCK, MDEPTH, MTRANS}; + | ^^^^^^ ^^^^^^ + +warning: unused import: `MDEPTH` + --> src/tlusty/math/solvers/accel2.rs:21:39 + | +21 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MLEVEL}; + | ^^^^^^ + +warning: unused import: `crate::tlusty::state::config::TlustyConfig` + --> src/tlusty/math/solvers/accel2.rs:23:5 + | +23 | use crate::tlusty::state::config::TlustyConfig; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::atomic::AtomicData` + --> src/tlusty/math/solvers/accel2.rs:24:5 + | +24 | use crate::tlusty::state::atomic::AtomicData; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `IoError` + --> src/tlusty/math/solvers/accelp.rs:7:40 + | +7 | use crate::tlusty::io::{FortranWriter, IoError, Result}; + | ^^^^^^^ + +warning: unused import: `ConvecOutput` + --> src/tlusty/math/solvers/matcon.rs:10:49 + | +10 | use crate::tlusty::math::{convec, ConvecConfig, ConvecOutput, ConvecParams}; + | ^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::constants::MTOT` + --> src/tlusty/math/solvers/matgen.rs:23:5 + | +23 | use crate::tlusty::state::constants::MTOT; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::iterat::IterControl` + --> src/tlusty/math/solvers/matgen.rs:24:5 + | +24 | use crate::tlusty::state::iterat::IterControl; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::alipar::FixAlp` + --> src/tlusty/math/solvers/matgen.rs:26:5 + | +26 | use crate::tlusty::state::alipar::FixAlp; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unnecessary parentheses around assigned value + --> src/tlusty/math/solvers/rhsgen.rs:1023:26 + | +1023 | teffd *= (UN - params.callbacks.thetav(id)); + | ^ ^ + | +help: remove these parentheses + | +1023 - teffd *= (UN - params.callbacks.thetav(id)); +1023 + teffd *= UN - params.callbacks.thetav(id); + | + +warning: unused import: `PgsetOutput` + --> src/tlusty/math/solvers/rybchn.rs:12:47 + | +12 | use crate::tlusty::math::{pgset, PgsetParams, PgsetOutput}; + | ^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::math::MDEPTH` + --> src/tlusty/math/solvers/rybchn.rs:16:5 + | +16 | use crate::tlusty::math::MDEPTH; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `MLEVEL` + --> src/tlusty/math/solvers/rybsol.rs:13:47 + | +13 | use crate::tlusty::state::constants::{MDEPTH, MLEVEL, UN}; + | ^^^^^^ + +warning: type parameter `F_OPACTR` should have an upper camel case name + --> src/tlusty/math/solvers/rybsol.rs:266:20 + | +266 | pub fn rybsol_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FOpactr` + | + = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default + +warning: type parameter `F_RTEFR1` should have an upper camel case name + --> src/tlusty/math/solvers/rybsol.rs:266:30 + | +266 | pub fn rybsol_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FRtefr1` + +warning: type parameter `F_ALIFR1` should have an upper camel case name + --> src/tlusty/math/solvers/rybsol.rs:266:40 + | +266 | pub fn rybsol_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FAlifr1` + +warning: type parameter `F_ROSSTD` should have an upper camel case name + --> src/tlusty/math/solvers/rybsol.rs:266:50 + | +266 | pub fn rybsol_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FRosstd` + +warning: type parameter `F_RYBMAT` should have an upper camel case name + --> src/tlusty/math/solvers/rybsol.rs:266:60 + | +266 | pub fn rybsol_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FRybmat` + +warning: type parameter `F_RYBENE` should have an upper camel case name + --> src/tlusty/math/solvers/rybsol.rs:266:70 + | +266 | pub fn rybsol_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FRybene` + +warning: type parameter `F_RYBCHN` should have an upper camel case name + --> src/tlusty/math/solvers/rybsol.rs:266:80 + | +266 | pub fn rybsol_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FRybchn` + +warning: unused import: `MoleqOutput` + --> src/tlusty/math/temperature/elcor.rs:10:39 + | +10 | use crate::tlusty::math::{moleq_pure, MoleqOutput, MoleqParams}; + | ^^^^^^^^^^^ + +warning: unused import: `StateOutput` + --> src/tlusty/math/temperature/elcor.rs:11:39 + | +11 | use crate::tlusty::math::{state_pure, StateOutput, StateParams}; + | ^^^^^^^^^^^ + +warning: unused imports: `MDEPTH`, `MLEVEL`, and `UN` + --> src/tlusty/math/temperature/elcor.rs:14:45 + | +14 | use crate::tlusty::state::constants::{HALF, MDEPTH, MLEVEL, UN}; + | ^^^^^^ ^^^^^^ ^^ + +warning: unused imports: `HK`, `MFREQC`, and `UN` + --> src/tlusty/math/temperature/greyd.rs:11:39 + | +11 | use crate::tlusty::state::constants::{HK, MDEPTH, MFREQ, MFREQC, MLEVEL, UN}; + | ^^ ^^^^^^ ^^ + +warning: type parameter `F_Rhonen` should have an upper camel case name + --> src/tlusty/math/temperature/greyd.rs:166:20 + | +166 | fn greyd_iteration( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FRhonen` + +warning: type parameter `F_Wnstor` should have an upper camel case name + --> src/tlusty/math/temperature/greyd.rs:166:30 + | +166 | fn greyd_iteration( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FWnstor` + +warning: type parameter `F_Steqeq` should have an upper camel case name + --> src/tlusty/math/temperature/greyd.rs:166:40 + | +166 | fn greyd_iteration( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FSteqeq` + +warning: type parameter `F_Opacf0` should have an upper camel case name + --> src/tlusty/math/temperature/greyd.rs:166:50 + | +166 | fn greyd_iteration( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FOpacf0` + +warning: type parameter `F_Meanop` should have an upper camel case name + --> src/tlusty/math/temperature/greyd.rs:166:60 + | +166 | fn greyd_iteration( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FMeanop` + +warning: type parameter `F_Rhonen` should have an upper camel case name + --> src/tlusty/math/temperature/greyd.rs:253:19 + | +253 | pub fn greyd_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FRhonen` + +warning: type parameter `F_Wnstor` should have an upper camel case name + --> src/tlusty/math/temperature/greyd.rs:253:29 + | +253 | pub fn greyd_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FWnstor` + +warning: type parameter `F_Steqeq` should have an upper camel case name + --> src/tlusty/math/temperature/greyd.rs:253:39 + | +253 | pub fn greyd_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FSteqeq` + +warning: type parameter `F_Opacf0` should have an upper camel case name + --> src/tlusty/math/temperature/greyd.rs:253:49 + | +253 | pub fn greyd_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FOpacf0` + +warning: type parameter `F_Meanop` should have an upper camel case name + --> src/tlusty/math/temperature/greyd.rs:253:59 + | +253 | pub fn greyd_pure( + | ^^^^^^^^ help: convert the identifier to upper camel case: `FMeanop` + +warning: unused imports: `MDEPTH` and `MFREQ` + --> src/tlusty/math/temperature/lucy.rs:21:59 + | +21 | use crate::tlusty::state::constants::{BN, BOLK, HALF, HK, MDEPTH, MFREQ, MTRANS, SIG4P, UN}; + | ^^^^^^ ^^^^^ + +warning: unused import: `MDEPTH` + --> src/tlusty/math/temperature/tdpini.rs:6:52 + | +6 | use crate::tlusty::state::constants::{HALF, H, HK, MDEPTH, UN}; + | ^^^^^^ + +warning: unused imports: `MDEPTH` and `UN` + --> src/tlusty/math/temperature/temper.rs:15:56 + | +15 | use crate::tlusty::state::constants::{BOLK, HALF, TWO, UN, MDEPTH}; + | ^^ ^^^^^^ + +warning: unused import: `MDEPTH` + --> src/tlusty/math/temperature/tlocal.rs:8:39 + | +8 | use crate::tlusty::state::constants::{MDEPTH, UN}; + | ^^^^^^ + +warning: unused imports: `MAX_LEVEL`, `SteqeqOutput`, and `steqeq_pure` + --> src/tlusty/math/utils/change.rs:10:27 + | +10 | use crate::tlusty::math::{steqeq_pure, SteqeqConfig, SteqeqParams, SteqeqOutput, MAX_LEVEL}; + | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^ + +warning: unused imports: `MLEVEL` and `UN` + --> src/tlusty/math/utils/change.rs:11:53 + | +11 | use crate::tlusty::state::constants::{BOLK, MDEPTH, MLEVEL, UN}; + | ^^^^^^ ^^ + +warning: unused imports: `CallardA`, `CallardB`, `CallardC`, `CallardG`, `CalphatD`, and `Quasun` + --> src/tlusty/math/utils/getlal.rs:8:5 + | +8 | CalphatD, CallardA, CallardB, CallardC, CallardG, ModelState, Quasun, + | ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^^^ ^^^^^^ + +warning: unused imports: `MTABEH` and `MTABTH` + --> src/tlusty/math/utils/gomini.rs:8:47 + | +8 | use crate::tlusty::state::constants::{MFHTAB, MTABEH, MTABTH, UN}; + | ^^^^^^ ^^^^^^ + +warning: unused imports: `GomezTab` and `IntCfg` + --> src/tlusty/math/utils/gomini.rs:9:35 + | +9 | use crate::tlusty::state::model::{GomezTab, IntCfg, ModelState}; + | ^^^^^^^^ ^^^^^^ + +warning: unused import: `crate::tlusty::state::constants::MDEPTH` + --> src/tlusty/math/utils/setdrt.rs:5:5 + | +5 | use crate::tlusty::state::constants::MDEPTH; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unnecessary parentheses around block return value + --> src/tlusty/math/utils/state.rs:605:17 + | +605 | (fi.exp() * u / um / ane) + | ^ ^ + | +help: remove these parentheses + | +605 - (fi.exp() * u / um / ane) +605 + fi.exp() * u / um / ane + | + +warning: unused import: `MLEVEL` + --> src/tlusty/math/utils/wnstor.rs:8:39 + | +8 | use crate::tlusty::state::constants::{MLEVEL, NLMX, UN}; + | ^^^^^^ + +warning: ambiguous glob re-exports + --> src/tlusty/math/mod.rs:47:9 + | +47 | pub use convection::*; + | ^^^^^^^^^^^^^ the name `CubconData` in the type namespace is first re-exported here +... +60 | pub use temperature::*; + | -------------- but the name `CubconData` in the type namespace is also re-exported here + +warning: ambiguous glob re-exports + --> src/tlusty/math/mod.rs:53:9 + | +53 | pub use opacity::*; + | ^^^^^^^^^^ the name `Compt0Result` in the type namespace is first re-exported here +... +58 | pub use solvers::*; + | ---------- but the name `Compt0Result` in the type namespace is also re-exported here + +warning: unused import: `MDEPTH` + --> src/tlusty/main.rs:70:31 + | +70 | use super::state::constants::{MDEPTH, MTOT}; + | ^^^^^^ + +warning: unused import: `OpData` + --> src/synspec/math/crosew.rs:9:45 + | +9 | use crate::tlusty::math::{sigk, SigkParams, OpData}; + | ^^^^^^ + +warning: unused imports: `MCROSS` and `MFREQ` + --> src/synspec/math/crosew.rs:11:39 + | +11 | use crate::tlusty::state::constants::{MCROSS, MFREQ}; + | ^^^^^^ ^^^^^ + +warning: unnecessary parentheses around assigned value + --> src/synspec/math/he2sew.rs:107:25 + | +107 | result.mhe10w = (ratio.sqrt() as i32); + | ^ ^ + | +help: remove these parentheses + | +107 - result.mhe10w = (ratio.sqrt() as i32); +107 + result.mhe10w = ratio.sqrt() as i32; + | + +warning: unnecessary parentheses around block return value + --> src/synspec/math/voigtk.rs:76:5 + | +76 | (((((hh4 * a + hh3) * a + hh2) * a + hh1) * a + h0tab[iv]) + | ^ +77 | * (((CV1 * a + CV2) * a + CV3) * a + CV4)) + | ^ + | +help: remove these parentheses + | +76 ~ ((((hh4 * a + hh3) * a + hh2) * a + hh1) * a + h0tab[iv]) +77 ~ * (((CV1 * a + CV2) * a + CV3) * a + CV4) + | + +warning: unused imports: `MDEPTH`, `MLEVEL`, and `MTRANS` + --> src/tlusty/io/chckse.rs:349:43 + | +349 | use crate::tlusty::state::constants::{MDEPTH, MLEVEL, MTRANS}; + | ^^^^^^ ^^^^^^ ^^^^^^ + | + = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default + +warning: unused imports: `CraTes`, `LevPop`, `ModPar`, `RrRates`, and `WmComp` + --> src/tlusty/io/chckse.rs:350:39 + | +350 | use crate::tlusty::state::model::{CraTes, LevPop, ModPar, ModelState, RrRates, WmComp}; + | ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^^ ^^^^^^ + +warning: unused import: `crate::tlusty::state::atomic::AtomicData` + --> src/tlusty/io/incldy.rs:11:5 + | +11 | use crate::tlusty::state::atomic::AtomicData; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `compute_temperature` + --> src/tlusty/io/ltegr.rs:28:19 + | +28 | compute_hopf, compute_temperature, rossop, RossopConfig, RossopParams, RossopModelState, RossopOutput, + | ^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `MFREQ`, `MFREX`, and `MLEVEL` + --> src/tlusty/io/outpri.rs:14:47 + | +14 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MFREX, MLEVEL, UN, HALF}; + | ^^^^^ ^^^^^ ^^^^^^ + +warning: unused import: `std::io::Cursor` + --> src/tlusty/io/outpri.rs:1014:13 + | +1014 | use std::io::Cursor; + | ^^^^^^^^^^^^^^^ + +warning: unused import: `std::io::Cursor` + --> src/tlusty/io/tabini.rs:999:9 + | +999 | use std::io::Cursor; + | ^^^^^^^^^^^^^^^ + +warning: unused imports: `HK`, `MDEPTH`, `MFREQ`, `MLEVEL`, and `MTRANS` + --> src/tlusty/math/ali/alist1.rs:20:39 + | +20 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MLEVEL, MTRANS, HALF, HK, PCK, UN}; + | ^^^^^^ ^^^^^ ^^^^^^ ^^^^^^ ^^ + +warning: unused imports: `MFREQ` and `MLEVEL` + --> src/tlusty/math/ali/alist2.rs:13:47 + | +13 | use crate::tlusty::state::constants::{MDEPTH, MFREQ, MLEVEL, MTRANS, MLVEXP, UN}; + | ^^^^^ ^^^^^^ + +warning: unused imports: `MFREQ` and `MTRANS` + --> src/tlusty/math/ali/ijali2.rs:216:43 + | +216 | use crate::tlusty::state::constants::{MFREQ, MTRANS}; + | ^^^^^ ^^^^^^ + +warning: unused imports: `MATOM`, `MDEPTH`, `MION`, and `MLEVEL` + --> src/tlusty/math/atomic/dietot.rs:67:43 + | +67 | use crate::tlusty::state::constants::{MDEPTH, MION, MLEVEL, MATOM}; + | ^^^^^^ ^^^^ ^^^^^^ ^^^^^ + +warning: unused import: `approx::assert_relative_eq` + --> src/tlusty/math/eos/entene.rs:101:9 + | +101 | use approx::assert_relative_eq; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `MDEPTH` + --> src/tlusty/math/hydrogen/sgmer.rs:10:5 + | +10 | MDEPTH, MLEVEL, MMER, NLMX, + | ^^^^^^ + +warning: unused imports: `AtoPar`, `IonPar`, `LevPar`, and `TraPar` + --> src/tlusty/math/io/prnt.rs:452:40 + | +452 | use crate::tlusty::state::atomic::{AtoPar, IonPar, LevPar, TraPar}; + | ^^^^^^ ^^^^^^ ^^^^^^ ^^^^^^ + +warning: unused imports: `MLEVEL` and `MTRANS` + --> src/tlusty/math/io/prnt.rs:454:57 + | +454 | use crate::tlusty::state::constants::{MDEPTH, MION, MLEVEL, MTRANS}; + | ^^^^^^ ^^^^^^ + +warning: unused import: `crate::tlusty::state::constants::MATOM` + --> src/tlusty/math/io/pzert.rs:121:9 + | +121 | use crate::tlusty::state::constants::MATOM; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `MFREQ` + --> src/tlusty/math/odf/odf1.rs:22:28 + | +22 | use crate::tlusty::state::{MFREQ, MFRO, NLMX, MDEPTH}; + | ^^^^^ + +warning: unused imports: `MFREQ`, `MHOD`, `MLEVEL`, and `MTRANS` + --> src/tlusty/math/odf/odfhys.rs:318:43 + | +318 | use crate::tlusty::state::constants::{MFREQ, MLEVEL, MTRANS, MHOD}; + | ^^^^^ ^^^^^^ ^^^^^^ ^^^^ + +warning: unused imports: `MDEPTH`, `MFREQC`, `MFREQ`, and `MTRANS` + --> src/tlusty/math/opacity/corrwm.rs:397:43 + | +397 | use crate::tlusty::state::constants::{MFREQ, MDEPTH, MTRANS, MFREQC}; + | ^^^^^ ^^^^^^ ^^^^^^ ^^^^^^ + +warning: unused import: `crate::tlusty::state::atomic::*` + --> src/tlusty/math/opacity/inkul.rs:505:9 + | +505 | use crate::tlusty::state::atomic::*; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::model::*` + --> src/tlusty/math/opacity/inkul.rs:506:9 + | +506 | use crate::tlusty::state::model::*; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::odfpar::*` + --> src/tlusty/math/opacity/inkul.rs:507:9 + | +507 | use crate::tlusty::state::odfpar::*; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `MFREQC` + --> src/tlusty/math/opacity/meanop.rs:5:50 + | +5 | use crate::tlusty::state::constants::{HK, MFREQ, MFREQC}; + | ^^^^^^ + +warning: unused import: `approx::assert_relative_eq` + --> src/tlusty/math/opacity/meanopt.rs:117:9 + | +117 | use approx::assert_relative_eq; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::constants::*` + --> src/tlusty/math/opacity/profsp.rs:322:9 + | +322 | use crate::tlusty::state::constants::*; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unnecessary parentheses around closure body + --> src/tlusty/math/opacity/rayset.rs:153:31 + | +153 | .map(|ir| (-12.0 + it as f64 * 0.5 + ir as f64 * 0.2)) + | ^ ^ + | +help: remove these parentheses + | +153 - .map(|ir| (-12.0 + it as f64 * 0.5 + ir as f64 * 0.2)) +153 + .map(|ir| -12.0 + it as f64 * 0.5 + ir as f64 * 0.2) + | + +warning: unused import: `crate::tlusty::state::constants::MDEPTH` + --> src/tlusty/math/opacity/reflev.rs:358:9 + | +358 | use crate::tlusty::state::constants::MDEPTH; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::atomic::AtomicData` + --> src/tlusty/math/radiative/rtecmc.rs:277:9 + | +277 | use crate::tlusty::state::atomic::AtomicData; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `crate::tlusty::state::iterat::IterControl` + --> src/tlusty/math/radiative/rtecmc.rs:278:9 + | +278 | use crate::tlusty::state::iterat::IterControl; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `MDEPTH` + --> src/tlusty/math/radiative/rtecmu.rs:8:87 + | +8 | use crate::tlusty::state::constants::{HALF, HK, SIGE, SIG4P, TWO, UN, XCON, YCON, BN, MDEPTH, MFREQ, MMU}; + | ^^^^^^ + +warning: unused import: `crate::tlusty::state::constants::MDEPTH` + --> src/tlusty/math/solvers/psolve.rs:102:9 + | +102 | use crate::tlusty::state::constants::MDEPTH; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `MDEPTH` and `UN` + --> src/tlusty/math/temperature/elcor.rs:14:45 + | +14 | use crate::tlusty::state::constants::{HALF, MDEPTH, MLEVEL, UN}; + | ^^^^^^ ^^ + +warning: unused import: `crate::tlusty::state::MFREQ` + --> src/tlusty/math/utils/angset.rs:109:9 + | +109 | use crate::tlusty::state::MFREQ; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `UN` + --> src/tlusty/math/utils/change.rs:11:61 + | +11 | use crate::tlusty::state::constants::{BOLK, MDEPTH, MLEVEL, UN}; + | ^^ + +warning: unused import: `approx::assert_relative_eq` + --> src/synspec/math/eps.rs:59:9 + | +59 | use approx::assert_relative_eq; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: unused import: `Read` + --> src/tlusty/io/model.rs:9:26 + | +9 | use std::io::{BufWriter, Read}; + | ^^^^ + +warning: unreachable pattern + --> src/tlusty/io/format.rs:213:17 + | + 95 | '0'..='9' => { + | --------- matches all the relevant values +... +213 | '1' => { + | ^^^ no value can reach this + | + = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default + +warning: unused variable: `jidc` + --> src/tlusty/io/iroset.rs:279:16 + | +279 | let (jidn, jidc) = setup_depth_interpolation( + | ^^^^ help: if this is intentional, prefix it with an underscore: `_jidc` + | + = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default + +warning: unused variable: `xfrma` + --> src/tlusty/io/iroset.rs:290:9 + | +290 | let xfrma = splcom.frs1.ln(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_xfrma` + +warning: variable does not need to be mutable + --> src/tlusty/io/iroset.rs:557:25 + | +557 | let mut ijl = ((xfrma - frl.ln()) / dxnu) as i32 + splcom.nfrs1; + | ----^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default + +warning: unused variable: `colkur` + --> src/tlusty/io/iroset.rs:398:5 + | +398 | colkur: &mut ColKur, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_colkur` + +warning: unused variable: `iat` + --> src/tlusty/io/levcd.rs:322:13 + | +322 | let iat = params.levpar.iatm[params.ionpar.nfirst[ion] as usize] as usize; + | ^^^ help: if this is intentional, prefix it with an underscore: `_iat` + +warning: unused variable: `fid` + --> src/tlusty/io/linset.rs:267:13 + | +267 | let fid = OS0 * fij * dbeta; + | ^^^ help: if this is intentional, prefix it with an underscore: `_fid` + +warning: unused variable: `fr0_it` + --> src/tlusty/io/linset.rs:309:9 + | +309 | let fr0_it = trapar.fr0[itr_idx]; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fr0_it` + +warning: unused variable: `ilow_idx` + --> src/tlusty/io/linset.rs:312:9 + | +312 | let ilow_idx = (trapar.ilow[itr_idx] - 1) as usize; + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ilow_idx` + +warning: unused variable: `iup_idx` + --> src/tlusty/io/linset.rs:313:9 + | +313 | let iup_idx = (trapar.iup[itr_idx] - 1) as usize; + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iup_idx` + +warning: unused variable: `x0` + --> src/tlusty/io/linset.rs:422:5 + | +422 | x0: f64, + | ^^ help: if this is intentional, prefix it with an underscore: `_x0` + +warning: unused variable: `id` + --> src/tlusty/io/ltegr.rs:449:9 + | +449 | for id in 0..nd.min(final_nd) { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> src/tlusty/io/ltegrd.rs:258:9 + | +258 | let mut itgmax = config.itgmx0; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: value assigned to `nconit` is never read + --> src/tlusty/io/ltegrd.rs:262:9 + | +262 | nconit = 10; + | ^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default + +warning: value assigned to `idx` is never read + --> src/tlusty/io/nstpar.rs:782:17 + | + 782 | idx += 1; + | ^^^^^^^^ +... +1030 | ipconf: next_i32!(), + | ----------- in this macro invocation + | + = help: maybe it is overwritten before being read? + = note: this warning originates in the macro `next_i32` (in Nightly builds, run with -Z macro-backtrace for more info) + +warning: unused variable: `k1_next` + --> src/tlusty/io/nstpar.rs:1122:30 + | +1122 | let (k1_next, k2_next) = result.unwrap(); + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_k1_next` + +warning: unused variable: `mlambd` + --> src/tlusty/io/nstpar.rs:1156:5 + | +1156 | mlambd: usize, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_mlambd` + +warning: unused variable: `mmu` + --> src/tlusty/io/nstpar.rs:1157:5 + | +1157 | mmu: usize, + | ^^^ help: if this is intentional, prefix it with an underscore: `_mmu` + +warning: unused variable: `nfr0` + --> src/tlusty/io/odfset.rs:191:5 + | +191 | nfr0: &mut i32, + | ^^^^ help: if this is intentional, prefix it with an underscore: `_nfr0` + +warning: unused variable: `jj` + --> src/tlusty/io/odfset.rs:197:9 + | +197 | let jj: i32 = reader.read_value()?; + | ^^ help: if this is intentional, prefix it with an underscore: `_jj` + +warning: unused variable: `fr` + --> src/tlusty/io/odfset.rs:198:9 + | +198 | let fr: f64 = reader.read_value()?; + | ^^ help: if this is intentional, prefix it with an underscore: `_fr` + +warning: variable `flex` is assigned to, but never used + --> src/tlusty/io/outpri.rs:375:13 + | +375 | let mut flex = 0.0; + | ^^^^^^^^ + | + = note: consider using `_flex` instead + +warning: value assigned to `flex` is never read + --> src/tlusty/io/outpri.rs:407:21 + | +407 | flex += wd0c * frd / dtaum; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `flex` is never read + --> src/tlusty/io/outpri.rs:393:21 + | +393 | flex += wd0c * fluxw; + | ^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `fltt` + --> src/tlusty/io/outpri.rs:471:9 + | +471 | let fltt = SIG4P * config.teff * config.teff * config.teff * config.teff; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_fltt` + +warning: variable `pgint` is assigned to, but never used + --> src/tlusty/io/outpri.rs:474:9 + | +474 | let mut pgint = 0.0; + | ^^^^^^^^^ + | + = note: consider using `_pgint` instead + +warning: variable `ptint` is assigned to, but never used + --> src/tlusty/io/outpri.rs:475:9 + | +475 | let mut ptint = 0.0; + | ^^^^^^^^^ + | + = note: consider using `_ptint` instead + +warning: unused variable: `alpg` + --> src/tlusty/io/outpri.rs:542:13 + | +542 | let alpg = if p > 0.0 { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_alpg` + +warning: unused variable: `alpt` + --> src/tlusty/io/outpri.rs:547:13 + | +547 | let alpt = if model.ptotal[id] > 0.0 { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_alpt` + +warning: unused variable: `disip` + --> src/tlusty/io/outpri.rs:552:13 + | +552 | let disip = model.viscd[id] * model.dens[id] * config.edisc; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_disip` + +warning: value assigned to `pgint` is never read + --> src/tlusty/io/outpri.rs:526:9 + | +526 | pgint += pgint_inc; + | ^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `ptint` is never read + --> src/tlusty/io/outpri.rs:527:9 + | +527 | ptint += ptint_inc; + | ^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `id` + --> src/tlusty/io/resolv.rs:362:13 + | +362 | for id in 0..config.nd { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `id` + --> src/tlusty/io/resolv.rs:500:13 + | +500 | for id in 0..config.nd { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `cp` + --> src/tlusty/io/settrm.rs:177:13 + | +177 | let cp = t * den / dpdr; + | ^^ help: if this is intentional, prefix it with an underscore: `_cp` + +warning: unused variable: `abunt_val` + --> src/tlusty/io/tabini.rs:209:28 + | +209 | if let (Ok(abunt_val), Ok(abuno_val)) = + | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_abunt_val` + +warning: unused variable: `abuno_val` + --> src/tlusty/io/tabini.rs:209:43 + | +209 | if let (Ok(abunt_val), Ok(abuno_val)) = + | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_abuno_val` + +warning: unused variable: `indt` + --> src/tlusty/io/tabini.rs:543:59 + | +543 | let (tempvec, rhomat, elecgr, numrh, numtemp, numrho, indt, indr) = select_table_data( + | ^^^^ help: if this is intentional, prefix it with an underscore: `_indt` + +warning: unused variable: `indr` + --> src/tlusty/io/tabini.rs:543:65 + | +543 | let (tempvec, rhomat, elecgr, numrh, numtemp, numrho, indt, indr) = select_table_data( + | ^^^^ help: if this is intentional, prefix it with an underscore: `_indr` + +warning: variable does not need to be mutable + --> src/tlusty/io/tabini.rs:635:10 + | +635 | let (mut tempvec, mut rhomat, elecgr, numrh, numtemp, numrho, indt, indr) = select_table_data( + | ----^^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/io/tabini.rs:635:23 + | +635 | let (mut tempvec, mut rhomat, elecgr, numrh, numtemp, numrho, indt, indr) = select_table_data( + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/io/tabini.rs:869:9 + | +869 | let mut numfreq = ij; + | ----^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `ioptab` + --> src/tlusty/io/tabini.rs:927:5 + | +927 | ioptab: i32, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ioptab` + +warning: unused variable: `dsftmm` + --> src/tlusty/math/ali/alifr1.rs:479:9 + | +479 | let dsftmm = dsft1m; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dsftmm` + +warning: unused variable: `dsfnmm` + --> src/tlusty/math/ali/alifr1.rs:480:9 + | +480 | let dsfnmm = dsfn1m; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dsfnmm` + +warning: unused variable: `dsfmmm` + --> src/tlusty/math/ali/alifr1.rs:481:9 + | +481 | let dsfmmm = dsfm1m; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dsfmmm` + +warning: unused variable: `wwk` + --> src/tlusty/math/ali/alifr1.rs:769:13 + | +769 | let wwk = ww * abst_true; + | ^^^ help: if this is intentional, prefix it with an underscore: `_wwk` + +warning: unused variable: `wwk` + --> src/tlusty/math/ali/alifr1.rs:869:17 + | +869 | let wwk = ww * abst_true; + | ^^^ help: if this is intentional, prefix it with an underscore: `_wwk` + +warning: unused variable: `dsfn1p` + --> src/tlusty/math/ali/alifr3.rs:659:13 + | +659 | let dsfn1p = s0p * (rad.demn1[idp_idx] * emisip - (rad.dabn1[idp_idx] - model.sigec[ij - 1]) * abstp); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dsfn1p` + +warning: unused variable: `dsft1p` + --> src/tlusty/math/ali/alifr3.rs:660:13 + | +660 | let dsft1p = s0p * (rad.demt1[idp_idx] * emisip - rad.dabt1[idp_idx] * abstp); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dsft1p` + +warning: unused variable: `wwk` + --> src/tlusty/math/ali/alifr3.rs:712:17 + | +712 | let wwk = ww * abst_val; + | ^^^ help: if this is intentional, prefix it with an underscore: `_wwk` + +warning: unused variable: `srh` + --> src/tlusty/math/ali/alifr3.rs:797:13 + | +797 | let srh = model.sige * model.dens1[id_idx]; + | ^^^ help: if this is intentional, prefix it with an underscore: `_srh` + +warning: unused variable: `wwk` + --> src/tlusty/math/ali/alifr3.rs:800:13 + | +800 | let wwk = ww * abst_val; + | ^^^ help: if this is intentional, prefix it with an underscore: `_wwk` + +warning: unused variable: `s0_save` + --> src/tlusty/math/ali/alifr6.rs:436:13 + | +436 | let s0_save = s0; + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_s0_save` + +warning: unused variable: `dsft1_save` + --> src/tlusty/math/ali/alifr6.rs:437:13 + | +437 | let dsft1_save = dsft1; + | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dsft1_save` + +warning: unused variable: `dsfn1_save` + --> src/tlusty/math/ali/alifr6.rs:438:13 + | +438 | let dsfn1_save = dsfn1; + | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dsfn1_save` + +warning: unused variable: `jc` + --> src/tlusty/math/ali/alisk1.rs:460:17 + | +460 | let jc = (atomic_params.itra[jj * ii + jj] - 1) as usize; // ITRA(JJ, II) + | ^^ help: if this is intentional, prefix it with an underscore: `_jc` + +warning: unused variable: `ntrans` + --> src/tlusty/math/ali/alist1.rs:569:5 + | +569 | ntrans: usize, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ntrans` + +warning: unused variable: `ntrans` + --> src/tlusty/math/ali/alist1.rs:654:5 + | +654 | ntrans: usize, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ntrans` + +warning: unused variable: `xfrma` + --> src/tlusty/math/ali/ijali2.rs:116:9 + | +116 | let xfrma = splcom.frs1.abs().log10(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_xfrma` + +warning: variable does not need to be mutable + --> src/tlusty/math/ali/ijalis.rs:53:9 + | +53 | let mut out = IjalisOutput { + | ----^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/ali/ijalis.rs:179:9 + | +179 | let mut out = IjalisOutput { + | ----^^^ + | | + | help: remove this `mut` + +warning: value assigned to `iref` is never read + --> src/tlusty/math/ali/taufr1.rs:159:9 + | +159 | iref = nd; + | ^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `jj` + --> src/tlusty/math/atomic/cheav.rs:35:5 + | +35 | jj: usize, + | ^^ help: if this is intentional, prefix it with an underscore: `_jj` + +warning: unused variable: `sqrt_t` + --> src/tlusty/math/continuum/lte_opacity.rs:327:63 + | +327 | fn compute_mean_opacities_per_gram(params: &LteOpacityParams, sqrt_t: f64) -> (f64, f64, f64) { + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sqrt_t` + +warning: unused variable: `nd` + --> src/tlusty/math/continuum/opacf0.rs:1058:37 + | +1058 | fn get_prflin(id: usize, ij: usize, nd: usize, prflin: &[f32]) -> f32 { + | ^^ help: if this is intentional, prefix it with an underscore: `_nd` + +warning: unused variable: `nd` + --> src/tlusty/math/continuum/opacf0.rs:1072:5 + | +1072 | nd: usize, + | ^^ help: if this is intentional, prefix it with an underscore: `_nd` + +warning: unused variable: `nlevel` + --> src/tlusty/math/continuum/opacf0.rs:1078:5 + | +1078 | nlevel: usize, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_nlevel` + +warning: unused variable: `ij` + --> src/tlusty/math/continuum/opacf0.rs:1104:5 + | +1104 | ij: usize, + | ^^ help: if this is intentional, prefix it with an underscore: `_ij` + +warning: variable does not need to be mutable + --> src/tlusty/math/continuum/opacf1.rs:327:9 + | +327 | let mut sigma = cross(ibft, ij, precomp); + | ----^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> src/tlusty/math/continuum/opacf1.rs:321:5 + | +321 | id: usize, + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `ane` + --> src/tlusty/math/continuum/opacf1.rs:715:29 + | +715 | let ane = model.elec[id]; + | ^^^ help: if this is intentional, prefix it with an underscore: `_ane` + +warning: unused variable: `id` + --> src/tlusty/math/continuum/opacfa.rs:205:13 + | +205 | for id in 0..nd { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `sigec_val` + --> src/tlusty/math/continuum/opacfa.rs:206:17 + | +206 | let sigec_val = if ij_idx < params.sigec.len() { + | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sigec_val` + +warning: unused variable: `fr3inv` + --> src/tlusty/math/continuum/opacfa.rs:243:9 + | +243 | let fr3inv = frinv * frinv * frinv; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fr3inv` + +warning: unused variable: `lfre` + --> src/tlusty/math/continuum/opacfa.rs:244:9 + | +244 | let lfre = fr > params.frtabm; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_lfre` + +warning: variable does not need to be mutable + --> src/tlusty/math/continuum/opacfd.rs:524:21 + | +524 | let mut sgd = sg; + | ----^^^ + | | + | help: remove this `mut` + +warning: unused variable: `fr` + --> src/tlusty/math/continuum/opacfd.rs:502:5 + | +502 | fr: f64, + | ^^ help: if this is intentional, prefix it with an underscore: `_fr` + +warning: unused variable: `frinv` + --> src/tlusty/math/continuum/opacfd.rs:503:5 + | +503 | frinv: f64, + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frinv` + +warning: unused variable: `fr3inv` + --> src/tlusty/math/continuum/opacfd.rs:504:5 + | +504 | fr3inv: f64, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fr3inv` + +warning: unused variable: `izz` + --> src/tlusty/math/continuum/opacfd.rs:520:17 + | +520 | let izz = params.iz[params.iel[ii - 1] as usize]; + | ^^^ help: if this is intentional, prefix it with an underscore: `_izz` + +warning: unused variable: `imer` + --> src/tlusty/math/continuum/opacfd.rs:521:17 + | +521 | let imer = params.imrg[ii - 1] as usize; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_imer` + +warning: variable does not need to be mutable + --> src/tlusty/math/continuum/opacfd.rs:588:25 + | +588 | let mut sgd = sg; + | ----^^^ + | | + | help: remove this `mut` + +warning: unused variable: `fr` + --> src/tlusty/math/continuum/opacfd.rs:565:5 + | +565 | fr: f64, + | ^^ help: if this is intentional, prefix it with an underscore: `_fr` + +warning: unused variable: `frinv` + --> src/tlusty/math/continuum/opacfd.rs:566:5 + | +566 | frinv: f64, + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frinv` + +warning: unused variable: `fr3inv` + --> src/tlusty/math/continuum/opacfd.rs:567:5 + | +567 | fr3inv: f64, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fr3inv` + +warning: unused variable: `izz` + --> src/tlusty/math/continuum/opacfd.rs:581:17 + | +581 | let izz = params.iz[params.iel[ii - 1] as usize]; + | ^^^ help: if this is intentional, prefix it with an underscore: `_izz` + +warning: unused variable: `imer` + --> src/tlusty/math/continuum/opacfd.rs:582:17 + | +582 | let imer = params.imrg[ii - 1] as usize; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_imer` + +warning: variable does not need to be mutable + --> src/tlusty/math/continuum/opacfd.rs:641:21 + | +641 | let mut sf1 = params.sff3[ion * MDEPTH + id] * fr3inv; + | ----^^^ + | | + | help: remove this `mut` + +warning: unused variable: `frinv` + --> src/tlusty/math/continuum/opacfd.rs:623:5 + | +623 | frinv: f64, + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_frinv` + +warning: unused variable: `id` + --> src/tlusty/math/continuum/opacfd.rs:678:17 + | +678 | for id in 0..nd { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `id` + --> src/tlusty/math/continuum/opacfd.rs:686:17 + | +686 | for id in 0..nd { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `fr` + --> src/tlusty/math/continuum/opacfd.rs:788:5 + | +788 | fr: f64, + | ^^ help: if this is intentional, prefix it with an underscore: `_fr` + +warning: unused variable: `imodf` + --> src/tlusty/math/continuum/opacfd.rs:907:9 + | +907 | let imodf = 0; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_imodf` + +warning: unused variable: `t1` + --> src/tlusty/math/continuum/opacfd.rs:911:13 + | +911 | let t1 = t * (1.0 + DELT); + | ^^ help: if this is intentional, prefix it with an underscore: `_t1` + +warning: unused variable: `rho1` + --> src/tlusty/math/continuum/opacfd.rs:913:13 + | +913 | let rho1 = rho * (1.0 + DELR); + | ^^^^ help: if this is intentional, prefix it with an underscore: `_rho1` + +warning: unused variable: `ab2` + --> src/tlusty/math/continuum/opacfd.rs:927:13 + | +927 | let ab2 = 0.0; + | ^^^ help: if this is intentional, prefix it with an underscore: `_ab2` + +warning: unused variable: `x` + --> src/tlusty/math/continuum/opacfl.rs:245:9 + | +245 | let x = C14 * charg2_ion / fr; + | ^ + | +help: you might have meant to pattern match on the similarly named constant `H` + | +245 - let x = C14 * charg2_ion / fr; +245 + let tlusty::state::constants::H = C14 * charg2_ion / fr; + | +help: if this is intentional, prefix it with an underscore + | +245 | let _x = C14 * charg2_ion / fr; + | + + +warning: unused variable: `id` + --> src/tlusty/math/continuum/opactr.rs:353:13 + | +353 | for id in 0..nd { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `i` + --> src/tlusty/math/continuum/opactr.rs:357:21 + | +357 | for i in 0..nlevel { + | ^ help: if this is intentional, prefix it with an underscore: `_i` + +warning: unused variable: `ioply0` + --> src/tlusty/math/continuum/opactr.rs:367:13 + | +367 | let ioply0 = config.ioplym; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ioply0` + +warning: unused variable: `ahp` + --> src/tlusty/math/continuum/opadd.rs:270:18 + | +270 | let (ah, ahp): (f64, f64) = if model.ielh > 0 { + | ^^^ help: if this is intentional, prefix it with an underscore: `_ahp` + +warning: unused variable: `numtem0` + --> src/tlusty/math/continuum/opacity_table.rs:270:13 + | +270 | let numtem0 = dims.get(1).copied().unwrap_or(0) as usize; + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_numtem0` + +warning: unused variable: `numrh0` + --> src/tlusty/math/continuum/opacity_table.rs:271:13 + | +271 | let numrh0 = dims.get(2).copied().unwrap_or(0); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_numrh0` + +warning: unused variable: `rho` + --> src/tlusty/math/continuum/opacity_table.rs:736:17 + | +736 | let rho = table.rhomat[it][ir].exp(); + | ^^^ help: if this is intentional, prefix it with an underscore: `_rho` + +warning: unused variable: `del2` + --> src/tlusty/math/convection/concor.rs:176:13 + | +176 | let del2 = (t1 - tm) / (p - pm) / (t1 + tm) * (p + pm); + | ^^^^ help: if this is intentional, prefix it with an underscore: `_del2` + +warning: unused variable: `delta_val` + --> src/tlusty/math/convection/conout.rs:233:14 + | +233 | let (delta_val, flxcnv) = if id == 0 { + | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_val` + +warning: unused variable: `flxcnv` + --> src/tlusty/math/convection/conout.rs:233:25 + | +233 | let (delta_val, flxcnv) = if id == 0 { + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_flxcnv` + +warning: variable `vcon` is assigned to, but never used + --> src/tlusty/math/convection/conout.rs:294:17 + | +294 | let mut vcon = 0.0; + | ^^^^^^^^ + | + = note: consider using `_vcon` instead + +warning: value assigned to `vcon` is never read + --> src/tlusty/math/convection/conout.rs:311:17 + | +311 | vcon = convec_result.1; + | ^^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `pg0` + --> src/tlusty/math/convection/conout.rs:392:5 + | +392 | pg0: f64, + | ^^^ help: if this is intentional, prefix it with an underscore: `_pg0` + +warning: unused variable: `pr0` + --> src/tlusty/math/convection/conout.rs:393:5 + | +393 | pr0: f64, + | ^^^ help: if this is intentional, prefix it with an underscore: `_pr0` + +warning: unused variable: `flxtot` + --> src/tlusty/math/convection/conout.rs:397:5 + | +397 | flxtot: f64, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_flxtot` + +warning: variable does not need to be mutable + --> src/tlusty/math/convection/conref.rs:529:21 + | +529 | let mut dlt_new = deltaa + grdadb; + | ----^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `dltnd` + --> src/tlusty/math/convection/conref.rs:215:9 + | +215 | let dltnd = params.delta[nd - 1]; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_dltnd` + +warning: unused variable: `t0` + --> src/tlusty/math/convection/conref.rs:379:14 + | +379 | let (t0, p0, pg0, pr0, ab0, ppd) = if config.ilgder == 0 { + | ^^ help: if this is intentional, prefix it with an underscore: `_t0` + +warning: unused variable: `pg0` + --> src/tlusty/math/convection/conref.rs:577:5 + | +577 | pg0: f64, + | ^^^ help: if this is intentional, prefix it with an underscore: `_pg0` + +warning: unused variable: `flxtot` + --> src/tlusty/math/convection/conref.rs:582:5 + | +582 | flxtot: f64, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_flxtot` + +warning: unused variable: `pg0` + --> src/tlusty/math/convection/conref.rs:659:5 + | +659 | pg0: f64, + | ^^^ help: if this is intentional, prefix it with an underscore: `_pg0` + +warning: unused variable: `flxtot` + --> src/tlusty/math/convection/conref.rs:664:5 + | +664 | flxtot: f64, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_flxtot` + +warning: unused variable: `hr1` + --> src/tlusty/math/convection/contmd.rs:232:9 + | +232 | let hr1 = params.hr1; + | ^^^ help: if this is intentional, prefix it with an underscore: `_hr1` + +warning: unused variable: `pturb` + --> src/tlusty/math/convection/contmd.rs:253:17 + | +253 | let pturb = HALF * params.dens[id] * params.vturb[id].powi(2); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pturb` + +warning: unused variable: `vcon` + --> src/tlusty/math/convection/contmd.rs:329:25 + | +329 | let vcon = convec_out.vconv; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_vcon` + +warning: value assigned to `iconbe` is never read + --> src/tlusty/math/convection/contmd.rs:230:22 + | +230 | let mut iconbe = 0; + | ^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `chantm` is never read + --> src/tlusty/math/convection/contmd.rs:236:22 + | +236 | let mut chantm = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `delt0` is never read + --> src/tlusty/math/convection/contmd.rs:259:29 + | +259 | let mut delt0 = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `delt0` is never read + --> src/tlusty/math/convection/contmd.rs:425:13 + | +425 | delt0 = params.temp[id] - t; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `delt0` is never read + --> src/tlusty/math/convection/contmd.rs:430:17 + | +430 | delt0 = 0.0; + | ^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `prad` + --> src/tlusty/math/convection/contmp.rs:157:5 + | +157 | prad: f64, + | ^^^^ help: if this is intentional, prefix it with an underscore: `_prad` + +warning: unused variable: `reff_clamped` + --> src/tlusty/math/convection/contmp.rs:477:33 + | +477 | ... let reff_clamped = reff.clamp(0.0, UN); + | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_reff_clamped` + +warning: value assigned to `chantm` is never read + --> src/tlusty/math/convection/contmp.rs:352:22 + | +352 | let mut chantm = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `a` + --> src/tlusty/math/convection/convec.rs:275:9 + | +275 | let a = if params.config.flxtot > 0.0 { + | ^ + | +help: you might have meant to pattern match on the similarly named constant `H` + | +275 - let a = if params.config.flxtot > 0.0 { +275 + let tlusty::state::constants::H = if params.config.flxtot > 0.0 { + | +help: if this is intentional, prefix it with an underscore + | +275 | let _a = if params.config.flxtot > 0.0 { + | + + +warning: unused variable: `rho` + --> src/tlusty/math/eos/eldenc.rs:183:21 + | +183 | let rho = params.dens[id]; + | ^^^ help: if this is intentional, prefix it with an underscore: `_rho` + +warning: unused variable: `aein` + --> src/tlusty/math/eos/eldenc.rs:187:25 + | +187 | let aein = rhonen_out.ane; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_aein` + +warning: unused variable: `ipri` + --> src/tlusty/math/eos/eldens.rs:114:43 + | +114 | pub fn eldens_pure(params: &EldensParams, ipri: i32) -> EldensOutput { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_ipri` + +warning: unused variable: `xmax` + --> src/tlusty/math/eos/entene.rs:62:9 + | +62 | let xmax = 2.154e4 * (t / ane).sqrt().sqrt(); + | ^^^^ help: if this is intentional, prefix it with an underscore: `_xmax` + +warning: value assigned to `energ` is never read + --> src/tlusty/math/eos/entene.rs:47:21 + | +47 | let mut energ = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `entrop` is never read + --> src/tlusty/math/eos/entene.rs:48:22 + | +48 | let mut entrop = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: variable does not need to be mutable + --> src/tlusty/math/eos/moleq.rs:284:9 + | +284 | let mut cmol = vec![0.0_f64; 600]; + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `cmol` + --> src/tlusty/math/eos/moleq.rs:284:9 + | +284 | let mut cmol = vec![0.0_f64; 600]; + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cmol` + +warning: unused variable: `tkln25` + --> src/tlusty/math/eos/moleq.rs:301:9 + | +301 | let tkln25 = -tk.ln() * 2.5; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tkln25` + +warning: unused variable: `fplog` + --> src/tlusty/math/eos/moleq.rs:316:13 + | +316 | let fplog = russel_output.p[nelemi].log10(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_fplog` + +warning: value assigned to `wm0` is never read + --> src/tlusty/math/eos/rhonen.rs:95:19 + | +95 | let mut wm0 = wm; + | ^^ + | + = help: maybe it is overwritten before being read? + +warning: variable `spnplu` is assigned to, but never used + --> src/tlusty/math/eos/russel.rs:241:13 + | +241 | let mut spnplu = 0.0; + | ^^^^^^^^^^ + | + = note: consider using `_spnplu` instead + +warning: value assigned to `spnplu` is never read + --> src/tlusty/math/eos/russel.rs:266:25 + | +266 | spnplu += pmolj * (-natoj) as f64; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: variable does not need to be mutable + --> src/tlusty/math/eos/steqeq.rs:156:9 + | +156 | let mut elec_new = params.elec; + | ----^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `nre` + --> src/tlusty/math/hydrogen/bhe.rs:728:5 + | +728 | nre: usize, + | ^^^ help: if this is intentional, prefix it with an underscore: `_nre` + +warning: unused variable: `nzd` + --> src/tlusty/math/hydrogen/bhe.rs:1000:5 + | +1000 | nzd: usize, + | ^^^ help: if this is intentional, prefix it with an underscore: `_nzd` + +warning: unused variable: `nre` + --> src/tlusty/math/hydrogen/bhe.rs:1099:5 + | +1099 | nre: usize, + | ^^^ help: if this is intentional, prefix it with an underscore: `_nre` + +warning: unused variable: `nzd` + --> src/tlusty/math/hydrogen/bhe.rs:1100:5 + | +1100 | nzd: usize, + | ^^^ help: if this is intentional, prefix it with an underscore: `_nzd` + +warning: unused variable: `nzd` + --> src/tlusty/math/hydrogen/bhe.rs:1151:5 + | +1151 | nzd: usize, + | ^^^ help: if this is intentional, prefix it with an underscore: `_nzd` + +warning: unused variable: `ij` + --> src/tlusty/math/hydrogen/brte.rs:235:9 + | +235 | let ij = 1; + | ^^ help: if this is intentional, prefix it with an underscore: `_ij` + +warning: value assigned to `a2` is never read + --> src/tlusty/math/hydrogen/brte.rs:446:22 + | +446 | let mut a2 = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `c2` is never read + --> src/tlusty/math/hydrogen/brte.rs:447:22 + | +447 | let mut c2 = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brte.rs:614:13 + | +614 | let mut as_s = 0.0; + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brte.rs:616:13 + | +616 | let mut a2 = 0.0; + | ----^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brte.rs:618:13 + | +618 | let mut a3 = 0.0; + | ----^^ + | | + | help: remove this `mut` + +warning: value assigned to `s0` is never read + --> src/tlusty/math/hydrogen/brte.rs:621:22 + | +621 | let mut s0 = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `id` + --> src/tlusty/math/hydrogen/brte.rs:734:5 + | +734 | id: usize, + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `nse` + --> src/tlusty/math/hydrogen/brte.rs:741:5 + | +741 | nse: usize, + | ^^^ help: if this is intentional, prefix it with an underscore: `_nse` + +warning: unused variable: `chielm` + --> src/tlusty/math/hydrogen/brte.rs:750:13 + | +750 | let chielm = params.scatm[ij_idx]; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_chielm` + +warning: unused variable: `nhe` + --> src/tlusty/math/hydrogen/brtez.rs:223:5 + | +223 | nhe: usize, + | ^^^ help: if this is intentional, prefix it with an underscore: `_nhe` + +warning: unused variable: `gn` + --> src/tlusty/math/hydrogen/brtez.rs:228:5 + | +228 | gn: f64, + | ^^ help: if this is intentional, prefix it with an underscore: `_gn` + +warning: value assigned to `a3` is never read + --> src/tlusty/math/hydrogen/brtez.rs:412:22 + | +412 | let mut a3 = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `c3` is never read + --> src/tlusty/math/hydrogen/brtez.rs:413:22 + | +413 | let mut c3 = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:622:13 + | +622 | let mut as_val = 0.0; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:624:13 + | +624 | let mut a2 = 0.0; + | ----^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:626:13 + | +626 | let mut a3 = 0.0; + | ----^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:628:13 + | +628 | let mut alf2 = 0.0; + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `gn` + --> src/tlusty/math/hydrogen/brtez.rs:597:5 + | +597 | gn: f64, + | ^^ help: if this is intentional, prefix it with an underscore: `_gn` + +warning: unused variable: `alf2` + --> src/tlusty/math/hydrogen/brtez.rs:628:13 + | +628 | let mut alf2 = 0.0; + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alf2` + +warning: value assigned to `gam2` is never read + --> src/tlusty/math/hydrogen/brtez.rs:630:24 + | +630 | let mut gam2 = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:784:13 + | +784 | let mut as_val = 0.0; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:785:13 + | +785 | let mut a2 = 0.0; + | ----^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:786:13 + | +786 | let mut a3 = 0.0; + | ----^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:787:13 + | +787 | let mut alf2 = 0.0; + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `gn` + --> src/tlusty/math/hydrogen/brtez.rs:765:5 + | +765 | gn: f64, + | ^^ help: if this is intentional, prefix it with an underscore: `_gn` + +warning: value assigned to `gam2` is never read + --> src/tlusty/math/hydrogen/brtez.rs:788:24 + | +788 | let mut gam2 = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `srt` + --> src/tlusty/math/hydrogen/colhe.rs:263:9 + | +263 | let srt = t.sqrt(); + | ^^^ help: if this is intentional, prefix it with an underscore: `_srt` + +warning: unused variable: `id` + --> src/tlusty/math/hydrogen/colis.rs:214:9 + | +214 | let id = params.id; + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `te` + --> src/tlusty/math/hydrogen/colis.rs:334:33 + | +334 | ... let te = t; + | ^^ help: if this is intentional, prefix it with an underscore: `_te` + +warning: unused variable: `ia` + --> src/tlusty/math/hydrogen/colis.rs:361:29 + | +361 | let ia = params.numat[params.iatm[i - 1] - 1]; + | ^^ help: if this is intentional, prefix it with an underscore: `_ia` + +warning: unused variable: `u0` + --> src/tlusty/math/hydrogen/colis.rs:495:5 + | +495 | u0: f64, + | ^^ help: if this is intentional, prefix it with an underscore: `_u0` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/hesol6.rs:89:9 + | +89 | let mut hr1 = if params.iter == 0 { + | ----^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/hesol6.rs:134:9 + | +134 | let mut iach0 = iach - 3; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `iacdh` + --> src/tlusty/math/hydrogen/hesol6.rs:133:9 + | +133 | let iacdh = 4; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_iacdh` + +warning: unused variable: `id_1` + --> src/tlusty/math/hydrogen/hesol6.rs:141:17 + | +141 | let id_1 = id + 1; // 1-indexed + | ^^^^ help: if this is intentional, prefix it with an underscore: `_id_1` + +warning: unused variable: `n0h` + --> src/tlusty/math/hydrogen/lymlin.rs:159:9 + | +159 | let n0h = params.n0h; + | ^^^ help: if this is intentional, prefix it with an underscore: `_n0h` + +warning: unused variable: `n1h` + --> src/tlusty/math/hydrogen/lymlin.rs:160:9 + | +160 | let n1h = params.n1h; + | ^^^ help: if this is intentional, prefix it with an underscore: `_n1h` + +warning: unused variable: `nkh` + --> src/tlusty/math/hydrogen/lymlin.rs:161:9 + | +161 | let nkh = params.nkh; + | ^^^ help: if this is intentional, prefix it with an underscore: `_nkh` + +warning: unused variable: `nlh` + --> src/tlusty/math/hydrogen/lymlin.rs:162:9 + | +162 | let nlh = params.nlh; + | ^^^ help: if this is intentional, prefix it with an underscore: `_nlh` + +warning: unused variable: `wl` + --> src/tlusty/math/hydrogen/lymlin.rs:171:9 + | +171 | let wl = C18 / fr; + | ^^ help: if this is intentional, prefix it with an underscore: `_wl` + +warning: unused variable: `n1h` + --> src/tlusty/math/hydrogen/lymlin.rs:209:9 + | +209 | let n1h = params.n1h; + | ^^^ help: if this is intentional, prefix it with an underscore: `_n1h` + +warning: unused variable: `ibf` + --> src/tlusty/math/hydrogen/sigave.rs:91:5 + | +91 | ibf: &[i32], + | ^^^ help: if this is intentional, prefix it with an underscore: `_ibf` + +warning: unused variable: `enion` + --> src/tlusty/math/hydrogen/sigave.rs:92:5 + | +92 | enion: &[f64], + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_enion` + +warning: unused variable: `i` + --> src/tlusty/math/hydrogen/sigave.rs:99:9 + | +99 | for i in nl1..=nl2 { + | ^ help: if this is intentional, prefix it with an underscore: `_i` + +warning: value assigned to `ecmr` is never read + --> src/tlusty/math/hydrogen/sigave.rs:118:13 + | +118 | ecmr = XIFE.get(izrr as usize - 1).copied().unwrap_or(0.0) - ecmr; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `iatm_ii` + --> src/tlusty/math/hydrogen/sigk.rs:319:9 + | +319 | let iatm_ii = atomic.levpar.iatm[ii]; + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iatm_ii` + +warning: unused variable: `betad` + --> src/tlusty/math/interpolation/intlem.rs:61:9 + | +61 | let betad = dbeta * dop; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_betad` + +warning: unused variable: `inppar` + --> src/tlusty/math/io/princ.rs:187:5 + | +187 | inppar: &InpPar, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_inppar` + +warning: unused variable: `sbf_output` + --> src/tlusty/math/io/princ.rs:307:13 + | +307 | let sbf_output = get_sbf(id, params.model, params.atomic); + | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sbf_output` + +warning: unused variable: `sg` + --> src/tlusty/math/io/princ.rs:337:17 + | +337 | let sg = if is_line { + | ^^ help: if this is intentional, prefix it with an underscore: `_sg` + +warning: variable `psum` is assigned to, but never used + --> src/tlusty/math/io/prnt.rs:159:17 + | +159 | let mut psum = 0.0_f64; + | ^^^^^^^^ + | + = note: consider using `_psum` instead + +warning: variable `psuu` is assigned to, but never used + --> src/tlusty/math/io/prnt.rs:160:17 + | +160 | let mut psuu = 0.0_f64; + | ^^^^^^^^ + | + = note: consider using `_psuu` instead + +warning: value assigned to `psum` is never read + --> src/tlusty/math/io/prnt.rs:164:17 + | +164 | psum += levpop.popul[j][id]; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `psuu` is never read + --> src/tlusty/math/io/prnt.rs:179:21 + | +179 | psuu += usum_val * ane * levpop.popul[j][id]; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `level_idx` + --> src/tlusty/math/io/rdata.rs:126:5 + | +126 | level_idx: usize, + | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_level_idx` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/rdata.rs:788:13 + | +788 | let mut level = process_level(input, i, zz, iq, params.ispodf); + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/rdata.rs:815:9 + | +815 | let mut nhod = 0; + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `teff` + --> src/tlusty/math/io/rdata.rs:930:5 + | +930 | teff: f64, + | ^^^^ help: if this is intentional, prefix it with an underscore: `_teff` + +warning: unused variable: `ilow_val` + --> src/tlusty/math/io/rdatax.rs:104:5 + | +104 | ilow_val: i32, + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ilow_val` + +warning: unused variable: `itx` + --> src/tlusty/math/io/rdatax.rs:310:10 + | +310 | for (itx, tdata) in transitions.iter().enumerate() { + | ^^^ help: if this is intentional, prefix it with an underscore: `_itx` + +warning: unused variable: `total` + --> src/tlusty/math/io/timing.rs:77:21 + | +77 | let total = now.elapsed().as_secs_f64(); // 这里简化处理 + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_total` + +warning: variable `x` is assigned to, but never used + --> src/tlusty/math/io/visini.rs:149:13 + | +149 | let mut x = 0.0; + | ^^^^^ + | + = note: consider using `_x` instead +help: you might have meant to pattern match on the similarly named constant `H` + | +149 - let mut x = 0.0; +149 + let tlusty::state::constants::H = 0.0; + | + +warning: value assigned to `x` is never read + --> src/tlusty/math/io/visini.rs:156:17 + | +156 | / x += HALF * (tvisc[id] / params.dens[id] + tvisc[id - 1] / params.dens[id - 1]) +157 | | * (params.dm[id] - params.dm[id - 1]); + | |_________________________________________________________^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `nquant_il` + --> src/tlusty/math/odf/odf1.rs:135:9 + | +135 | let nquant_il = params.atomic.levpar.nquant[il]; + | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nquant_il` + +warning: unused variable: `n1h` + --> src/tlusty/math/odf/odf1.rs:139:9 + | +139 | let n1h = params.atomic.ionpar.nlast[ielo_idx]; + | ^^^ help: if this is intentional, prefix it with an underscore: `_n1h` + +warning: unused variable: `xj` + --> src/tlusty/math/odf/odf1.rs:198:13 + | +198 | let xj = j as f64; + | ^^ help: if this is intentional, prefix it with an underscore: `_xj` + +warning: unused variable: `xd` + --> src/tlusty/math/odf/odfhst.rs:90:17 + | +90 | let xd = beta * betad1; + | ^^ help: if this is intentional, prefix it with an underscore: `_xd` + +warning: unused variable: `ifrq0` + --> src/tlusty/math/odf/odfhys.rs:191:13 + | +191 | let ifrq0 = params.trapar.ifr0[itr]; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ifrq0` + +warning: unused variable: `ifrq1` + --> src/tlusty/math/odf/odfhys.rs:192:13 + | +192 | let ifrq1 = params.trapar.ifr1[itr]; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ifrq1` + +warning: variable does not need to be mutable + --> src/tlusty/math/opacity/allardt.rs:88:9 + | +88 | let mut prof = 0.0; + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `prof` + --> src/tlusty/math/opacity/allardt.rs:88:9 + | +88 | let mut prof = 0.0; + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prof` + +warning: unused variable: `ij` + --> src/tlusty/math/opacity/inifrc.rs:243:13 + | +243 | for ij in 0..params.nfreqc { + | ^^ help: if this is intentional, prefix it with an underscore: `_ij` + +warning: unused variable: `nend` + --> src/tlusty/math/opacity/inifrc.rs:270:9 + | +270 | let nend = params.nftail; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_nend` + +warning: variable does not need to be mutable + --> src/tlusty/math/opacity/inifrs.rs:248:9 + | +248 | let mut nnu = 2 * config.natom + 3; + | ----^^^ + | | + | help: remove this `mut` + +warning: unused variable: `third` + --> src/tlusty/math/opacity/inifrs.rs:196:9 + | +196 | let third = UN / 3.0; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_third` + +warning: unused variable: `nfta1` + --> src/tlusty/math/opacity/inifrs.rs:426:13 + | +426 | let nfta1 = nftail / 2 + 1; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_nfta1` + +warning: unused variable: `xbl` + --> src/tlusty/math/opacity/inifrs.rs:636:9 + | +636 | let xbl = frs1.ln(); + | ^^^ help: if this is intentional, prefix it with an underscore: `_xbl` + +warning: value assigned to `nfreqc` is never read + --> src/tlusty/math/opacity/inifrs.rs:417:22 + | +417 | let mut nfreqc = 1_usize; + | ^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `dnx` + --> src/tlusty/math/opacity/inifrt.rs:219:9 + | +219 | let dnx = UN - UN / (njc as f64); + | ^^^ help: if this is intentional, prefix it with an underscore: `_dnx` + +warning: unused variable: `nf` + --> src/tlusty/math/opacity/inilam.rs:402:29 + | +402 | let nf = atomic.nfirst[ion] as usize; + | ^^ help: if this is intentional, prefix it with an underscore: `_nf` + +warning: unused variable: `nl` + --> src/tlusty/math/opacity/inilam.rs:403:29 + | +403 | let nl = atomic.nlast[ion] as usize; + | ^^ help: if this is intentional, prefix it with an underscore: `_nl` + +warning: unused variable: `id` + --> src/tlusty/math/opacity/inilam.rs:603:13 + | +603 | for id in 0..nd { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `ij` + --> src/tlusty/math/opacity/inilam.rs:673:9 + | +673 | for ij in 0..nfreq { + | ^^ help: if this is intentional, prefix it with an underscore: `_ij` + +warning: unused variable: `alpha0` + --> src/tlusty/math/opacity/inpdis.rs:133:9 + | +133 | let alpha0 = params.alphav; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha0` + +warning: unused variable: `rstar` + --> src/tlusty/math/opacity/inpdis.rs:138:18 + | +138 | let (aa, rstar, xmstar) = if params.xmstar < 0.0 { + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_rstar` + +warning: unused variable: `chih` + --> src/tlusty/math/opacity/inpdis.rs:188:17 + | +188 | let chih = 0.39; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_chih` + +warning: unused variable: `params` + --> src/tlusty/math/opacity/lemini.rs:143:20 + | +143 | pub fn lemini_pure(params: &LeminiParams, table_data: &LemkeTableData) -> LeminiOutput { + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` + +warning: unused variable: `wlhyd_last` + --> src/tlusty/math/opacity/lemini.rs:192:17 + | +192 | let wlhyd_last = if nwl > 0 { wlhyd[nwl - 1] } else { 0.0 }; + | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wlhyd_last` + +warning: unused variable: `params` + --> src/tlusty/math/opacity/levset.rs:143:5 + | +143 | params: &LevsetParams, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_params` + +warning: unused variable: `dop1` + --> src/tlusty/math/opacity/linpro.rs:112:15 + | +112 | let (dop, dop1) = compute_doppler(params, itr, id); + | ^^^^ help: if this is intentional, prefix it with an underscore: `_dop1` + +warning: unused variable: `rtefr1_fn` + --> src/tlusty/math/opacity/linsel.rs:217:5 + | +217 | rtefr1_fn: G, + | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rtefr1_fn` + +warning: value assigned to `nfk1` is never read + --> src/tlusty/math/opacity/linsel.rs:385:24 + | +385 | let mut nfk1 = nfk0; + | ^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `jj` + --> src/tlusty/math/opacity/prdini.rs:62:17 + | +62 | let jj = iup[itr] as usize; + | ^^ help: if this is intentional, prefix it with an underscore: `_jj` + +warning: unused variable: `xmax` + --> src/tlusty/math/partition/partf.rs:137:9 + | +137 | let xmax = params.xmax; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_xmax` + +warning: unused variable: `inpc` + --> src/tlusty/math/population/bpop.rs:101:9 + | +101 | let inpc = config.matkey.inpc; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_inpc` + +warning: variable does not need to be mutable + --> src/tlusty/math/population/bpopc.rs:233:9 + | +233 | let mut apm = 0.0_f64; + | ----^^^ + | | + | help: remove this `mut` + +warning: unused variable: `nse` + --> src/tlusty/math/population/bpopc.rs:177:9 + | +177 | let nse = params.nfreqe + params.inse - 1; + | ^^^ help: if this is intentional, prefix it with an underscore: `_nse` + +warning: unused variable: `nse` + --> src/tlusty/math/population/bpope.rs:165:9 + | +165 | let nse = config.nfreqe + config.inse - 1; + | ^^^ help: if this is intentional, prefix it with an underscore: `_nse` + +warning: unused variable: `hkt` + --> src/tlusty/math/population/bpope.rs:172:9 + | +172 | let hkt = hk / model.temp[id_idx]; + | ^^^ help: if this is intentional, prefix it with an underscore: `_hkt` + +warning: unused variable: `fr3inv` + --> src/tlusty/math/population/bpope.rs:189:13 + | +189 | let fr3inv = frinv * frinv * frinv; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fr3inv` + +warning: unused variable: `n0hn` + --> src/tlusty/math/population/bpopt.rs:173:9 + | +173 | let n0hn = if params.ielh > 0 { + | ^^^^ help: if this is intentional, prefix it with an underscore: `_n0hn` + +warning: unused variable: `tk` + --> src/tlusty/math/population/bpopt.rs:180:9 + | +180 | let tk = hkt / H; + | ^^ help: if this is intentional, prefix it with an underscore: `_tk` + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/radpre.rs:270:9 + | +270 | let mut prd0 = 0.0; + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `pgrd1` + --> src/tlusty/math/radiative/radpre.rs:269:9 + | +269 | let pgrd1 = PGRD / model.dens1[0]; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pgrd1` + +warning: variable `taur` is assigned to, but never used + --> src/tlusty/math/radiative/radpre.rs:284:9 + | +284 | let mut taur = HALF * model.dedm1 * model.abrosd[0] * model.dens[0]; + | ^^^^^^^^ + | + = note: consider using `_taur` instead + +warning: variable `ggrt0` is assigned to, but never used + --> src/tlusty/math/radiative/radpre.rs:311:13 + | +311 | let mut ggrt0 = ggrt[id]; + | ^^^^^^^^^ + | + = note: consider using `_ggrt0` instead + +warning: value assigned to `taur` is never read + --> src/tlusty/math/radiative/radpre.rs:290:13 + | +290 | taur += dtaur; + | ^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `ggrt0` is never read + --> src/tlusty/math/radiative/radpre.rs:344:13 + | +344 | ggrt0 -= gradi[ij]; + | ^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `ggrt0` is never read + --> src/tlusty/math/radiative/radpre.rs:318:21 + | +318 | ggrt0 -= gradi[ij]; + | ^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `id` + --> src/tlusty/math/radiative/radpre.rs:414:5 + | +414 | id: usize, + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rteang.rs:63:9 + | +63 | let mut nmu: usize; + | ----^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rtecf1.rs:360:17 + | +360 | let mut fff = (sum + aaa[id] * (bbb[id - 1] / ccc[id - 1] - UN) * ddd[id - 1]) / ccc[id]; + | ----^^^ + | | + | help: remove this `mut` + +warning: unused variable: `fr15` + --> src/tlusty/math/radiative/rtecf1.rs:123:13 + | +123 | let fr15 = fr * 1.0e-15; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_fr15` + +warning: variable `u0` is assigned to, but never used + --> src/tlusty/math/radiative/rtecf1.rs:276:9 + | +276 | let mut u0 = 0.0; + | ^^^^^^ + | + = note: consider using `_u0` instead + +warning: value assigned to `rup` is never read + --> src/tlusty/math/radiative/rtecf1.rs:161:27 + | +161 | let mut rup = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `u0` is never read + --> src/tlusty/math/radiative/rtecf1.rs:289:13 + | +289 | u0 += ex * wtmu_i; + | ^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rtedf1.rs:105:9 + | +105 | let mut alb1 = 0.0; + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rtedf1.rs:145:13 + | +145 | let mut us0 = 0.0; + | ----^^^ + | | + | help: remove this `mut` + +warning: unused variable: `twothr` + --> src/tlusty/math/radiative/rtedf1.rs:91:9 + | +91 | let twothr = TWO / 3.0; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_twothr` + +warning: unused variable: `taumin` + --> src/tlusty/math/radiative/rtedf1.rs:102:9 + | +102 | let taumin = model.abso1[0] * model.dedm1; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_taumin` + +warning: unused variable: `alb1` + --> src/tlusty/math/radiative/rtedf1.rs:105:9 + | +105 | let mut alb1 = 0.0; + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alb1` + +warning: variable `u0` is assigned to, but never used + --> src/tlusty/math/radiative/rtedf1.rs:124:9 + | +124 | let mut u0 = 0.0; + | ^^^^^^ + | + = note: consider using `_u0` instead + +warning: variable `qq0` is assigned to, but never used + --> src/tlusty/math/radiative/rtedf1.rs:125:9 + | +125 | let mut qq0 = 0.0; + | ^^^^^^^ + | + = note: consider using `_qq0` instead + +warning: unused variable: `us0` + --> src/tlusty/math/radiative/rtedf1.rs:145:13 + | +145 | let mut us0 = 0.0; + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_us0` + +warning: value assigned to `ah` is never read + --> src/tlusty/math/radiative/rtedf1.rs:121:18 + | +121 | let mut ah = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `ahout` is never read + --> src/tlusty/math/radiative/rtedf1.rs:122:21 + | +122 | let mut ahout = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `ahd` is never read + --> src/tlusty/math/radiative/rtedf1.rs:123:19 + | +123 | let mut ahd = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `u0` is never read + --> src/tlusty/math/radiative/rtedf1.rs:143:9 + | +143 | u0 = 0.0; + | ^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `u0` is never read + --> src/tlusty/math/radiative/rtedf1.rs:234:13 + | +234 | u0 += wtmu_i * rim[0]; // 粗略对应 + | ^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `qq0` is never read + --> src/tlusty/math/radiative/rtedf1.rs:144:9 + | +144 | qq0 = 0.0; + | ^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `qq0` is never read + --> src/tlusty/math/radiative/rtedf1.rs:235:13 + | +235 | qq0 += amu_i * wtmu_i * rim[0]; // 粗略对应 + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rtedf2.rs:107:9 + | +107 | let mut us0 = 0.0f64; + | ----^^^ + | | + | help: remove this `mut` + +warning: unused variable: `us0` + --> src/tlusty/math/radiative/rtedf2.rs:107:9 + | +107 | let mut us0 = 0.0f64; + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_us0` + +warning: variable `us0_inner` is assigned to, but never used + --> src/tlusty/math/radiative/rtedf2.rs:121:13 + | +121 | let mut us0_inner = 0.0f64; + | ^^^^^^^^^^^^^ + | + = note: consider using `_us0_inner` instead + +warning: unused variable: `j_nd` + --> src/tlusty/math/radiative/rtedf2.rs:222:17 + | +222 | let j_nd = model.totrad.rad[ij][nd - 1]; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_j_nd` + +warning: unused variable: `j_nd1` + --> src/tlusty/math/radiative/rtedf2.rs:223:17 + | +223 | let j_nd1 = model.totrad.rad[ij][nd - 2]; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_j_nd1` + +warning: value assigned to `ah` is never read + --> src/tlusty/math/radiative/rtedf2.rs:104:18 + | +104 | let mut ah = 0.0f64; + | ^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `u0` is never read + --> src/tlusty/math/radiative/rtedf2.rs:105:18 + | +105 | let mut u0 = 0.0f64; + | ^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `qq0` is never read + --> src/tlusty/math/radiative/rtedf2.rs:106:19 + | +106 | let mut qq0 = 0.0f64; + | ^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `us0_inner` is never read + --> src/tlusty/math/radiative/rtedf2.rs:146:17 + | +146 | us0_inner += p0 / tamm * wtmu_i; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `ex` is never read + --> src/tlusty/math/radiative/rtedf2.rs:138:26 + | +138 | let mut ex = UN; + | ^^ + | + = help: maybe it is overwritten before being read? + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rtefr1.rs:218:10 + | +218 | let (mut pland_var, mut dplan_var) = if model.tempbd > 0.0 { + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rtefr1.rs:218:25 + | +218 | let (mut pland_var, mut dplan_var) = if model.tempbd > 0.0 { + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rtefr1.rs:226:9 + | +226 | let mut dplan_val = (pland_var - dplan_var) / dt_nd2; + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `tau` + --> src/tlusty/math/radiative/rtefr1.rs:267:9 + | +267 | let tau = &opt_depth.tau; + | ^^^ help: if this is intentional, prefix it with an underscore: `_tau` + +warning: value assigned to `ex` is never read + --> src/tlusty/math/radiative/rtefr1.rs:299:18 + | +299 | let mut ex = UN; + | ^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `ah` + --> src/tlusty/math/radiative/rteint.rs:296:13 + | +296 | let ah = 0.0; + | ^^ help: if this is intentional, prefix it with an underscore: `_ah` + +warning: unused variable: `u0` + --> src/tlusty/math/radiative/rteint.rs:313:13 + | +313 | let u0 = 0.0; + | ^^ help: if this is intentional, prefix it with an underscore: `_u0` + +warning: unused variable: `qq0` + --> src/tlusty/math/radiative/rteint.rs:314:13 + | +314 | let qq0 = 0.0; + | ^^^ help: if this is intentional, prefix it with an underscore: `_qq0` + +warning: unused variable: `us0` + --> src/tlusty/math/radiative/rteint.rs:315:13 + | +315 | let us0 = 0.0; + | ^^^ help: if this is intentional, prefix it with an underscore: `_us0` + +warning: unused variable: `qq0` + --> src/tlusty/math/radiative/rteint.rs:341:13 + | +341 | let qq0 = 0.0; + | ^^^ help: if this is intentional, prefix it with an underscore: `_qq0` + +warning: unused variable: `us0` + --> src/tlusty/math/radiative/rteint.rs:342:13 + | +342 | let us0 = 0.0; + | ^^^ help: if this is intentional, prefix it with an underscore: `_us0` + +warning: value assigned to `ex` is never read + --> src/tlusty/math/radiative/rteint.rs:330:22 + | +330 | let mut ex = UN; + | ^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `id` + --> src/tlusty/math/radiative/trmdrt.rs:89:9 + | +89 | let id = params.id; + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `p0` + --> src/tlusty/math/radiative/trmdrt.rs:106:9 + | +106 | let p0 = result0.fp; + | ^^ help: if this is intentional, prefix it with an underscore: `_p0` + +warning: unused variable: `jc` + --> src/tlusty/math/rates/rates1.rs:451:17 + | +451 | let jc = model.ipzero[jj * nlevel + ii]; // 简化,使用 ipzero 作为 itra 的替代 + | ^^ help: if this is intentional, prefix it with an underscore: `_jc` + +warning: unused variable: `fluxw` + --> src/tlusty/math/rates/ratsp1.rs:299:13 + | +299 | let fluxw = model.w[ij] * model.rad1[0] * model.fh[ij]; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_fluxw` + +warning: unused variable: `npc` + --> src/tlusty/math/solvers/matcon.rs:144:9 + | +144 | let npc = cfg.nfreqe + cfg.inpc as usize; + | ^^^ help: if this is intentional, prefix it with an underscore: `_npc` + +warning: unused variable: `anerel` + --> src/tlusty/math/solvers/matcon.rs:148:9 + | +148 | let anerel = params.elec[0] / (params.dens[0] / params.wmm[0] + params.elec[0]); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_anerel` + +warning: unused variable: `gravd` + --> src/tlusty/math/solvers/matcon.rs:262:9 + | +262 | let gravd = if cfg.idisk == 1 { + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gravd` + +warning: unused variable: `vcon` + --> src/tlusty/math/solvers/matcon.rs:284:9 + | +284 | let vcon = convec_out.vconv; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_vcon` + +warning: unused variable: `izscal` + --> src/tlusty/math/solvers/rhsgen.rs:435:9 + | +435 | let izscal = params.config.izscal; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_izscal` + +warning: unused variable: `isplin` + --> src/tlusty/math/solvers/rhsgen.rs:440:9 + | +440 | let isplin = if params.config.isplin >= 5 { + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_isplin` + +warning: variable `c2` is assigned to, but never used + --> src/tlusty/math/solvers/rhsgen.rs:652:13 + | +652 | let mut c2 = 0.0; + | ^^^^^^ + | + = note: consider using `_c2` instead + +warning: value assigned to `cs` is never read + --> src/tlusty/math/solvers/rhsgen.rs:651:22 + | +651 | let mut cs = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `c2` is never read + --> src/tlusty/math/solvers/rhsgen.rs:670:13 + | +670 | c2 = cs / absop; + | ^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `scatm` + --> src/tlusty/math/solvers/rhsgen.rs:834:17 + | +834 | let scatm = if ij < params.freqm.scat.len() { params.freqm.scat[ij] } else { 0.0 }; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_scatm` + +warning: unused variable: `nre` + --> src/tlusty/math/solvers/rybchn.rs:152:9 + | +152 | let nre = config.nfreqe_p1; + | ^^^ help: if this is intentional, prefix it with an underscore: `_nre` + +warning: unused variable: `x2` + --> src/tlusty/math/solvers/rybchn.rs:398:13 + | +398 | let x2 = x * x; + | ^^ help: if this is intentional, prefix it with an underscore: `_x2` + +warning: unused variable: `gravd` + --> src/tlusty/math/solvers/rybene.rs:175:22 + | +175 | let (flxtot, gravd) = if cfg.idisk == 0 { + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gravd` + +warning: unused variable: `ddtm` + --> src/tlusty/math/solvers/rybene.rs:230:13 + | +230 | let ddtm: f64; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_ddtm` + +warning: value assigned to `dhcdtp_val` is never read + --> src/tlusty/math/solvers/rybene.rs:297:13 + | +297 | dhcdtp_val = 0.0; + | ^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `cprad` + --> src/tlusty/math/solvers/rybheq.rs:201:13 + | +201 | let cprad: f64 = 2.5213e-15; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_cprad` + +warning: variable does not need to be mutable + --> src/tlusty/math/solvers/rybsol.rs:322:9 + | +322 | let mut au = vec![0.0; MDEPTH]; + | ----^^ + | | + | help: remove this `mut` + +warning: unused variable: `nlevel` + --> src/tlusty/math/solvers/rybsol.rs:290:9 + | +290 | let nlevel = cfg.nlevel; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_nlevel` + +warning: unused variable: `au` + --> src/tlusty/math/solvers/rybsol.rs:322:9 + | +322 | let mut au = vec![0.0; MDEPTH]; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_au` + +warning: unused variable: `nn` + --> src/tlusty/math/solvers/solve.rs:135:16 + | +135 | pub fn new(nn: usize) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_nn` + +warning: unused variable: `lmka` + --> src/tlusty/math/solvers/solve.rs:264:9 + | +264 | let lmka = config.iter < config.niter && config.kant.get((config.iter + 1) as usize).copied().unwrap_or(0) == 1; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_lmka` + +warning: unused variable: `prev_mat` + --> src/tlusty/math/solvers/solve.rs:279:17 + | +279 | let prev_mat = &matrices[id - 1]; + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_prev_mat` + +warning: unused variable: `psi0` + --> src/tlusty/math/solvers/solve.rs:360:17 + | +360 | let psi0 = matrices[id].psi0.clone(); + | ^^^^ help: if this is intentional, prefix it with an underscore: `_psi0` + +warning: unused variable: `litek` + --> src/tlusty/math/solvers/solve.rs:475:9 + | +475 | let litek = config.iter == 7 || config.iter == 11 || config.iter == 15; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_litek` + +warning: unused variable: `sto_a` + --> src/tlusty/math/solvers/solves.rs:114:5 + | +114 | sto_a: &[Vec>], + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sto_a` + +warning: unused variable: `sto_alf` + --> src/tlusty/math/solvers/solves.rs:116:5 + | +116 | sto_alf: &[Vec>], + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sto_alf` + +warning: unused variable: `sto_alf` + --> src/tlusty/math/solvers/solves.rs:235:5 + | +235 | sto_alf: &[Vec>], + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sto_alf` + +warning: variable does not need to be mutable + --> src/tlusty/math/solvers/solves.rs:441:9 + | +441 | let mut chmt = 0.0_f64; + | ----^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `lmka` + --> src/tlusty/math/solvers/solves.rs:403:9 + | +403 | let lmka = iter < niter && kant.get(iter as usize).copied().unwrap_or(0) == 1; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_lmka` + +warning: value assigned to `relane` is never read + --> src/tlusty/math/temperature/elcor.rs:151:22 + | +151 | let mut relane = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `an` + --> src/tlusty/math/temperature/elcor.rs:257:57 + | +257 | fn compute_qq(params: &ElcorParams, _id: usize, t: f64, an: f64, ane: f64, dens: f64) -> f64 { + | ^^ help: if this is intentional, prefix it with an underscore: `_an` + +warning: unused variable: `ane` + --> src/tlusty/math/temperature/elcor.rs:257:66 + | +257 | fn compute_qq(params: &ElcorParams, _id: usize, t: f64, an: f64, ane: f64, dens: f64) -> f64 { + | ^^^ help: if this is intentional, prefix it with an underscore: `_ane` + +warning: unused variable: `new_xion` + --> src/tlusty/math/temperature/greyd.rs:204:19 + | +204 | let (an, ane, new_xion) = rhonen_fn(id, t, rho, 1.0 - 1.0 / xion); + | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_xion` + +warning: value assigned to `abpla` is never read + --> src/tlusty/math/temperature/greyd.rs:229:9 + | +229 | abpla = config.abpmin; + | ^^^^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: variable `xx1` is assigned to, but never used + --> src/tlusty/math/temperature/lucy.rs:393:13 + | +393 | let mut xx1 = 0.0; + | ^^^^^^^ + | + = note: consider using `_xx1` instead + +warning: unused variable: `ipt0` + --> src/tlusty/math/temperature/lucy.rs:438:21 + | +438 | let ipt0 = config.iaclt % 3; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_ipt0` + +warning: value assigned to `xx` is never read + --> src/tlusty/math/temperature/lucy.rs:392:22 + | +392 | let mut xx = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `xx1` is never read + --> src/tlusty/math/temperature/lucy.rs:398:9 + | +398 | xx1 = xx; + | ^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `grdadb` + --> src/tlusty/math/temperature/temcor.rs:247:17 + | +247 | let grdadb = convec_result.2; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_grdadb` + +warning: value assigned to `flxcnv` is never read + --> src/tlusty/math/temperature/temcor.rs:218:26 + | +218 | let mut flxcnv = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: value assigned to `dlt` is never read + --> src/tlusty/math/temperature/temcor.rs:219:23 + | +219 | let mut dlt = 0.0; + | ^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `pg0` + --> src/tlusty/math/temperature/temcor.rs:352:5 + | +352 | pg0: f64, + | ^^^ help: if this is intentional, prefix it with an underscore: `_pg0` + +warning: unused variable: `pr0` + --> src/tlusty/math/temperature/temcor.rs:353:5 + | +353 | pr0: f64, + | ^^^ help: if this is intentional, prefix it with an underscore: `_pr0` + +warning: unused variable: `gravd` + --> src/tlusty/math/temperature/temcor.rs:357:5 + | +357 | gravd: f64, + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gravd` + +warning: unused variable: `id_idx` + --> src/tlusty/math/temperature/temper.rs:448:9 + | +448 | let id_idx = params.id - 1; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_id_idx` + +warning: unused variable: `tf0` + --> src/tlusty/math/temperature/tlocal.rs:130:9 + | +130 | let tf0 = tfor; + | ^^^ help: if this is intentional, prefix it with an underscore: `_tf0` + +warning: unused variable: `popull` + --> src/tlusty/math/utils/change.rs:255:5 + | +255 | popull: &mut [Vec], + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_popull` + +warning: unused variable: `dfjb` + --> src/tlusty/math/utils/comset.rs:246:21 + | +246 | let dfjb = fjb0 - fjbp; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_dfjb` + +warning: variable does not need to be mutable + --> src/tlusty/math/utils/pgset.rs:84:9 + | +84 | let mut converged = true; + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `converged` + --> src/tlusty/math/utils/pgset.rs:84:9 + | +84 | let mut converged = true; + | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_converged` + +warning: value assigned to `pdmax` is never read + --> src/tlusty/math/utils/pgset.rs:85:21 + | +85 | let mut pdmax = 0.0_f64; + | ^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `id` + --> src/tlusty/math/utils/state.rs:477:9 + | +477 | let id = params.id; + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: unused variable: `tkln15` + --> src/tlusty/math/utils/state.rs:504:9 + | +504 | let tkln15 = TRHA * tk.ln(); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tkln15` + +warning: unused variable: `entcon` + --> src/tlusty/math/utils/state.rs:505:9 + | +505 | let entcon = 103.973; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_entcon` + +warning: unused variable: `x1` + --> src/tlusty/math/utils/state.rs:696:13 + | +696 | let x1 = abnd / rs; + | ^^ help: if this is intentional, prefix it with an underscore: `_x1` + +warning: type `CrossSectionPoint` is more private than the item `sigave_pure` + --> src/tlusty/math/hydrogen/sigave.rs:196:1 + | +196 | / pub fn sigave_pure( +197 | | transitions: &[(usize, Vec)], +198 | | nfreqb: usize, +199 | | freq: &[f64], +... | +202 | | bfcs: &mut [Vec], +203 | | ) { + | |_^ function `sigave_pure` is reachable at visibility `pub` + | +note: but type `CrossSectionPoint` is only usable at visibility `pub(self)` + --> src/tlusty/math/hydrogen/sigave.rs:77:1 + | + 77 | struct CrossSectionPoint { + | ^^^^^^^^^^^^^^^^^^^^^^^^ + = note: `#[warn(private_interfaces)]` on by default + +warning: constant `ECH` is never used + --> src/tlusty/io/initia.rs:32:7 + | +32 | const ECH: f64 = 4.80298e-10; + | ^^^ + | + = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default + +warning: constant `EMASS` is never used + --> src/tlusty/io/initia.rs:34:7 + | +34 | const EMASS: f64 = 9.1091e-28; + | ^^^^^ + +warning: constant `BOLK` is never used + --> src/tlusty/io/initia.rs:36:7 + | +36 | const BOLK: f64 = 1.38066e-16; + | ^^^^ + +warning: constant `HMASS` is never used + --> src/tlusty/io/initia.rs:38:7 + | +38 | const HMASS: f64 = 1.6733e-24; + | ^^^^^ + +warning: constant `HALF` is never used + --> src/tlusty/io/initia.rs:50:7 + | +50 | const HALF: f64 = 0.5; + | ^^^^ + +warning: constant `SIG4P` is never used + --> src/tlusty/io/initia.rs:52:7 + | +52 | const SIG4P: f64 = 1.380835e-2; + | ^^^^^ + +warning: function `write_header` is never used + --> src/tlusty/io/ltegr.rs:526:4 + | +526 | fn write_header(writer: &mut FortranWriter) { + | ^^^^^^^^^^^^ + +warning: function `read_odf_header` is never used + --> src/tlusty/io/odfset.rs:165:4 + | +165 | fn read_odf_header( + | ^^^^^^^^^^^^^^^ + +warning: function `read_odf_frequencies` is never used + --> src/tlusty/io/odfset.rs:188:4 + | +188 | fn read_odf_frequencies( + | ^^^^^^^^^^^^^^^^^^^^ + +warning: constant `OMEG32` is never used + --> src/tlusty/io/outpri.rs:25:7 + | +25 | const OMEG32: f64 = 1.0; // 实际值从外部传入 + | ^^^^^^ + +warning: function `skip_record` is never used + --> src/tlusty/io/tabini.rs:811:8 + | +811 | fn skip_record(reader: &mut R) -> Result<()> { + | ^^^^^^^^^^^ + +warning: constant `CFF1` is never used + --> src/tlusty/math/continuum/opacf1.rs:18:7 + | +18 | const CFF1: f64 = 1.3727e-25; + | ^^^^ + +warning: struct `NoOpCallbacks` is never constructed + --> src/tlusty/math/continuum/opacf1.rs:87:12 + | +87 | pub struct NoOpCallbacks; + | ^^^^^^^^^^^^^ + +warning: constant `C14` is never used + --> src/tlusty/math/continuum/opacfa.rs:22:7 + | +22 | const C14: f64 = 2.99793e14; + | ^^^ + +warning: constant `CFF1` is never used + --> src/tlusty/math/continuum/opacfa.rs:23:7 + | +23 | const CFF1: f64 = 1.3727e-25; + | ^^^^ + +warning: constant `CFF1` is never used + --> src/tlusty/math/continuum/opacfd.rs:36:7 + | +36 | const CFF1: f64 = 1.3727e-25; + | ^^^^ + +warning: constant `FRAY` is never used + --> src/tlusty/math/continuum/opadd.rs:22:7 + | +22 | const FRAY: f64 = 2.463e15; + | ^^^^ + +warning: constant `FRAYHE` is never used + --> src/tlusty/math/continuum/opadd.rs:24:7 + | +24 | const FRAYHE: f64 = 5.150e15; + | ^^^^^^ + +warning: constant `FRAYH2` is never used + --> src/tlusty/math/continuum/opadd.rs:26:7 + | +26 | const FRAYH2: f64 = 2.922e15; + | ^^^^^^ + +warning: constant `C18` is never used + --> src/tlusty/math/continuum/opadd.rs:30:7 + | +30 | const C18: f64 = 2.997925e18; + | ^^^ + +warning: constant `CR0` is never used + --> src/tlusty/math/continuum/opadd.rs:32:7 + | +32 | const CR0: f64 = 5.799e-13; + | ^^^ + +warning: constant `CR1` is never used + --> src/tlusty/math/continuum/opadd.rs:33:7 + | +33 | const CR1: f64 = 1.422e-6; + | ^^^ + +warning: constant `CR2` is never used + --> src/tlusty/math/continuum/opadd.rs:34:7 + | +34 | const CR2: f64 = 2.784; + | ^^^ + +warning: constant `TRHA` is never used + --> src/tlusty/math/continuum/opadd.rs:41:7 + | +41 | const TRHA: f64 = 1.5; + | ^^^^ + +warning: constant `SFF0` is never used + --> src/tlusty/math/continuum/opadd.rs:43:7 + | +43 | const SFF0: f64 = 1.3727e-25; + | ^^^^ + +warning: constant `SFF1` is never used + --> src/tlusty/math/continuum/opadd.rs:44:7 + | +44 | const SFF1: f64 = 4.3748e-10; + | ^^^^ + +warning: constant `SFFM2` is never used + --> src/tlusty/math/continuum/opadd.rs:45:7 + | +45 | const SFFM2: f64 = -2.5993e-7; + | ^^^^^ + +warning: constant `F0HE1` is never used + --> src/tlusty/math/continuum/opadd.rs:47:7 + | +47 | const F0HE1: f64 = 3.29e15; + | ^^^^^ + +warning: constant `F0HE2` is never used + --> src/tlusty/math/continuum/opadd.rs:49:7 + | +49 | const F0HE2: f64 = 1.316e16; + | ^^^^^ + +warning: constant `SBH0` is never used + --> src/tlusty/math/continuum/opadd.rs:51:7 + | +51 | const SBH0: f64 = 4.1412e-16; + | ^^^^ + +warning: constant `SG01` is never used + --> src/tlusty/math/continuum/opadd.rs:52:7 + | +52 | const SG01: f64 = 2.815e-16; + | ^^^^ + +warning: constant `SG02` is never used + --> src/tlusty/math/continuum/opadd.rs:53:7 + | +53 | const SG02: f64 = 4.504e-15; + | ^^^^ + +warning: constant `CFF1` is never used + --> src/tlusty/math/continuum/opaini.rs:18:7 + | +18 | const CFF1: f64 = 1.3727e-25; + | ^^^^ + +warning: constant `CFF2` is never used + --> src/tlusty/math/continuum/opaini.rs:20:7 + | +20 | const CFF2: f64 = 4.3748e-10; + | ^^^^ + +warning: constant `CFF3` is never used + --> src/tlusty/math/continuum/opaini.rs:22:7 + | +22 | const CFF3: f64 = 2.5993e-7; + | ^^^^ + +warning: constant `SIXTH` is never used + --> src/tlusty/math/continuum/opaini.rs:24:7 + | +24 | const SIXTH: f64 = 1.0 / 6.0; + | ^^^^^ + +warning: constant `CCOR` is never used + --> src/tlusty/math/continuum/opaini.rs:26:7 + | +26 | const CCOR: f64 = 0.09; + | ^^^^ + +warning: constant `T32` is never used + --> src/tlusty/math/continuum/opaini.rs:28:7 + | +28 | const T32: f64 = 1.5; + | ^^^ + +warning: constant `MOP` is never used + --> src/tlusty/math/continuum/opdata.rs:12:7 + | +12 | const MOP: usize = 15; + | ^^^ + +warning: constant `CLIGHT` is never used + --> src/tlusty/math/continuum/opacity_table.rs:109:7 + | +109 | const CLIGHT: f64 = 2.99792458e10; + | ^^^^^^ + +warning: constant `SIGMAC` is never used + --> src/tlusty/math/continuum/opacity_table.rs:111:7 + | +111 | const SIGMAC: f64 = 7.5657e-15; + | ^^^^^^ + +warning: constant `FRH` is never used + --> src/tlusty/math/continuum/opacity_table.rs:113:7 + | +113 | const FRH: f64 = 3.28805e15; + | ^^^ + +warning: constant `FRH` is never used + --> src/tlusty/math/continuum/opacity_table.rs:572:15 + | +572 | const FRH: f64 = 3.28805e15; // 氢电离频率 (Hz) + | ^^^ + +warning: struct `CubconData` is never constructed + --> src/tlusty/math/convection/conout.rs:157:12 + | +157 | pub struct CubconData { + | ^^^^^^^^^^ + +warning: fields `a`, `del`, `delmde`, and `rho` are never read + --> src/tlusty/math/convection/conref.rs:146:9 + | +144 | pub struct CubconData { + | ---------- fields in this struct +145 | /// 对流常数 A +146 | pub a: f64, + | ^ +... +150 | pub del: f64, + | ^^^ +... +154 | pub delmde: f64, + | ^^^^^^ +155 | /// 密度 +156 | pub rho: f64, + | ^^^ + | + = note: `CubconData` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis + +warning: constant `MLVEXP` is never used + --> src/tlusty/math/hydrogen/bre.rs:16:7 + | +16 | const MLVEXP: usize = 233; + | ^^^^^^ + +warning: constant `MLVEXP` is never used + --> src/tlusty/math/hydrogen/brez.rs:11:7 + | +11 | const MLVEXP: usize = 233; + | ^^^^^^ + +warning: static `FHE1` is never used + --> src/tlusty/math/hydrogen/colhe.rs:37:8 + | +37 | static FHE1: [f64; 16] = [ + | ^^^^ + +warning: constant `SIXTH` is never used + --> src/tlusty/math/hydrogen/lymlin.rs:13:7 + | +13 | const SIXTH: f64 = 1.0 / 6.0; + | ^^^^^ + +warning: constant `THETAFF` is never used + --> src/tlusty/math/hydrogen/sffhmi.rs:27:15 + | +27 | const THETAFF: [f64; 11] = [ + | ^^^^^^^ + +warning: constant `H` is never used + --> src/tlusty/math/hydrogen/sigave.rs:14:7 + | +14 | const H: f64 = 6.626176e-27; // 普朗克常数 (erg·s) + | ^ + +warning: constant `C` is never used + --> src/tlusty/math/hydrogen/sigave.rs:15:7 + | +15 | const C: f64 = 2.997925e10; // 光速 (cm/s) + | ^ + +warning: constant `HCCM` is never used + --> src/tlusty/math/hydrogen/sigave.rs:16:7 + | +16 | const HCCM: f64 = H * C; + | ^^^^ + +warning: function `yint` is never used + --> src/tlusty/math/interpolation/interpolate.rs:33:8 + | +33 | pub fn yint(xl: &[f64], yl: &[f64], xl0: f64) -> f64 { + | ^^^^ + +warning: function `lagran` is never used + --> src/tlusty/math/interpolation/interpolate.rs:80:8 + | +80 | pub fn lagran(x0: f64, x1: f64, x2: f64, y0: f64, y1: f64, y2: f64, x: f64) -> f64 { + | ^^^^^^ + +warning: function `skip_to_section` is never used + --> src/tlusty/math/io/rdata.rs:582:4 + | +582 | fn skip_to_section(lines: &mut std::io::Lines, section_name: &str) -> Result<(), String> { + | ^^^^^^^^^^^^^^^ + +warning: constant `FRH` is never used + --> src/tlusty/math/odf/odf1.rs:34:7 + | +34 | const FRH: f64 = 3.28805e15; + | ^^^ + +warning: function `get_2d_mut` is never used + --> src/tlusty/math/opacity/inilam.rs:321:4 + | +321 | fn get_2d_mut(arr: &mut [T], i: usize, j: usize, nrows: usize) -> &mut T { + | ^^^^^^^^^^ + +warning: constant `CVDW` is never used + --> src/tlusty/math/opacity/inkul.rs:29:7 + | +29 | const CVDW: f64 = 3.74; + | ^^^^ + +warning: constant `PVDW` is never used + --> src/tlusty/math/opacity/inkul.rs:30:7 + | +30 | const PVDW: f64 = 0.4; + | ^^^^ + +warning: constant `TVDW` is never used + --> src/tlusty/math/opacity/inkul.rs:31:7 + | +31 | const TVDW: f64 = 0.3; + | ^^^^ + +warning: constant `PI4` is never used + --> src/tlusty/math/opacity/inpdis.rs:19:7 + | +19 | const PI4: f64 = 12.5663706; // 4π + | ^^^ + +warning: constant `RYD1` is never used + --> src/tlusty/math/opacity/stark0.rs:26:11 + | +26 | const RYD1: f64 = 911.763811; + | ^^^^ + +warning: constant `RYD2` is never used + --> src/tlusty/math/opacity/stark0.rs:27:11 + | +27 | const RYD2: f64 = 911.495745 / 4.0; + | ^^^^ + +warning: constant `SD` is never used + --> src/tlusty/math/opacity/starka.rs:16:7 + | +16 | const SD: f64 = 0.5641895; + | ^^ + +warning: constant `CCOR` is never used + --> src/tlusty/math/population/bpopt.rs:20:7 + | +20 | const CCOR: f64 = 0.09; + | ^^^^ + +warning: constant `SIXTH` is never used + --> src/tlusty/math/population/bpopt.rs:21:7 + | +21 | const SIXTH: f64 = 1.0 / 6.0; + | ^^^^^ + +warning: struct `TestConfig` is never constructed + --> src/tlusty/math/population/bpopt.rs:386:8 + | +386 | struct TestConfig { + | ^^^^^^^^^^ + +warning: struct `TestStorage` is never constructed + --> src/tlusty/math/population/bpopt.rs:423:8 + | +423 | struct TestStorage { + | ^^^^^^^^^^^ + +warning: function `create_test_params` is never used + --> src/tlusty/math/population/bpopt.rs:464:4 + | +464 | fn create_test_params(config: TestConfig) -> BpoptParams<'static> { + | ^^^^^^^^^^^^^^^^^^ + +warning: constant `MDEPTC` is never used + --> src/tlusty/math/radiative/rtecmc.rs:16:7 + | +16 | const MDEPTC: usize = MDEPTH; + | ^^^^^^ + +warning: constant `SIXTH` is never used + --> src/tlusty/math/radiative/rtedf2.rs:17:7 + | +17 | const SIXTH: f64 = 1.0 / 6.0; + | ^^^^^ + +warning: constant `THIRD` is never used + --> src/tlusty/math/radiative/rtedf2.rs:18:7 + | +18 | const THIRD: f64 = 1.0 / 3.0; + | ^^^^^ + +warning: constant `TWOTHR` is never used + --> src/tlusty/math/radiative/rtedf2.rs:19:7 + | +19 | const TWOTHR: f64 = 2.0 / 3.0; + | ^^^^^^ + +warning: constant `TWOTHR` is never used + --> src/tlusty/math/radiative/rteint.rs:25:7 + | +25 | const TWOTHR: f64 = TWO / 3.0; + | ^^^^^^ + +warning: constant `MTRPRD` is never used + --> src/tlusty/math/rates/rates1.rs:19:7 + | +19 | const MTRPRD: usize = 5; + | ^^^^^^ + +warning: constant `PGRD` is never used + --> src/tlusty/math/rates/ratsp1.rs:13:7 + | +13 | const PGRD: f64 = 4.1916825e-10; + | ^^^^ + +warning: constant `THIRD` is never used + --> src/tlusty/math/temperature/lucy.rs:29:7 + | +29 | const THIRD: f64 = 1.0 / 3.0; + | ^^^^^ + +warning: constant `XMSUN` is never used + --> src/tlusty/math/utils/column.rs:11:7 + | +11 | const XMSUN: f64 = 1.989e33; // 太阳质量 (g) + | ^^^^^ + +warning: constant `RSUN` is never used + --> src/tlusty/math/utils/column.rs:12:7 + | +12 | const RSUN: f64 = 6.9598e10; // 太阳半径 (cm) + | ^^^^ + +warning: constant `XKRAM0` is never used + --> src/tlusty/math/utils/column.rs:16:7 + | +16 | const XKRAM0: f64 = 7e25; // Kramer 不透明度系数 + | ^^^^^^ + +warning: constant `NXMAX` is never used + --> src/tlusty/math/utils/getlal.rs:15:7 + | +15 | const NXMAX: usize = 1400; + | ^^^^^ + +warning: constant `NTAMAX` is never used + --> src/tlusty/math/utils/getlal.rs:16:7 + | +16 | const NTAMAX: usize = 6; + | ^^^^^^ + +warning: constant `EV2ERG` is never used + --> src/tlusty/math/utils/state.rs:34:7 + | +34 | const EV2ERG: f64 = 1.6018e-12; + | ^^^^^^ + +warning: constant `ABUN0` is never used + --> src/tlusty/math/utils/state.rs:170:7 + | +170 | const ABUN0: [f64; 99] = [ + | ^^^^^ + +warning: constant `ABUN1` is never used + --> src/tlusty/math/utils/state.rs:188:7 + | +188 | const ABUN1: [f64; 99] = [ + | ^^^^^ + +warning: constant `IDAT` is never used + --> src/tlusty/math/utils/state.rs:373:7 + | +373 | const IDAT: [i32; 30] = [ + | ^^^^ + +warning: constant `CL` is never used + --> src/synspec/math/iniblm.rs:12:11 + | +12 | pub const CL: f64 = 2.997925e10; + | ^^ + +warning: constant `H` is never used + --> src/synspec/math/iniblm.rs:15:11 + | +15 | pub const H: f64 = 6.6256e-27; + | ^ + +warning: constant `BOLK` is never used + --> src/synspec/math/iniblm.rs:18:11 + | +18 | pub const BOLK: f64 = 1.38054e-16; + | ^^^^ + +warning: constant `HC` is never used + --> src/synspec/math/phe2.rs:12:7 + | +12 | const HC: f64 = 1.986477e-16; + | ^^ + +warning: constant `HE2_IONIZATION_ENERGY` is never used + --> src/synspec/math/phe2.rs:15:7 + | +15 | const HE2_IONIZATION_ENERGY: f64 = 438916.146; + | ^^^^^^^^^^^^^^^^^^^^^ + +warning: constant `FREQ_TO_WAVE` is never used + --> src/synspec/math/phe2.rs:41:7 + | +41 | const FREQ_TO_WAVE: f64 = 2.997925e17; + | ^^^^^^^^^^^^ + +error[E0061]: this function takes 2 arguments but 1 argument was supplied + --> src/tlusty/math/utils/comset.rs:397:22 + | +397 | let result = comset(¶ms); + | ^^^^^^--------- argument #2 of type `Option<&mut config::Comptn>` is missing + | +note: function defined here + --> src/tlusty/math/utils/comset.rs:141:8 + | +141 | pub fn comset(params: &ComsetParams, comptn: Option<&mut Comptn>) -> ComsetResult { + | ^^^^^^ --------------------------- +help: provide the argument + | +397 | let result = comset(¶ms, /* Option<&mut config::Comptn> */); + | +++++++++++++++++++++++++++++++++++ + +error[E0061]: this function takes 2 arguments but 1 argument was supplied + --> src/tlusty/math/utils/comset.rs:409:22 + | +409 | let result = comset(¶ms); + | ^^^^^^--------- argument #2 of type `Option<&mut config::Comptn>` is missing + | +note: function defined here + --> src/tlusty/math/utils/comset.rs:141:8 + | +141 | pub fn comset(params: &ComsetParams, comptn: Option<&mut Comptn>) -> ComsetResult { + | ^^^^^^ --------------------------- +help: provide the argument + | +409 | let result = comset(¶ms, /* Option<&mut config::Comptn> */); + | +++++++++++++++++++++++++++++++++++ + +error[E0061]: this function takes 2 arguments but 1 argument was supplied + --> src/tlusty/math/utils/comset.rs:444:22 + | +444 | let result = comset(¶ms); + | ^^^^^^--------- argument #2 of type `Option<&mut config::Comptn>` is missing + | +note: function defined here + --> src/tlusty/math/utils/comset.rs:141:8 + | +141 | pub fn comset(params: &ComsetParams, comptn: Option<&mut Comptn>) -> ComsetResult { + | ^^^^^^ --------------------------- +help: provide the argument + | +444 | let result = comset(¶ms, /* Option<&mut config::Comptn> */); + | +++++++++++++++++++++++++++++++++++ + +error[E0061]: this function takes 2 arguments but 1 argument was supplied + --> src/tlusty/math/utils/comset.rs:458:22 + | +458 | let result = comset(¶ms); + | ^^^^^^--------- argument #2 of type `Option<&mut config::Comptn>` is missing + | +note: function defined here + --> src/tlusty/math/utils/comset.rs:141:8 + | +141 | pub fn comset(params: &ComsetParams, comptn: Option<&mut Comptn>) -> ComsetResult { + | ^^^^^^ --------------------------- +help: provide the argument + | +458 | let result = comset(¶ms, /* Option<&mut config::Comptn> */); + | +++++++++++++++++++++++++++++++++++ + +error[E0061]: this function takes 2 arguments but 1 argument was supplied + --> src/tlusty/math/utils/comset.rs:480:22 + | +480 | let result = comset(¶ms); + | ^^^^^^--------- argument #2 of type `Option<&mut config::Comptn>` is missing + | +note: function defined here + --> src/tlusty/math/utils/comset.rs:141:8 + | +141 | pub fn comset(params: &ComsetParams, comptn: Option<&mut Comptn>) -> ComsetResult { + | ^^^^^^ --------------------------- +help: provide the argument + | +480 | let result = comset(¶ms, /* Option<&mut config::Comptn> */); + | +++++++++++++++++++++++++++++++++++ + +warning: unused variable: `ilast` + --> src/tlusty/io/input.rs:303:13 + | +303 | let ilast: i32 = reader.read_value().unwrap(); + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ilast` + | + = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default + +warning: unused variable: `ilvlin` + --> src/tlusty/io/input.rs:304:13 + | +304 | let ilvlin: i32 = reader.read_value().unwrap(); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ilvlin` + +warning: unused variable: `nonstd` + --> src/tlusty/io/input.rs:305:13 + | +305 | let nonstd: i32 = reader.read_value().unwrap(); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_nonstd` + +warning: unused variable: `jidc` + --> src/tlusty/io/iroset.rs:279:16 + | +279 | let (jidn, jidc) = setup_depth_interpolation( + | ^^^^ help: if this is intentional, prefix it with an underscore: `_jidc` + +warning: unused variable: `abros` + --> src/tlusty/io/ltegr.rs:593:23 + | +593 | let (t, _ane, abros) = rossop_calc( + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_abros` + +warning: variable `prev_temp` is assigned to, but never used + --> src/tlusty/io/ltegr.rs:656:13 + | +656 | let mut prev_temp = 0.0; + | ^^^^^^^^^^^^^ + | + = note: consider using `_prev_temp` instead + +warning: value assigned to `prev_temp` is never read + --> src/tlusty/io/ltegr.rs:673:13 + | +673 | prev_temp = temp; + | ^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default + +warning: value assigned to `nconit` is never read + --> src/tlusty/io/ltegrd.rs:262:9 + | +262 | nconit = 10; + | ^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: unused variable: `rhomat` + --> src/tlusty/io/tabini.rs:1045:23 + | +1045 | let (tempvec, rhomat, elecgr, numrh, numtemp, numrho, indt, indr) = select_table_data( + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rhomat` + +warning: unused variable: `elecgr` + --> src/tlusty/io/tabini.rs:1045:31 + | +1045 | let (tempvec, rhomat, elecgr, numrh, numtemp, numrho, indt, indr) = select_table_data( + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_elecgr` + +warning: unused variable: `numrh` + --> src/tlusty/io/tabini.rs:1045:39 + | +1045 | let (tempvec, rhomat, elecgr, numrh, numtemp, numrho, indt, indr) = select_table_data( + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_numrh` + +warning: unused variable: `indt` + --> src/tlusty/io/tabini.rs:1045:63 + | +1045 | let (tempvec, rhomat, elecgr, numrh, numtemp, numrho, indt, indr) = select_table_data( + | ^^^^ help: if this is intentional, prefix it with an underscore: `_indt` + +warning: unused variable: `indr` + --> src/tlusty/io/tabini.rs:1045:69 + | +1045 | let (tempvec, rhomat, elecgr, numrh, numtemp, numrho, indt, indr) = select_table_data( + | ^^^^ help: if this is intentional, prefix it with an underscore: `_indr` + +warning: variable does not need to be mutable + --> src/tlusty/math/ali/alisk1.rs:718:13 + | +718 | let mut config = create_test_config(); + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `result` + --> src/tlusty/math/ali/ijali2.rs:295:13 + | +295 | let result = ijali2(&mut params); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` + +warning: unused variable: `gfrd` + --> src/tlusty/math/atomic/gfree.rs:265:19 + | +265 | let (gfr, gfrd) = gfreed(0, fr, ch, &gffpar); + | ^^^^ help: if this is intentional, prefix it with an underscore: `_gfrd` + +warning: unused variable: `gfrd` + --> src/tlusty/math/atomic/gfree.rs:278:19 + | +278 | let (gfr, gfrd) = gfreed(0, fr, ch, &gffpar); + | ^^^^ help: if this is intentional, prefix it with an underscore: `_gfrd` + +warning: unused variable: `gfrd` + --> src/tlusty/math/atomic/gfree.rs:290:19 + | +290 | let (gfr, gfrd) = gfreed(0, fr, ch, &gffpar); + | ^^^^ help: if this is intentional, prefix it with an underscore: `_gfrd` + +warning: unused variable: `dsff` + --> src/tlusty/math/continuum/opaini.rs:298:26 + | +298 | let (sff2, sff3, dsff) = compute_ff_coefficients(t, ane, ff, charg2, popul_next); + | ^^^^ help: if this is intentional, prefix it with an underscore: `_dsff` + +warning: unused variable: `flxcnv` + --> src/tlusty/math/convection/conref.rs:910:14 + | +910 | let (flxcnv, fc0, grdadb) = compute_convc1_simple( + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_flxcnv` + +warning: variable does not need to be mutable + --> src/tlusty/math/convection/contmd.rs:505:13 + | +505 | let mut dens = vec![1e-7; ND]; + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/convection/contmd.rs:511:13 + | +511 | let mut pradt = vec![0.0; ND]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/convection/contmd.rs:512:13 + | +512 | let mut abrosd = vec![0.1; ND]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/convection/contmd.rs:513:13 + | +513 | let mut abplad = vec![0.1; ND]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `orig_temp` + --> src/tlusty/math/convection/contmd.rs:578:13 + | +578 | let orig_temp = params.temp.to_vec(); + | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_orig_temp` + +warning: unused variable: `ahmol` + --> src/tlusty/math/convection/contmp.rs:774:25 + | +774 | let (ane, dens, ahmol) = compute_eldens_simplified( + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_ahmol` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:986:13 + | +986 | let mut a_data: Vec> = vec![]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:987:13 + | +987 | let mut b_data: Vec> = vec![]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/brtez.rs:988:13 + | +988 | let mut c_data: Vec> = vec![]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `a_data` + --> src/tlusty/math/hydrogen/brtez.rs:986:13 + | +986 | let mut a_data: Vec> = vec![]; + | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_data` + +warning: unused variable: `b_data` + --> src/tlusty/math/hydrogen/brtez.rs:987:13 + | +987 | let mut b_data: Vec> = vec![]; + | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_b_data` + +warning: unused variable: `c_data` + --> src/tlusty/math/hydrogen/brtez.rs:988:13 + | +988 | let mut c_data: Vec> = vec![]; + | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_c_data` + +warning: unused variable: `tk` + --> src/tlusty/math/hydrogen/colhe.rs:357:13 + | +357 | let tk = HK / H / t; + | ^^ help: if this is intentional, prefix it with an underscore: `_tk` + +warning: unused variable: `ccrate` + --> src/tlusty/math/hydrogen/colis.rs:907:18 + | +907 | let (nx, ccrate, cctemp) = prepare_interpolation_arrays(0, 0, &crate_tab, &ctemp_tab); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_ccrate` + +warning: variable does not need to be mutable + --> src/tlusty/math/hydrogen/sigk.rs:379:13 + | +379 | let mut atomic = create_test_atomic_data(); + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/pzeval.rs:291:17 + | +291 | let mut dens = vec![0e-7; nd]; + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/pzeval.rs:292:17 + | +292 | let mut wmm = vec![1.0; nd]; + | ----^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/pzeval.rs:293:17 + | +293 | let mut elec = vec![1e12; nd]; + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/pzeval.rs:295:17 + | +295 | let mut vturb = vec![0.0; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/pzeval.rs:296:17 + | +296 | let mut abrosd = vec![0.1; nd]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/pzeval.rs:297:17 + | +297 | let mut pradt = vec![0.0; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/pzeval.rs:298:17 + | +298 | let mut ptotal = vec![0.0; nd]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/pzeval.rs:299:17 + | +299 | let mut pgs = vec![0.0; nd]; + | ----^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/io/pzeval.rs:300:17 + | +300 | let mut delta = vec![0.0; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/opacity/dopgam.rs:199:13 + | +199 | let mut stark2 = vec![0.0f64; MTRANS]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/opacity/dopgam.rs:200:13 + | +200 | let mut stark3 = vec![0.0f64; MTRANS]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/opacity/dopgam.rs:266:13 + | +266 | mut iup, iatm, mut fr0, iel, amass, mut iprof, + | ----^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/opacity/dopgam.rs:266:28 + | +266 | mut iup, iatm, mut fr0, iel, amass, mut iprof, + | ----^^^ + | | + | help: remove this `mut` + +warning: unused variable: `output` + --> src/tlusty/math/opacity/inilam.rs:845:13 + | +845 | let output = InilamOutput::default(); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_output` + +warning: unused variable: `i` + --> src/tlusty/math/opacity/inkul.rs:548:13 + | +548 | for i in 0..10 { + | ^ help: if this is intentional, prefix it with an underscore: `_i` + +warning: unused variable: `result` + --> src/tlusty/math/opacity/inpdis.rs:496:13 + | +496 | let result = inpdis_pure(&mut params, 0.0); + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` + +warning: variable does not need to be mutable + --> src/tlusty/math/opacity/linsel.rs:798:13 + | +798 | let mut freq_params = LinselFreqParams { + | ----^^^^^^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/population/bpopf.rs:248:13 + | +248 | let mut arrays = MainArrays::default(); + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/population/bpopf.rs:251:13 + | +251 | let mut crsw = vec![1.0; 100]; + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable `has_nonzero` is assigned to, but never used + --> src/tlusty/math/radiative/rtecom.rs:348:13 + | +348 | let mut has_nonzero = false; + | ^^^^^^^^^^^^^^^ + | + = note: consider using `_has_nonzero` instead + +warning: value assigned to `has_nonzero` is never read + --> src/tlusty/math/radiative/rtecom.rs:351:17 + | +351 | has_nonzero = true; + | ^^^^^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rteint.rs:692:13 + | +692 | let mut abso1 = vec![1e-10; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rteint.rs:693:13 + | +693 | let mut emis1 = vec![1e-20; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rteint.rs:694:13 + | +694 | let mut scat1 = vec![1e-12; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/radiative/rteint.rs:695:13 + | +695 | let mut absot = vec![1e-10; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/rates/rates1.rs:746:13 + | +746 | let mut model_state = Rates1ModelState { + | ----^^^^^^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/solvers/indexx.rs:113:13 + | +113 | let mut sorted: Vec = idx.iter().map(|&i| arr[i]).collect(); + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `reint` + --> src/tlusty/math/solvers/rybene.rs:436:13 + | +436 | let reint = vec![0.0; nd]; + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_reint` + +warning: unused variable: `dtvist` + --> src/tlusty/math/solvers/rybene.rs:437:13 + | +437 | let dtvist = vec![0.0; nd]; + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_dtvist` + +warning: unused variable: `expected_flux` + --> src/tlusty/math/solvers/rybene.rs:546:13 + | +546 | let expected_flux = params.config.sig4p * params.config.teff.powi(4); + | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_expected_flux` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/elcor.rs:294:17 + | +294 | let mut v = vec![0i32; MLEVEL]; + | ----^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/elcor.rs:298:17 + | +298 | let mut v = vec![0i32; MLEVEL]; + | ----^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/elcor.rs:302:17 + | +302 | let mut v = vec![1i32; 200]; + | ----^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/elcor.rs:306:17 + | +306 | let mut v = vec![1.0f64; 200]; + | ----^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/elcor.rs:310:17 + | +310 | let mut v = vec![1i32; MLEVEL]; + | ----^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/elcor.rs:314:17 + | +314 | let mut v = vec![1e10f64; MLEVEL]; + | ----^ + | | + | help: remove this `mut` + +warning: unused variable: `t` + --> src/tlusty/math/temperature/greyd.rs:402:40 + | +402 | let mut rhonen_fn = |_: usize, t: f64, rho: f64, _: f64| -> (f64, f64, f64) { + | ^ help: if this is intentional, prefix it with an underscore: `_t` + +warning: unused variable: `b1` + --> src/tlusty/math/temperature/lucy.rs:717:18 + | +717 | let (a1, b1, b2, c1, c2) = compute_acceleration(&state, nd); + | ^^ help: if this is intentional, prefix it with an underscore: `_b1` + +warning: unused variable: `c1` + --> src/tlusty/math/temperature/lucy.rs:717:26 + | +717 | let (a1, b1, b2, c1, c2) = compute_acceleration(&state, nd); + | ^^ help: if this is intentional, prefix it with an underscore: `_c1` + +warning: unused variable: `c2` + --> src/tlusty/math/temperature/lucy.rs:717:30 + | +717 | let (a1, b1, b2, c1, c2) = compute_acceleration(&state, nd); + | ^^ help: if this is intentional, prefix it with an underscore: `_c2` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:532:17 + | +532 | let mut elec = vec![0.0; nd]; + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:533:17 + | +533 | let mut dens = vec![1e-7; nd]; + | ----^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:534:17 + | +534 | let mut wmm = vec![1.0; nd]; + | ----^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:536:17 + | +536 | let mut pgs = vec![1e5; nd]; + | ----^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:537:17 + | +537 | let mut ptotal = vec![1e5; nd]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:538:17 + | +538 | let mut pradt = vec![0.0; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:539:17 + | +539 | let mut vturb = vec![0.0; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:540:17 + | +540 | let mut abrosd = vec![0.1; nd]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:541:17 + | +541 | let mut abplad = vec![0.1; nd]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:542:17 + | +542 | let mut tauros = vec![0.0; nd]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:543:17 + | +543 | let mut tauflx = vec![0.0; nd]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:544:17 + | +544 | let mut tauthe = vec![0.0; nd]; + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:545:17 + | +545 | let mut theta = vec![1.0; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/tlusty/math/temperature/temper.rs:546:17 + | +546 | let mut phmol = vec![0.0; nd]; + | ----^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `nmuc` + --> src/tlusty/math/utils/angset.rs:135:13 + | +135 | let nmuc = comptn.nmuc as usize; + | ^^^^ help: if this is intentional, prefix it with an underscore: `_nmuc` + +warning: unused variable: `nre` + --> src/tlusty/math/utils/emat.rs:190:13 + | +190 | let nre = 10 + 1; // nfreqe + inre = 11 + | ^^^ help: if this is intentional, prefix it with an underscore: `_nre` + +warning: variable does not need to be mutable + --> src/tlusty/math/utils/sabolf.rs:381:13 + | +381 | let mut g = vec![2.0; 9]; + | ----^ + | | + | help: remove this `mut` + +warning: variable does not need to be mutable + --> src/synspec/math/sgmerg.rs:221:13 + | +221 | let mut wnhint = vec![1.0e10; 20]; // 全部非零 + | ----^^^^^^ + | | + | help: remove this `mut` + +warning: `tlusty-rust` (lib) generated 626 warnings (run `cargo fix --lib -p tlusty-rust` to apply 425 suggestions) +warning: unused import: `BufWriter` + --> src/bin/tlusty.rs:8:32 + | +8 | use std::io::{self, BufReader, BufWriter, Write}; + | ^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default + +warning: unused import: `FortranWriter` + --> src/bin/tlusty.rs:11:46 + | +11 | use tlusty_rust::tlusty::io::{FortranReader, FortranWriter, read_input_file, InputParams, InputParser}; + | ^^^^^^^^^^^^^ + +warning: unused imports: `HK`, `MDEPTH`, and `MFREQ` + --> src/bin/tlusty.rs:17:52 + | +17 | use tlusty_rust::tlusty::state::constants::{EH, H, MDEPTH, BOLK, HMASS, MFREQ, HK, MATOM}; + | ^^^^^^ ^^^^^ ^^ + +warning: unused imports: `InitiaConfig`, `InitiaParams`, and `initia_pure` + --> src/bin/tlusty.rs:20:5 + | +20 | initia_pure, InitiaParams, InitiaConfig, FrequencyGridParams, + | ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ + +warning: unused imports: `EldensOutput` and `state_pure` + --> src/bin/tlusty.rs:24:60 + | +24 | compute_hopf, eldens_pure, EldensParams, EldensConfig, EldensOutput, + | ^^^^^^^^^^^^ +25 | StateParams, state_pure, + | ^^^^^^^^^^ + +For more information about this error, try `rustc --explain E0061`. +warning: unused import: `Write` + --> src/bin/tlusty.rs:8:43 + | +8 | use std::io::{self, BufReader, BufWriter, Write}; + | ^^^^^ + +warning: unused variable: `weights` + --> src/bin/tlusty.rs:334:16 + | +334 | let (freq, weights) = generate_log_frequency_grid( + | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weights` + | + = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default + +warning: `tlusty-rust` (lib test) generated 638 warnings (510 duplicates) +error: could not compile `tlusty-rust` (lib test) due to 5 previous errors; 638 warnings emitted +warning: build failed, waiting for other jobs to finish... +warning: unused variable: `dion0` + --> src/bin/tlusty.rs:422:9 + | +422 | let dion0 = 1.0; // DION0 = 1.0 (完全电离) + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_dion0` + +warning: unused variable: `opes` + --> src/bin/tlusty.rs:751:17 + | +751 | let opes = 6.6524e-25 * ane / dens.max(1e-20); // 电子散射 + | ^^^^ help: if this is intentional, prefix it with an underscore: `_opes` + +warning: unused variable: `opbf` + --> src/bin/tlusty.rs:753:17 + | +753 | let opbf = 4.3e-25 * (1.0 - ion_frac) * (temp/1e4).powf(-3.5); // 束缚-自由 + | ^^^^ help: if this is intentional, prefix it with an underscore: `_opbf` + +warning: value assigned to `dens` is never read + --> src/bin/tlusty.rs:592:24 + | +592 | let mut dens = estimated_dens; + | ^^^^^^^^^^^^^^ + | + = help: maybe it is overwritten before being read? + = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default + +warning: `tlusty-rust` (bin "tlusty" test) generated 11 warnings (run `cargo fix --bin "tlusty" -p tlusty-rust --tests` to apply 9 suggestions) +warning: `tlusty-rust` (bin "tlusty") generated 11 warnings (11 duplicates)