Skip to content

Commit

Permalink
allow user specified sorting of nodes in hblinsolve
Browse files Browse the repository at this point in the history
  • Loading branch information
kpobrien committed Aug 9, 2024
1 parent a0e2657 commit 9745f20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hbsolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ true
function hblinsolve(w, circuit,circuitdefs; Nmodulationharmonics = (0,),
nonlinear=nothing, symfreqvar=nothing, threewavemixing=false,
fourwavemixing=true, maxintermodorder=Inf,
nbatches::Integer = Base.Threads.nthreads(), returnS = true,
nbatches::Integer = Base.Threads.nthreads(), sorting = :number, returnS = true,
returnSnoise = false, returnQE = true, returnCM = true,
returnnodeflux = false, returnnodefluxadjoint = false,
returnvoltage = false, returnvoltageadjoint = false,
Expand All @@ -481,7 +481,7 @@ function hblinsolve(w, circuit,circuitdefs; Nmodulationharmonics = (0,),
returnZsensitivity = false, returnZsensitivityadjoint = false) where K

# parse and sort the circuit
psc = parsesortcircuit(circuit)
psc = parsesortcircuit(circuit, sorting = sorting)

# calculate the circuit graph
cg = calccircuitgraph(psc)
Expand Down Expand Up @@ -511,8 +511,8 @@ end
hblinsolve(w, psc::ParsedSortedCircuit,
cg::CircuitGraph, circuitdefs, signalfreq::Frequencies{N};
nonlinear=nothing, symfreqvar=nothing,
nbatches::Integer = Base.Threads.nthreads(), returnS = true,
returnSnoise = false, returnQE = true, returnCM = true,
nbatches::Integer = Base.Threads.nthreads(), sorting = :number,
returnS = true, returnSnoise = false, returnQE = true, returnCM = true,
returnnodeflux = false, returnnodefluxadjoint = false,
returnvoltage = false,
)
Expand Down

0 comments on commit 9745f20

Please sign in to comment.