Skip to content

Commit

Permalink
Fix a couple stylistic things in Julia code
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kabanov committed Dec 9, 2024
1 parent 0977fd5 commit 2f655e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oif_impl/impl/ivp/jl_diffeq/jl_diffeq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ function _init(self::Self)
_rhs_wrapper(self.rhs), self.y0, (self.t0, Inf), self.user_data
)
end
self.solver = init(problem, self.integrator, reltol = self.reltol, abstol = self.abstol, save_everystep = false)
self.solver = init(problem, self.integrator; reltol = self.reltol, abstol = self.abstol, save_everystep = false)
end
end
2 changes: 1 addition & 1 deletion oif_impl/lang_julia/callback.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import SciMLBase
using OpenInterfaces: OIFArrayF64

function make_wrapper_over_c_callback(fn_c::Ptr{Cvoid})::Function
function wrapper(t, y, ydot, user_data)::Int
function wrapper(t::Float64, y::Vector{Float64}, ydot::Vector{Float64}, user_data)::Int
if typeof(user_data) == SciMLBase.NullParameters
user_data = C_NULL
end
Expand Down

0 comments on commit 2f655e8

Please sign in to comment.