From 8aac5980dab1150a558f0a5bd66b7256cd905fad Mon Sep 17 00:00:00 2001 From: n0rbed Date: Mon, 26 Aug 2024 03:35:14 +0300 Subject: [PATCH] warn for non-cyclic case --- ext/SymbolicsGroebnerExt.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/SymbolicsGroebnerExt.jl b/ext/SymbolicsGroebnerExt.jl index 0baf87103..8c0abf07d 100644 --- a/ext/SymbolicsGroebnerExt.jl +++ b/ext/SymbolicsGroebnerExt.jl @@ -233,7 +233,10 @@ function solve_zerodim(eqs::Vector, vars::Vector{Num}; dropmultiplicity=true, wa end # non-cyclic case - n_iterations > 10 && return [] + if n_iterations > 10 + warns && @warn("symbolic_solve can not currently solve this system of polynomials.") + return nothing + end n_iterations += 1 end