Skip to content

Commit

Permalink
bug fix for STT_CPP
Browse files Browse the repository at this point in the history
  • Loading branch information
ww1g11 committed Oct 25, 2024
1 parent 1446ed2 commit 6e2afd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
[compat]
julia = "1.9"
FFTW = "1"
JLD2 = "0.4"
JLD2 = "0.5"
KernelAbstractions = "0.9.2"
TimerOutputs = "0.5"
ReadVTK = "0.2"
Expand Down
3 changes: 2 additions & 1 deletion src/driver.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ mutable struct LLG_CPP{T<:AbstractFloat} <: Driver
integrator::Integrator
tol::Float64
p::Tuple{Real,Real,Real}
ufun::Function
end

mutable struct LLG_STT{T<:AbstractFloat} <: Driver
Expand Down Expand Up @@ -127,7 +128,7 @@ function create_driver(driver::String, integrator::String, n_total::Int64)
if integrator == "DormandPrinceCayley"
error(@sprintf("Unsupported combination driver %s and %s.", driver, integrator))
end
return LLG_CPP(T(0.5), T(0), T(2.21e5), aj, T(0), dopri5, tol, p)
return LLG_CPP(T(0.5), T(0), T(2.21e5), aj, T(0), dopri5, tol, p, fun)
end
return nothing
end

0 comments on commit 6e2afd2

Please sign in to comment.