<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">It seems I don't have this function. I checked my configuring options, in particular<div>--with-scalar-type=complex </div><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>thanks</div><div><br></div><div><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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 class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>Il giorno 04/lug/2012, alle ore 09:28, Jed Brown ha scritto:</div><br class="Apple-interchange-newline"><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><br></div></body></html>