Skip to content

Commit

Permalink
removing generics.
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 committed Dec 22, 2023
1 parent 720e178 commit 417a8af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/checks.jl
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# include("types.jl")

# make enums for every error type and return that instead of printing errors
function check_max_allowed_steps(options::Options{T}) where T
function check_max_allowed_steps(options::Options)
if options.maximum_allowed_steps < 0
return false
else
return true
end
end

function check_uround(options::Options{T}) where T
function check_uround(options::Options)
if (options.uround <= 1e-35) || (options.uround >= 1.0)
return false
else
return true
end
end

function check_beta(options::Options{T}) where T
function check_beta(options::Options)
if options.beta > 0.2
return false
else
return true
end
end

function check_safety_factor(options::Options{T}) where T
function check_safety_factor(options::Options)
if (options.safety_factor >= 1.0) || (options.safety_factor <= 1e-4)
return false
else
Expand Down

0 comments on commit 417a8af

Please sign in to comment.