mirror of
https://github.com/aselimov/cea-rs.git
synced 2026-04-21 09:24:21 +00:00
Fix some bugs
This commit is contained in:
parent
6d1d9bd290
commit
cc5ae45c31
6 changed files with 63 additions and 8 deletions
|
|
@ -5,7 +5,6 @@ use crate::properties::{
|
|||
utils::parse_fields,
|
||||
};
|
||||
|
||||
|
||||
pub struct ThermoDB {
|
||||
pub products: Vec<SpeciesThermoData>,
|
||||
pub reactants: Vec<SpeciesThermoData>,
|
||||
|
|
@ -136,7 +135,7 @@ fn parse_polynomial_block<'a>(
|
|||
|
||||
let temp_hi: f64 = splits[1]
|
||||
.parse()
|
||||
.map_err(|_| make_parse_error("temp_hi", "f64", &splits[0]))?;
|
||||
.map_err(|_| make_parse_error("temp_hi", "f64", &splits[1]))?;
|
||||
|
||||
// Now parse the first 5 coefficients
|
||||
let line = lines.next().ok_or(PropertiesError::InvalidFile)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue