> On Jan 13, 2020, at 9:32 AM, Pierre Jolivet <pierre.joli...@enseeiht.fr> 
> wrote:
> 
> Hello,
> This is actually two separate questions, sorry.
> 1) I’m looking for the Fortran equivalent of the following, but I couldn’t 
> get any help looking at the sources.
>  ierr = PetscOptionsBegin(PETSC_COMM_WORLD,"","","");CHKERRQ(ierr);
>  ierr = PetscOptionsFList("-mat_type","Matrix 
> type","MatSetType",MatList,deft,type,256,&flg);CHKERRQ(ierr);
>  ierr = PetscOptionsEnd();CHKERRQ(ierr);

   These are based on C macros and have some funny arguments so would require 
all custom Fortran stubs and interfaces. Sorry no one has written them.


> 2) I have Fortran tests which share the same outputs as my C tests. I want to 
> use the same output_file, but my test has a separate output parameter. Is 
> there someway to generate output_file dynamically?
> !   test:
> !      suffix: foo
> !      output_file: output/ex76_foo_bar-%D.out <— how to?
> !      nsize: 4
> !      args: -bar {{5 15}separate output}
> If it’s not possible in Fortran, but possible in C, I can switch things 
> around of course.
> 
> Thanks,
> Pierre

Reply via email to