I tired that, however it does not work either. I call the function like this: double myarray[10]; int nmax=10; PetscOptionsGetRealArray(PETSC_NULL,'-myarray', myarray, &nmax,&flg);
Thanks. Xiangdong On Fri, Feb 14, 2014 at 1:08 PM, Jed Brown <[email protected]> wrote: > Xiangdong <[email protected]> writes: > > > Hello everyone, > > > > I want to pass a array into petsc through command line. What is the > correct > > format for PetscOptionsGetRealArray? > > -myarray 1,2,3,4,5 >
