Skip to content

Commit c363eb8

Browse files
committed
Update kernel_write.jl
1 parent 9945bee commit c363eb8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/kernel_writer/kernel_write.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ kgen(num::Num, gradlist::Vector{Num}, raw_outputs::Vector{Symbol}; constants::Ve
1111
function kgen(num::Num, gradlist::Vector{Num}, raw_outputs::Vector{Symbol}, constants::Vector{Num}, overwrite::Bool, splitting::Symbol, affine_quadratic::Bool)
1212
# Create a hash of the expression and check if the function already exists
1313
expr_hash = string(hash(string(num)*string(gradlist)), base=62)
14-
# expr_hash = string(hash(num+sum(gradlist)), base=62)
1514
if (overwrite==false) && (isfile(joinpath(@__DIR__, "storage", "f_"*expr_hash*".jl")))
1615
try func_name = eval(Meta.parse("f_"*expr_hash))
1716
return func_name
@@ -103,9 +102,6 @@ function kgen(num::Num, gradlist::Vector{Num}, raw_outputs::Vector{Symbol}, cons
103102
elseif splitting==:high # Formerly default
104103
split_point = 1500
105104
max_size = 2000
106-
# elseif splitting==:high # More splitting
107-
# split_point = 1000
108-
# max_size = 1200
109105
elseif splitting==:max # Extremely small
110106
split_point = 500
111107
max_size = 750
@@ -129,11 +125,6 @@ function kgen(num::Num, gradlist::Vector{Num}, raw_outputs::Vector{Symbol}, cons
129125
kernel_count = 1
130126
# structure_list = String[] # Experimental
131127
while !complete
132-
# println("Kernel: $kernel_count")
133-
# for j in 1:length(n_lines)
134-
# println("$j : $(factored[j]), $(n_lines[j]), $(n_vars[j])")
135-
# end
136-
# println("")
137128
# Determine which line to break at
138129
line_ID = findfirst(x -> x > split_point, n_lines)
139130
vars_ID = findfirst(x -> (x == 30) || (x == 31), n_vars)

0 commit comments

Comments
 (0)