[Dune] Dune::BlockVector and complex fieldtype

Daniel Peterseim daniel.peterseim at math.uzh.ch
Sat Jun 21 13:17:11 CEST 2008


Dear all,

After defining an object v by

Dune::BlockVector<Dune::FieldVector<std::complex<double>,1> > v;

the intitialization

v=0.0;

causes "ambiguous overload error":

Fehler: ambiguous overload für »operator=« in »v = 0.0«
/usr/local/include/dune/istl/bvector.hh:424: Anmerkung: Kandidaten sind: Dune::BlockVector<B, A>& Dune::BlockVector<B, A>::operator=(const Dune::BlockVector<B, A>&) [with B = Dune::FieldVector<std::complex<double>, 1>, A = Dune::ISTLAllocator]
/usr/local/include/dune/istl/bvector.hh:457: Anmerkung:                  Dune::BlockVector<B, A>& Dune::BlockVector<B, A>::operator=(const typename B::field_type&) [with B = Dune::FieldVector<std::complex<double>, 1>, A = Dune::ISTLAllocator]

The problem arises also when I call "apply" for some iterative solver object from the istl-module in case of a complex valued matrix.

What is the right way to use complex fieldtype?

Best regards

Daniel






More information about the Dune mailing list