[petsc-users] read command line options from a file

Felipe Cruz F.Cruz at bristol.ac.uk
Mon Feb 22 10:38:35 CST 2010


There is a petsc function for that, see here:

http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.0.0/docs/manualpages/Sys/PetscOptionsInsertFile.html

The format of the file is what Matt said.

Felipe

On 22 Feb 2010, at 17:24, Matthew Knepley wrote:

> You just put them in a file:
>
> -option1 val1
> -option2 val2
>
>    Matt
>
> On Mon, Feb 22, 2010 at 10:23 AM, <hxie at umn.edu> wrote:
> Hi,
>
> I'd like to put the command line options into a file and let the  
> PETSc read it. Any example for this? Thanks.
>
> Hui
>
>
>
> -- 
> What most experimenters take for granted before they begin their  
> experiments is infinitely more interesting than any results to which  
> their experiments lead.
> -- Norbert Wiener

----------------------------------------------------
Felipe Cruz
PhD student Applied Mathematics
Department of Mathematics
University of Bristol
Bristol BS8 1TW, UK
----------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20100222/4cf82283/attachment.htm>


More information about the petsc-users mailing list