<div class="gmail_quote">On Fri, Aug 31, 2012 at 12:38 AM, Arun Kamath <span dir="ltr"><<a href="mailto:arun.kamath.m@gmail.com" target="_blank">arun.kamath.m@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 id=":1d3">My idea is to add Petsc options to the control file I have for my code for other options in the code and read them as in an example bit below.. So I was putting in the routines that we would be expecting to use in one file. That seems to be done now. Thanks for all the help.<br>
</div></blockquote><div><br></div><div>This looks hopelessly cryptic. Why not just pass the name of the options file to PetscInitialize() or PetscOptionsInsertFile(). It's one line and automatically "supports" all current and future options (of which there are infinitely many because options contain a compositional algebra).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":1d3">
<br>
case 'B': control>>numint;<br>
                                switch(numint)<br>
                                {<br>
                                case  5: control>>B5;<br>
                                                 clear(c,numint);<br>
                                                 break;<br>
                                case 10: control>>B10;<br>
                                                 clear(c,numint);<br>
                                                 break;<br>
                            case 11: control>>B11;<br>
                                                 clear(c,numint);<br>
                                                 break;</div></blockquote></div><br>