Skip to content

Commit

Permalink
correct timestep count for unmet demand energy supply
Browse files Browse the repository at this point in the history
  • Loading branch information
shieldo committed Feb 27, 2025
1 parent 39b278a commit 5651feb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/corpus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2980,7 +2980,11 @@ fn energy_supplies_from_input(
supplies.insert(
UNMET_DEMAND_SUPPLY_NAME.to_string(),
Arc::new(RwLock::new(
EnergySupplyBuilder::new(FuelType::UnmetDemand, 0).build(),
EnergySupplyBuilder::new(
FuelType::UnmetDemand,
simulation_time_iterator.total_steps(),
)
.build(),
)),
);

Expand Down

0 comments on commit 5651feb

Please sign in to comment.