[petsc-users] reference, copy or constant view?

Jed Brown jed at jedbrown.org
Wed Dec 10 11:47:58 CST 2014


Andrew Spott <ansp6066 at colorado.edu> writes:

> Thanks for the help regarding etags.  I used to have them set up, I’ll have to reconfigure them.
>
>
>
>
>>Actually, do call ESPSetOperators so that EPS knows….
>
>
>
>
>
>
> Unfortunately this just confused me more.  Am I reading this correctly in that doing:
>
>
>
>
>
>             EPSSetOperators(eps, *A, PETSC_NULL);
>
>             EPSSetProblemType(eps, EPS_HEP);
>
>             EPSSetType(eps, EPSKRYLOVSCHUR);
>
>             EPSSetWhichEigenpairs(eps,  EPS_TARGET_REAL);
>
>             EPSSetTarget(eps, -0.903801);
>
>             EPSSetDimensions(eps, 1000, PETSC_DEFAULT, PETSC_DEFAULT);
>
>             EPSSetInitialSpace(eps,1,&eigenvector);
>
>             EPSSolve(eps);
>
>
>
>
> Won’t actually change *A?  

Correct.

> What about VecDot?

It does not change the vectors.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141210/5a5321ee/attachment.pgp>


More information about the petsc-users mailing list