We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d03372 commit bbd0885Copy full SHA for bbd0885
src/prognostic_equations/implicit/auto_sparse_jacobian.jl
@@ -282,7 +282,8 @@ function jacobian_cache(
282
# max_memory is too small to fit any εs, try using one ε per partition.
283
# TODO: Replace the fields in I_matrix_partitions with column fields,
284
# making memory_for_I_matrix negligible compared to max_memory.
285
- n_εs_max = (max_memory - memory_for_I_matrix) ÷ memory_per_ε - 1
+ n_εs_max =
286
+ min(32, (max_memory - memory_for_I_matrix) ÷ memory_per_ε - 1)
287
cld(n_colors, max(n_εs_max, 1))
288
end
289
n_εs = cld(n_colors, n_partitions)
0 commit comments