From 8d4f1bed9933ff5e3521edeae4a0d12f0d774e6f Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 10 May 2024 20:43:57 -0400 Subject: [PATCH] Fix example --- examples/01_parallel_mpo_sum_2d_hubbard_conserve_momentum.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/01_parallel_mpo_sum_2d_hubbard_conserve_momentum.jl b/examples/01_parallel_mpo_sum_2d_hubbard_conserve_momentum.jl index ddefc8e..85d40ca 100644 --- a/examples/01_parallel_mpo_sum_2d_hubbard_conserve_momentum.jl +++ b/examples/01_parallel_mpo_sum_2d_hubbard_conserve_momentum.jl @@ -9,8 +9,9 @@ addprocs(2) @everywhere using ITensors using Random -include(joinpath(pkgdir(ITensors), "examples", "src", "electronk.jl")) -include(joinpath(pkgdir(ITensors), "examples", "src", "hubbard.jl")) +electronk_path = joinpath(pkgdir(ITensors), "src", "lib", "ITensorMPS", "examples", "src") +include(joinpath(electronk_path, "electronk.jl")) +include(joinpath(electronk_path, "hubbard.jl")) ITensors.BLAS.set_num_threads(1) ITensors.Strided.disable_threads()