[petsc-users] error: too few arguments to function call (PetscOptionsHasName)
huabel
hu.ds.abel at icloud.com
Fri Apr 17 02:43:28 CDT 2020
Dear PETSc users,
I’m learn some base for PETSc , compile file src/benchmarks/PetscMalloc.c , get next error. (Use PETSc 3.13.0)
>pwd
src/benchmarks
>mpicc PetscMalloc.c
PetscMalloc.c:53:49: error: too few arguments to function call, expected 4, have 3
ierr = PetscOptionsHasName(NULL,"-malloc",&flg);CHKERRQ(ierr);
~~~~~~~~~~~~~~~~~~~ ^
/usr/local/include/petscoptions.h:18:1: note: 'PetscOptionsHasName' declared here
PETSC_EXTERN PetscErrorCode PetscOptionsHasName(PetscOptions,const char[],const char[],PetscBool*);
^
/usr/local/include/petscsys.h:106:24: note: expanded from macro 'PETSC_EXTERN'
# define PETSC_EXTERN extern PETSC_VISIBILITY_PUBLIC
^
1 error generated.
Thanks.
Abel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200417/59fdf36b/attachment.html>
More information about the petsc-users
mailing list