Skip to content
Snippets Groups Projects
Commit bde9dc6e authored by Christian Engwer's avatar Christian Engwer
Browse files

[test,fieldvector] also test for GMPField

most of the tests work. std::complex<GMPField> does not work as expected, but this is
perhaps something we don't want to support. As std::complex does not allow to initialize
with other parameters than the data type itself, we can not initialize from int or other
compatible scalar values. The smae problem occures when interacting with int values directly.
parent 2d38fedf
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
#include <dune/common/exceptions.hh>
#include <dune/common/typetraits.hh>
#include <dune/common/classname.hh>
#include <dune/common/gmpfield.hh>
#include <iostream>
#include <complex>
#include <typeinfo>
......@@ -380,6 +381,17 @@ int main()
FieldVectorTest<double, 3>();
FieldVectorTest<int, 1>();
FieldVectorTest<double, 1>();
#if HAVE_GMP
// we skip the complex test and the int test, as these will be very hard to implement with GMPField
typedef Dune::GMPField<128u> ft;
FieldVectorMainTest<ft,ft,3>();
FieldVectorMainTest<ft,ft,2>();
FieldVectorMainTest<ft,ft,1>();
FieldVectorMainTest<ft,ft,0>();
ScalarOperatorTest<ft>();
ScalarOrderingTest<ft>();
DotProductTest<ft,3>();
#endif // HAVE_GMP
test_nan();
test_infinity_norms();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment