[petsc-users] PetscOptionsGetRealArray command line format
Jed Brown
jed at jedbrown.org
Fri Feb 14 12:31:08 CST 2014
Xiangdong <epscodes at gmail.com> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140214/31864c9b/attachment.pgp>
More information about the petsc-users
mailing list