Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimbrand committed Nov 25, 2023
1 parent e62a8cb commit a68e2c3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lomc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,7 @@ function lomc!(
address=starting_address(ham),
kwargs...
)
v = default_starting_vector(ham; style, threading, address)
if Threads.nthreads() > 1 && (threading false) || threading == true
v = PDVec(address => 10; style)
else
v = DVec(address => 10; style)
end
v = default_starting_vector(address; style, threading)
return lomc!(ham, v; address, kwargs...) # pass address for setting the default shift
end
# For continuation, you can pass a QMCState and a DataFrame
Expand Down

0 comments on commit a68e2c3

Please sign in to comment.