<div class="gmail_quote">On Tue, Jul 3, 2012 at 11:53 PM, Luigia Ambrosio <span dir="ltr"><<a href="mailto:ambrosio.luigia@gmail.com" target="_blank">ambrosio.luigia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">It seems I don't have this function. I checked my configuring options, in particular<div>--with-scalar-type=complex </div></div></blockquote><div><br></div><div>Which version of PETSc? Can you send the full error message?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><br></div><div>so I'm sure that a PetscScalar variable is handled as a complex number. I tried to use the PetscRealPart but it says:</div>
<div>error: 'PetscRealPart' was not declared in this scope</div><div><br></div><div>I included also the header "petscmat.h" but there isn't defined this function. </div><div>It seems that I don't include the right header, I googled it but I didn't find it. Which header shiuld I include?</div>
</div></blockquote><div><br></div><div>That header includes petscmath.h (which you should not include directly).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>thanks</div><div><br></div><div><div class="im"><div>
<div style="word-wrap:break-word"><div>Luigia Ambrosio</div><div><br></div><div>Se la gente ferisce è perchè tu sei migliore e lo capisce bene! - Tiziano Ferro</div><div><br></div></div><br><br>
</div>
<br></div><div><div>Il giorno 04/lug/2012, alle ore 09:28, Jed Brown ha scritto:</div><div class="im"><br><blockquote type="cite"><div class="gmail_quote">On Tue, Jul 3, 2012 at 11:26 PM, Luigia Ambrosio <span dir="ltr"><<a href="mailto:ambrosio.luigia@gmail.com" target="_blank">ambrosio.luigia@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Is there a function already avilable to get the real part of a petscscalar value?<div><br></div></div></blockquote><div><br></div><div>PetscRealPart() and PetscImaginaryPart() </div></div>

</blockquote></div></div><br></div></div></blockquote></div><br>