Re: [petsc-users] Expecting Explanation

2018-11-18 Thread Fazlul Huq via petsc-users
So I have to remove mpiexec from usr/bin and keep it in home/petsc-3.10.2/lib/petsc/bin Is it? Thanks. Sincerely, Huq On Sun, Nov 18, 2018 at 6:49 AM Matthew Knepley wrote: > On Sat, Nov 17, 2018 at 10:37 PM Fazlul Huq via petsc-users < > petsc-users@mcs.anl.gov> wrote: > >> I tried to reconfig

Re: [petsc-users] Expecting Explanation

2018-11-17 Thread Smith, Barry F. via petsc-users
Then use ${PETSC_DIR}/${PETSC_ARCH}/bin/mpiexec don't just use the random (wrong) mpiexec that is in your path. Barry > On Nov 17, 2018, at 5:22 PM, Fazlul Huq wrote: > > I think when I have installed PETSc, I did --download-mpich. > How can I correct it? Shall I install PETS

Re: [petsc-users] Expecting Explanation

2018-11-17 Thread Smith, Barry F. via petsc-users
> On Nov 17, 2018, at 3:51 PM, Fazlul Huq via petsc-users > wrote: > > Thanks for the answer. > > So, when I run the code with "mpiexec -n 2 ./ex6" or "mpiexec -n 4 ./ex6" > shouldn't it spit out > the error "This is a uniprocessor example only!"? > But it didn't do that rather run the co

Re: [petsc-users] Expecting Explanation

2018-11-17 Thread Sanjay Govindjee via petsc-users
Throws the proper error on my machine: $ ~/petsc-3.10.1/intel/bin/mpirun -np 2 ex6 [0]PETSC ERROR: - Error Message -- [0]PETSC ERROR: This is a uniprocessor example only! On 11/17/18 1:51 PM, Fazlul Huq via petsc-u

Re: [petsc-users] Expecting Explanation

2018-11-17 Thread Smith, Barry F. via petsc-users
Note the code in the example /* Open viewer for binary output */ ierr = PetscViewerBinaryOpen(PETSC_COMM_SELF,"input.dat",FILE_MODE_WRITE,&view_out);CHKERRQ(ierr); ierr = PetscViewerBinaryGetDescriptor(view_out,&fd);CHKERRQ(ierr); /* Write binary output */ ierr = PetscBinaryWrite(f