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 364
364
newex = quote
365
365
sol = SciMLBase. solve! (cache, $ (algchoice_to_alg (alg)), args... ; kwargs... )
366
366
if sol. retcode === ReturnCode. Failure && alg. safetyfallback
367
- # # TODO : Add verbosity logging here about using the fallback
367
+ @SciMLMessage (" LU factorization failed, falling back to QR factorization. `A` is potentially rank-deficient." ,
368
+ cache. verbose, :default_lu_fallback , :error_control )
369
+
368
370
sol = SciMLBase. solve! (cache, QRFactorization (ColumnNorm ()), args... ; kwargs... )
369
371
SciMLBase. build_linear_solution (alg, sol. u, sol. resid, sol. cache;
370
372
retcode = sol. retcode,
383
385
384
386
sol = SciMLBase. solve! (cache, $ (algchoice_to_alg (alg)), args... ; kwargs... )
385
387
if sol. retcode === ReturnCode. Failure && alg. safetyfallback
386
- # # TODO : Add verbosity logging here about using the fallback
388
+ @SciMLMessage (" LU factorization failed, falling back to QR factorization. `A` is potentially rank-deficient." ,
389
+ cache. verbose, :default_lu_fallback , :error_control )
390
+
387
391
sol = SciMLBase. solve! (cache, QRFactorization (ColumnNorm ()), args... ; kwargs... )
388
392
SciMLBase. build_linear_solution (alg, sol. u, sol. resid, sol. cache;
389
393
retcode = sol. retcode,
You can’t perform that action at this time.
0 commit comments