On Thu, 28 Feb 2019, Klaus Burkart via petsc-users wrote:

> Hello,
> I try to use the Hypre boomeramg preconditioner but I keep getting type 
> conversion errors like this one for PetscOptionsSetValue(...):
> Fehler: »const char*« kann nicht nach »PetscOptions« {aka »_n_PetscOptions*«} 
> umgewandelt werden
>      PetscOptionsSetValue("-pc_hypre_boomeramg_no_CF","true");
> 
> This is my setup:
> 
>     PCSetType(pc,PCHYPRE);
>     PCHYPRESetType(pc,"boomeramg");
>     PetscOptionsSetValue("-pc_hypre_boomeramg_no_CF","true");
> 
> What's the correct syntax for 
> PetscOptionsSetValue("-pc_hypre_boomeramg_no_CF","true"); ?

Check examples at: 
https://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscOptionsSetValue.html

  PetscOptionsSetValue(NULL,"-pc_hypre_boomeramg_no_CF","true");

Satish

Reply via email to