Skip to content

Commit

Permalink
add missing optional attribute junction_type for linear thermal bridg…
Browse files Browse the repository at this point in the history
…ing in input
  • Loading branch information
shieldo committed Oct 11, 2024
1 parent fd9a4f3 commit cbde6a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/corpus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2751,6 +2751,7 @@ fn thermal_bridging_from_input(input: &ThermalBridgingInput) -> ThermalBridging
ThermalBridgingDetails::Linear {
linear_thermal_transmittance,
length,
..
} => ThermalBridge::Linear {
linear_thermal_transmittance: *linear_thermal_transmittance,
length: *length,
Expand Down
4 changes: 3 additions & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1865,12 +1865,14 @@ pub enum ThermalBridging {
#[derive(Debug, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
#[serde(tag = "type")]
#[serde(tag = "type", deny_unknown_fields)]
pub enum ThermalBridgingDetails {
#[serde(rename(deserialize = "ThermalBridgeLinear"))]
Linear {
linear_thermal_transmittance: f64,
length: f64,
#[allow(dead_code)]
junction_type: Option<String>,
},
#[serde(rename = "ThermalBridgePoint")]
Point {
Expand Down

0 comments on commit cbde6a3

Please sign in to comment.