[Dune] [#729] Singularity detection in FieldMatrix' LU decomposition buggy (Attachment added)
Dune
flyspray at dune-project.org
Mon Feb 1 14:20:59 CET 2010
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#729 - Singularity detection in FieldMatrix' LU decomposition buggy
User who did this - Christian Engwer (christi)
----------
Andreas, you can just change the threshold to 0 in your application.
0) just call Dune::FMatrixPrecision<>::set_singular_limit(0.0);
1) Rescaling is the way to go if the matrix is like in your case, although you should better scale the last line by 1e-9.
2) Full pivoting would be the proper fix, but your suggested fix isn't a fix at all.
If you just force dune to invert your matrix, you A*A^-1 is a lot worse compared to the scaled version (see code attached):
============orig=============
1 0 0 6.53252e-21
9.04729e-24 1 4.69256e-19 -1.55248e-27
0 0 1 0
-3.41061e-13 0 0 1
============scaled=============
1 0 0 0
2.67283e-23 1 1.07997e-19 -1.70084e-18
0 0 1 0
1.12579e-21 7.75205e-18 7.72219e-18 1
----------
One or more files have been attached.
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=729#comment1717
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list