File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 365
365
newex = quote
366
366
sol = SciMLBase. solve! (cache, $ (algchoice_to_alg (alg)), args... ; kwargs... )
367
367
if sol. retcode === ReturnCode. Failure && alg. safetyfallback
368
- # # TODO : Add verbosity logging here about using the fallback
368
+ @SciMLMessage (" LU factorization failed, falling back to QR factorization. `A` is potentially rank-deficient." ,
369
+ cache. verbose, :default_lu_fallback , :error_control )
370
+
369
371
sol = SciMLBase. solve! (
370
372
cache, QRFactorization (ColumnNorm ()), args... ; kwargs... )
371
373
SciMLBase. build_linear_solution (alg, sol. u, sol. resid, sol. cache;
385
387
386
388
sol = SciMLBase. solve! (cache, $ (algchoice_to_alg (alg)), args... ; kwargs... )
387
389
if sol. retcode === ReturnCode. Failure && alg. safetyfallback
388
- # # TODO : Add verbosity logging here about using the fallback
390
+ @SciMLMessage (" LU factorization failed, falling back to QR factorization. `A` is potentially rank-deficient." ,
391
+ cache. verbose, :default_lu_fallback , :error_control )
392
+
389
393
sol = SciMLBase. solve! (
390
394
cache, QRFactorization (ColumnNorm ()), args... ; kwargs... )
391
395
SciMLBase. build_linear_solution (alg, sol. u, sol. resid, sol. cache;
You can’t perform that action at this time.
0 commit comments