itl interface example
Stephan Kramer <[email protected]> Sat, 14 Jan 2006 01:53:35 +0100 (CET)
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <Pine.LNX.4.62.0601140152430.21241@Phlox.theorie.physik.uni-goettingen.de> |
Dear MTL/ITL developers, I would like to integrate mtl/itl into my simulations needed for my phd. I got almost all of your itl working, the only thing that does not work is the interface example. During compilation I get the following messages: ../../itl/krylov/gmres.h: In function `int itl::gmres(const Matrix&, Vector&, const VectorB&, const Preconditioner&, int, Iter&, Basis&) [with Matrix = Matrix, Vector = Vector, VectorB = Vector, Preconditioner = itl::identity_preconditioner, Iter = itl::noisy_iteration<double>, Basis = itl::classical_gram_schmidt<Vector>]': gmres_classical_gram_schmidt.cpp:178: instantiated from here ../../itl/krylov/gmres.h:99: error: no matching function for call to `orthogonalize(itl::classical_gram_schmidt<Vector>&, std::vector<Type, std::allocator<Type> >&, size_t&)' gmres_classical_gram_schmidt.cpp:178: instantiated from here ../../itl/krylov/gmres.h:118: error: no matching function for call to `combine(itl::classical_gram_schmidt<Vector>&, std::vector<Type, std::allocator<Type> >&, std::vector<Type, std::allocator<Type> >&, size_t&)' make[1]: *** [gmres_classical_gram_schmidt.o] Error 1 make[1]: Leaving directory `/net/theorie/auto/local/lib/FEM/OOnumerics/ITL/itl-4.0.0-1/examples/interface' make: *** [all-recursive] Error 1 Besides some compiler complaints about missing typename's I noticed already at the beginning some problems with the template<class Linalg> linalg_traits struct in matrix_traits.h of mtl when Linalg=std::vector<double>. std::vector<double> does not provide, e.g. a dimension, at least not on our system (Mandriva linux 2005 gcc 3.4.3 for IA32), thus I had to write a specialization for this template. As everything else works fine, it would be a pitty if could not get at last the interface example to work. Unfortunately, I have no clue what to do, so maybe you can give me a hint. With best regards, Stephan Kramer %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % Stephan Kramer % % Institut fuer Theoretische Physik % % Universitaet Goettingen % % Friedrich-Hund-Platz 1 % % 37077 Goettingen % % % % phone: +49-551-39-9567 % % fax: +49-551-39-9631 % % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% _______________________________________________ This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/