Skip to content

Commit

Permalink
add clear method
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-lara committed Jan 25, 2024
1 parent a22a04b commit 5763533
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/PowerFlowData.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ get_power_network_matrix(pfd::PowerFlowData) = pfd.power_network_matrix
get_aux_network_matrix(pfd::PowerFlowData) = pfd.aux_network_matrix
get_neighbor(pfd::PowerFlowData) = pfd.neighbors

Check warning on line 90 in src/PowerFlowData.jl

View check run for this annotation

Codecov / codecov/patch

src/PowerFlowData.jl#L74-L90

Added lines #L74 - L90 were not covered by tests

function clear_injection_data!(pfd::PowerFlowData)
pfd.bus_activepower_injection[:] = 0.0
pfd.bus_reactivepower_injection[:] = 0.0
pfd.bus_activepower_withdrawals[:] = 0.0
pfd.bus_reactivepower_withdrawals[:] = 0.0
return

Check warning on line 97 in src/PowerFlowData.jl

View check run for this annotation

Codecov / codecov/patch

src/PowerFlowData.jl#L92-L97

Added lines #L92 - L97 were not covered by tests
end

# AC Power Flow Data
# TODO -> MULTI PERIOD: AC Power Flow Data
function _calculate_neighbors(
Expand Down

0 comments on commit 5763533

Please sign in to comment.