Skip to content

Commit

Permalink
Update simulation_initialization.jl (#218)
Browse files Browse the repository at this point in the history
Variable `p` is not defined for string formatting in `check_valid_values`.
  • Loading branch information
rwl authored May 5, 2022
1 parent 9a44f9b commit 0a4ea2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/simulation_initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function check_valid_values(initial_guess::Vector{Float64}, inputs::SimulationIn
all(isfinite, initial_guess) && continue
for state in get_global_index(device)
if state.second i
push!(invalid_initial_guess, "$device - $(p.first)")
push!(invalid_initial_guess, "$device - $(state.first)")
end
end
end
Expand Down

0 comments on commit 0a4ea2c

Please sign in to comment.