[petsc-users] cusp complex and std complex

Matthew Knepley knepley at gmail.com
Thu Sep 5 10:31:40 CDT 2013


On Thu, Sep 5, 2013 at 9:57 AM, Harshad Sahasrabudhe <hsahasra at purdue.edu>wrote:

> Hi,
>
> I am trying to compile my code, which uses std:complex<double> with PETSc
> (Complex) compiled with CUSP. At certain places, we use references to send
> vectors to PETSc for VecDot. In such a case, I get following errors:
>
>        no known conversion for argument 3 from 'cusp::complex<double>' to
> 'std::complex<double>&'
>
> Is there any way to get around these errors other than using PetscScalar
> instead of std::complex<double>?
>

Are we supposed to guess where this happens? Please send the entire compile
error, and if its in your code, send
a simple code that demonstrates the problem.

   Matt


> Thanks,
> Harshad
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130905/b2474194/attachment.html>


More information about the petsc-users mailing list