[petsc-users] Ignore command line arguments with fortran code using PETSc

Tim Steinhoff kandanovian at gmail.com
Wed Jul 27 09:55:42 CDT 2016


2016-07-27 16:04 GMT+02:00 Matthew Knepley <knepley at gmail.com>:
> On Wed, Jul 27, 2016 at 4:59 AM, Tim Steinhoff <kandanovian at gmail.com>
> wrote:
>>
>> Hi all,
>>
>> we coupled PETSc with our fortran code. Is there any way to let PETSc
>> (PetscInitialize) ignore all arguments passed by the command line?
>> Since our code is controlled by command line arguements as well, it
>> leads to a mess, when those arguments are read twice.
>
>
> 1) You can use PetscInitializeNoArguments()

Thanks! I thought that function was for C/C++ only.

>
> 2) What goes wrong? PETSc should just ignore any options it does not
> recognize.


The problem is that our code uses the same or similar argument names
as PETSc does and our end user should not have access to all petsc
options.


>
>   Thanks,
>
>     Matt
>
>>
>> Thanks and kind regards,
>>
>> Volker
>
>
>
>
> --
> 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


More information about the petsc-users mailing list