Skip to content

Commit

Permalink
Merge pull request #971 from chriselrod/fixthermalfluidsolverchoice
Browse files Browse the repository at this point in the history
Only use autodiff for the Julia backend
  • Loading branch information
ChrisRackauckas authored Jun 19, 2024
2 parents ef7109b + e1b2a32 commit cb8cb34
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion benchmarks/ModelingToolkit/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ BenchmarkTools = "1.5.0"
CairoMakie = "0.11.11"
DataFrames = "1"
CSV = "0.10"
CairoMakie = "0.11.11"
JuliaSimCompiler = "0.1.9"
JuliaSimCompilerRuntime = "1.0.0"
LinearSolve = "2.30.0"
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/ModelingToolkit/ThermalFluid.jmd
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function build_run_problem(fsys, N; target=JuliaSimCompiler.JuliaTarget())
t_ss, t_fode, t_run
end

function test_speed(fsys, N; solver=FBDF(), target=JuliaSimCompiler.JuliaTarget())
function test_speed(fsys, N; target=JuliaSimCompiler.JuliaTarget(), solver=FBDF(;autodiff = target===JuliaSimCompiler.JuliaTarget()))
tspan = (0.0, 19*3600)
t_total = @elapsed begin
@named testbench = TestBenchPreinsulated(L=470, N=N, dn=0.3127, t_layer=[0.0056, 0.058])
Expand Down

0 comments on commit cb8cb34

Please sign in to comment.