[petsc-users] Hypre through Petsc: BoomerAMG options

Jed Brown jedbrown at mcs.anl.gov
Fri Aug 31 06:14:01 CDT 2012


On Fri, Aug 31, 2012 at 12:38 AM, Arun Kamath <arun.kamath.m at gmail.com>wrote:

> 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.
>

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).


>
> case 'B': control>>numint;
>                                 switch(numint)
>                                 {
>                                 case  5: control>>B5;
>                                                  clear(c,numint);
>                                                  break;
>                                 case 10: control>>B10;
>                                                  clear(c,numint);
>                                                  break;
>                             case 11: control>>B11;
>                                                  clear(c,numint);
>                                                  break;
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120831/2e98a0c2/attachment-0001.html>


More information about the petsc-users mailing list