check 'make test' [it runs 'testex19' in src/snes/examples/tutorials] As refered to earlier - this ex3.c can be run with -nox option
Satish you can runOn Thu, 1 Feb 2018, Amneet Bhalla wrote: > Got it. What example should I try to see PETSc is working? > > On Thu, Feb 1, 2018 at 9:00 AM Smith, Barry F. <[email protected]> wrote: > > > > > ex3.c has > > > > > > ierr = > > PetscViewerDrawOpen(PETSC_COMM_WORLD,0,0,0,0,400,400,&monP.viewer);CHKERRQ(ierr); > > > > so it is going to require that some Draw implementation is available. > > Since PETSc was apparently configure explicitly without support for x > > windows there is no Draw support hence the code has to stop with an error > > message. In other words this example requires X > > > > Barry > > > > > > > On Feb 1, 2018, at 10:51 AM, Amneet Bhalla <[email protected]> > > wrote: > > > > > > I am getting this if I run snes/examples/tutorial/ex3 manually in > > interactive session. > > > > > > [ex3 is a placeholder] > > > > > > On Thu, Feb 1, 2018 at 8:46 AM Smith, Barry F. <[email protected]> > > wrote: > > > > > > Where are you getting these errors from? Some PETSc tests? Your own > > code? > > > > > > > > > > On Feb 1, 2018, at 10:32 AM, Amneet Bhalla <[email protected]> > > wrote: > > > > > > > > Ok, and how to get rid of runtime error like > > > > > > > > [0]PETSC ERROR: PETSc installed without X windows, Microsoft Graphics, > > OpenGL ES, or GLUT/OpenGL on this machine > > > > > > > > > > > > configure with --with-x=0? > > > > > > > > On Thu, Feb 1, 2018 at 8:06 AM, Satish Balay <[email protected]> > > wrote: > > > > On Thu, 1 Feb 2018, Amneet Bhalla wrote: > > > > > > > > > P.S: I was also mucking with cray-petsc. However, I could not use it > > > > > in my application. Cray-petsc is built with parallel hdf5 and some > > > > > of the libraries I need use serial hdf5. At runtime, the application > > > > > picks parallel hdf5 and the application crashes :-(. I tried this on > > > > > my laptop also and got the same result. > > > > > > > > > > I think the only way out is to build my own version of PETSc without > > > > > (parallel) hdf5. > > > > > > > > Sure - its best to install petsc from source - for such special > > requirements. > > > > > > > > Satish > > > > > > > > > > > > > > > > -- > > > > --Amneet > > > > > > > > > > > > > > > > > > -- > > > --Amneet > > > > > > > > > > > > > -- > --Amneet >
