Skip to content

Commit 3c8b9b0

Browse files
authored
polish
1 parent 0f57a73 commit 3c8b9b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/steadystate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ function _steadystate_fourier(
403403
# Create initial vector with GPU support
404404
v0 = _dense_similar(L_0_mat, n_fourier * N)
405405
fill!(v0, zero(T))
406-
allowed_setindex!(v0, weight, n_max*N+1) # Safe GPU indexing scalar indexing is not allowed in GPU
406+
v0[n_max * N + 1 : n_max * N + 1] .= weight
407407

408408
# Handle preconditioners
409409
(haskey(kwargs, :Pl) || haskey(kwargs, :Pr)) && error("The use of preconditioners must be defined in the solver.")

0 commit comments

Comments
 (0)