From 417a8af5f6c9cf6e07cc7b34fa813a8220dd889c Mon Sep 17 00:00:00 2001 From: Phillip Weinberg Date: Fri, 22 Dec 2023 16:18:46 -0500 Subject: [PATCH] removing generics. --- src/checks.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/checks.jl b/src/checks.jl index 4daf0f2..be2c586 100644 --- a/src/checks.jl +++ b/src/checks.jl @@ -1,7 +1,7 @@ # 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 @@ -9,7 +9,7 @@ function check_max_allowed_steps(options::Options{T}) where T 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 @@ -17,7 +17,7 @@ function check_uround(options::Options{T}) where T end end -function check_beta(options::Options{T}) where T +function check_beta(options::Options) if options.beta > 0.2 return false else @@ -25,7 +25,7 @@ function check_beta(options::Options{T}) where T 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