[Dune] Dune::BlockVector and complex fieldtype

Christian Engwer christi at uni-hd.de
Sun Jun 22 21:09:50 CEST 2008


Dear Daniel,

which version of Dune are you using?

Christian

On Sat, Jun 21, 2008 at 01:17:11PM +0200, Daniel Peterseim wrote:
> 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
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune




More information about the Dune mailing list