Skip to content

Commit

Permalink
Don't use assert-macro with precompile (HSU-ANT#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters authored Sep 6, 2021
1 parent d78528c commit 1c255a5
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions src/ACME.jl
Original file line number Diff line number Diff line change
Expand Up @@ -744,29 +744,29 @@ matsplit(v::AbstractVector, rowsizes) = [v[rs] for rs in consecranges(rowsizes)]
matsplit(m::AbstractMatrix, rowsizes, colsizes=[size(m,2)]) =
[m[rs, cs] for rs in consecranges(rowsizes), cs in consecranges(colsizes)]

@assert precompile(resistor, (Float64,))
@assert precompile(resistor, (Int,))
@assert precompile(potentiometer, (Float64,))
@assert precompile(potentiometer, (Int,))
@assert precompile(potentiometer, (Float64, Float64))
@assert precompile(potentiometer, (Int, Float64))
@assert precompile(capacitor, (Float64,))
@assert precompile(inductor, (Float64,))
@assert precompile(inductor, (Type{Val{:JA}},))
@assert precompile(transformer, (Float64, Float64))
@assert precompile(transformer, (Type{Val{:JA}},))
@assert precompile(voltagesource, ())
@assert precompile(voltagesource, (Float64,))
@assert precompile(voltagesource, (Int,))
@assert precompile(currentsource, ())
@assert precompile(currentsource, (Float64,))
@assert precompile(currentsource, (Int,))
@assert precompile(voltageprobe, ())
@assert precompile(currentprobe, ())
@assert precompile(diode, ())
@assert precompile(bjt, (Symbol,))
@assert precompile(mosfet, (Symbol,))
@assert precompile(opamp, ())
@assert precompile(opamp, (Type{Val{:macak}}, Float64, Float64, Float64))
precompile(resistor, (Float64,))
precompile(resistor, (Int,))
precompile(potentiometer, (Float64,))
precompile(potentiometer, (Int,))
precompile(potentiometer, (Float64, Float64))
precompile(potentiometer, (Int, Float64))
precompile(capacitor, (Float64,))
precompile(inductor, (Float64,))
precompile(inductor, (Type{Val{:JA}},))
precompile(transformer, (Float64, Float64))
precompile(transformer, (Type{Val{:JA}},))
precompile(voltagesource, ())
precompile(voltagesource, (Float64,))
precompile(voltagesource, (Int,))
precompile(currentsource, ())
precompile(currentsource, (Float64,))
precompile(currentsource, (Int,))
precompile(voltageprobe, ())
precompile(currentprobe, ())
precompile(diode, ())
precompile(bjt, (Symbol,))
precompile(mosfet, (Symbol,))
precompile(opamp, ())
precompile(opamp, (Type{Val{:macak}}, Float64, Float64, Float64))

end # module

0 comments on commit 1c255a5

Please sign in to comment.