Skip to content

Commit

Permalink
Fix #403
Browse files Browse the repository at this point in the history
  • Loading branch information
ViralBShah committed Feb 2, 2024
1 parent 27203d0 commit 5d24d81
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/raster/advanced.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,18 +207,18 @@ function advanced_kernel(prob::AdvancedProblem{T,V,S}, flags, cfg)::Tuple{Matrix
local_nodemap = construct_local_node_map(nodemap, c, polymap)
solver_called = true

if write_v_maps
is_raster ? accum_voltages!(outvolt, voltages[c], local_nodemap, hbmeta) :
if write_v_maps
is_raster ? accum_voltages!(outvolt, voltages[c], local_nodemap, hbmeta) :
accum_voltages!(outvolt, voltages, local_nodemap, hbmeta)
end
if write_c_maps
is_raster ? accum_currents!(outcurr, voltages[c], cfg, a_local, voltages[c], f_local, local_nodemap, hbmeta) :
if write_c_maps
is_raster ? accum_currents!(outcurr, voltages[c], cfg, a_local, voltages[c], f_local, local_nodemap, hbmeta) :
accum_currents!(outcurr, voltages, cfg, G, voltages, finitegrounds, local_nodemap, hbmeta)
end

_is = map(i -> Int(local_nodemap[i]), 1:length(volt))
_isn0 = findall(!iszero, _is)
volt[_isn0] .= voltages[c][_is[_isn0]]
volt[_isn0] .= voltages[c][_is[_isn0]]
end

name = src == 0 ? "" : "_$(V(src))"
Expand Down Expand Up @@ -272,7 +272,7 @@ function advanced_kernel(prob::AdvancedProblem{T,V,S}, flags, cfg)::Tuple{Matrix
end


function multiple_solver(cfg, solver, a::SparseMatrixCSC{T,V}, sources, grounds, finitegrounds) where {T,V,S}
function multiple_solver(cfg, solver, a::SparseMatrixCSC{T,V}, sources, grounds, finitegrounds) where {T,V}

asolve = deepcopy(a)
if finitegrounds[1] != -9999
Expand Down

0 comments on commit 5d24d81

Please sign in to comment.