On Mon, Dec 12, 2011 at 7:27 AM, Dominik Szczerba <span dir="ltr">&lt;<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>&gt;</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, &amp;t);</div><div>Printf(&quot;%s\n&quot;, 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, &quot;%s\n&quot;,<br>
type); CHKERRQ(ierr);<br>
<br>
but always get this or another error like cannot convert &#39;char*&#39; to<br>
&#39;const char**&#39; 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>