]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make an Assert in LA::distributed::Vector::compress_finish() less rigid 3727/head
authorDenis Davydov <davydden@gmail.com>
Tue, 3 Jan 2017 17:23:55 +0000 (18:23 +0100)
committerDenis Davydov <davydden@gmail.com>
Tue, 3 Jan 2017 17:23:55 +0000 (18:23 +0100)
Otherwise p::d::SolutionTransfer::interpolate() could trigger the
Assert due to round-off errors in certain scenarious.

include/deal.II/lac/la_parallel_vector.templates.h

index 24a6ee0c16ff17465f713b46883b3d3e3d5d33ec..37d8433162b04cdcd7cbd220beeaff493a55dd62 100644 (file)
@@ -680,7 +680,7 @@ namespace LinearAlgebra
                    j++, read_position++)
                 Assert(*read_position == Number() ||
                        std::abs(local_element(j) - *read_position) <=
-                       std::abs(local_element(j)) * 1000. *
+                       std::abs(local_element(j)) * 10000. *
                        std::numeric_limits<real_type>::epsilon(),
                        ExcNonMatchingElements(*read_position, local_element(j),
                                               part.this_mpi_process()));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.