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