Xiangdong <[email protected]> writes:

> I tired that, however it does not work either.

"does not work" is not specific.

> I  call the function like this:
> double myarray[10];
> int nmax=10;
> PetscOptionsGetRealArray(PETSC_NULL,'-myarray', myarray, &nmax,&flg);

printf("nmax = %d\n",nmax);
for (i=0; i<nmax; i++) {
  printf("  %g\n",myarray[i]);
}


Also, please just use NULL.

Attachment: pgp951bDJZkri.pgp
Description: PGP signature

Reply via email to