From 2f655e85c7b3b214a52c7c7394ecc72c7f9d149c Mon Sep 17 00:00:00 2001 From: Dmitry Kabanov Date: Mon, 9 Dec 2024 14:36:30 +0100 Subject: [PATCH] Fix a couple stylistic things in Julia code --- oif_impl/impl/ivp/jl_diffeq/jl_diffeq.jl | 2 +- oif_impl/lang_julia/callback.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oif_impl/impl/ivp/jl_diffeq/jl_diffeq.jl b/oif_impl/impl/ivp/jl_diffeq/jl_diffeq.jl index 02c2c8a8..4f69aa4e 100644 --- a/oif_impl/impl/ivp/jl_diffeq/jl_diffeq.jl +++ b/oif_impl/impl/ivp/jl_diffeq/jl_diffeq.jl @@ -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 diff --git a/oif_impl/lang_julia/callback.jl b/oif_impl/lang_julia/callback.jl index 336e094c..6ac78924 100644 --- a/oif_impl/lang_julia/callback.jl +++ b/oif_impl/lang_julia/callback.jl @@ -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