Skip to content

Commit

Permalink
Lowered the max expected size value
Browse files Browse the repository at this point in the history
  • Loading branch information
jrenaud90 committed Oct 3, 2023
1 parent b93c410 commit b4b0d74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion CyRK/cy/common.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cdef Py_ssize_t MAX_INT_SIZE = <Py_ssize_t>(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.

Expand Down
1 change: 0 additions & 1 deletion CyRK/cy/cysolver.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b4b0d74

Please sign in to comment.