On Mon, Dec 12, 2011 at 7:27 AM, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Is there a C example how to use GetVecType?<br>
I am trying to do something like<br>
<br>
// VecType* type;<br>
char type[1024];<br>
ierr = VecGetType(b, type);<br></blockquote><div><br></div><div>VecType t;</div><div><br></div><div>VecGetType(b, &t);</div><div>Printf("%s\n", t);</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ierr = PetscSynchronizedFPrintf(PETSC_COMM_WORLD, stderr, "%s\n",<br>
type); CHKERRQ(ierr);<br>
<br>
but always get this or another error like cannot convert 'char*' to<br>
'const char**' or similar.<br>
<br>
Many thanks<br>
<span class="HOEnZb"><font color="#888888">Dominik<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>