Skip to content

Commit

Permalink
ensure mfactor isn't optimized away
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcoram authored and arpadbuermen committed Jul 15, 2024
1 parent f20cd2d commit c8a2ba0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openvaf/sim_back/src/dae/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ impl<'a> Builder<'a> {
matches!(self.system.unknowns[unknown], SimUnknownKind::KirchoffLaw(_));
residual.map_vals(|val| ensure_optbarrier(val, is_kirchoff));
}
ensure_optbarrier(mfactor, false);

for noise_src in &mut self.system.noise_sources {
noise_src.map_vals(|val| ensure_optbarrier(val, false));
Expand Down

0 comments on commit c8a2ba0

Please sign in to comment.