From b4b0d74ec7317f8f052786f03d1ca6aaeca3fcbd Mon Sep 17 00:00:00 2001 From: Jrenaud-Desk Date: Tue, 3 Oct 2023 19:17:32 -0400 Subject: [PATCH] Lowered the max expected size value --- CyRK/cy/common.pyx | 2 +- CyRK/cy/cysolver.pyx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CyRK/cy/common.pyx b/CyRK/cy/common.pyx index b0bd608..465037c 100644 --- a/CyRK/cy/common.pyx +++ b/CyRK/cy/common.pyx @@ -21,7 +21,7 @@ cdef Py_ssize_t MAX_INT_SIZE = (0.95 * INT32_MAX) # # Memory management constants cdef double MIN_ARRAY_PREALLOCATE_SIZE = 100. -cdef double MAX_ARRAY_PREALLOCATE_SIZE = 1_000_000. +cdef double MAX_ARRAY_PREALLOCATE_SIZE = 100_000. cdef double ARRAY_PREALLOC_TABS_SCALE = 1000. # A delta_t_abs higher than this value will start to grow array size. cdef double ARRAY_PREALLOC_RTOL_SCALE = 1.0e-6 # A rtol lower than this value will start to grow array size. diff --git a/CyRK/cy/cysolver.pyx b/CyRK/cy/cysolver.pyx index 1d00817..76e5fbe 100644 --- a/CyRK/cy/cysolver.pyx +++ b/CyRK/cy/cysolver.pyx @@ -6,7 +6,6 @@ from libc.math cimport sqrt, fabs, nextafter, fmax, fmin, isnan, NAN, pow from cpython.mem cimport PyMem_Malloc, PyMem_Realloc, PyMem_Free -import sys import numpy as np cimport numpy as np