]> https://gitweb.dealii.org/ - dealii.git/commit
Add std::complex support to integrate_difference()
authorDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Wed, 9 Oct 2019 07:43:41 +0000 (09:43 +0200)
committerDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Wed, 9 Oct 2019 07:43:41 +0000 (09:43 +0200)
commit57e6ebf571633f7e44a5fb6e64831d494f9bf79d
treef3e6662bd00162918e1dd49e928a27739a53a523
parenta7a1afbb2622bbc2ebfc7ea50ac6accaa86f187c
Add std::complex support to integrate_difference()

The type of exact_solution was double and fe_function could have any numerical
type (double, float, std::complex<double> or std::complex<float>). This would
lead in certain cases to unnecessary casts, for example from double to float.
In addition it was not possible to compare a std::complex exact_solution to a
std::complex fe_function.

Now the types of exact_solution and fe_function must be the same, as a result
integrate_difference() can be used to compare a std::complex exact_solution to
a std::complex fe_function.

This change is not backward-compatible. The old version of the function has
been deprecated.
include/deal.II/numerics/vector_tools.h
include/deal.II/numerics/vector_tools.templates.h
source/numerics/vector_tools_integrate_difference.inst.in

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.