[petsc-dev] [petsc-users] Error during PETSc build on Edison

Smith, Barry F. bsmith at mcs.anl.gov
Thu Feb 1 11:00:53 CST 2018


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 <mail2amneet at gmail.com> 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. <bsmith at mcs.anl.gov> wrote:
> 
>   Where are you getting these errors from? Some PETSc tests? Your own code?
> 
> 
> > On Feb 1, 2018, at 10:32 AM, Amneet Bhalla <mail2amneet at gmail.com> 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 <balay at mcs.anl.gov> 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 
> 
> 
> 



More information about the petsc-dev mailing list