Skip to content

Commit

Permalink
Convert Int64 to standard Int to maintain 32-bit compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
johnzl-777 committed Dec 14, 2023
1 parent fc4342f commit 91173bf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ struct DP5Report{T <: Real}
checks::Checks
idid::Idid

num_func_evals::Int64
num_computed_steps::Int64
num_accepted_steps::Int64
num_rejected_steps::Int64
num_func_evals::Int
num_computed_steps::Int
num_accepted_steps::Int
num_rejected_steps::Int
end

@kwdef struct DP5Options{T <: Real}
Expand All @@ -37,9 +37,9 @@ end
initial_step_size::T = 0.0

# originally in iwork[1] - iwork[4]
maximum_allowed_steps::Int64 = 100000
maximum_allowed_steps::Int = 100000
print_error_messages::Bool = true
stiffness_test_activation_step::Int64 = 1000
stiffness_test_activation_step::Int = 1000

# should be either vector or repeated for type
atol::Union{T, Vector{T}} = 1e-10
Expand Down Expand Up @@ -69,8 +69,8 @@ end
x::T = zero(T)
h::T = zero(T)
facold::T = 1e-4
iasti::Int64 = 0
nonsti::Int64 = 0
iasti::Int = 0
nonsti::Int = 0
hlamb::T = zero(T)
last::Bool = false
end
Expand Down

0 comments on commit 91173bf

Please sign in to comment.