Hi,<br><br>Yes, the error occurs when I use -mat_view_draw even without -draw_save.<br><br>My previous pets configuration was identical to mine but without the --with-afterimage and the matrices showed up in xwindows.<br><br>
I downloaded and installed the latest afterimage and ffmpeg.<br><br> - Ron C<br><br><div class="gmail_quote">On Wed, Aug 1, 2012 at 10:53 AM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
  Switching discussion to <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a> so we can track down the problem.<br>
<br>
  Does this error come up even without -draw_save and -draw_save_movie options?<br>
<br>
  If yes then please create a new PETSC_ARCH with the exact same ./configure options but NO --with-afterimage.   Does this PETSC_ARCH correctly draw X windows without the error?<br>
<span class="HOEnZb"><font color="#888888"><br>
   Barry<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Aug 1, 2012, at 12:07 PM, Ronald M. Caplan <<a href="mailto:caplanr@predsci.com">caplanr@predsci.com</a>> wrote:<br>
<br>
> After configuring with --with-afterimage I now cannot even get eh x-windows to show the matrix at all.  I get the following error:<br>
><br>
> X Error of failed request:  BadValue (integer parameter out of range for operation)<br>
>   Major opcode of failed request:  1 (X_CreateWindow)<br>
>   Value in failed request:  0xae<br>
>   Serial number of failed request:  7<br>
>   Current serial number in output stream:  14<br>
><br>
>  - Ron<br>
><br>
><br>
><br>
> On Tue, Jul 31, 2012 at 4:20 PM, Jed Brown <<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>> wrote:<br>
> On Tue, Jul 31, 2012 at 4:13 PM, Ronald M. Caplan <<a href="mailto:caplanr@predsci.com">caplanr@predsci.com</a>> wrote:<br>
> Thanks!<br>
><br>
> I can't seem to get it to work though.<br>
> When I configure --with-afterimage it says that I need to download it.  When I use --download-afterimage it says:<br>
> "External package afterimage does not support --download-afterimage"<br>
><br>
> I am using a MAC with OS X.   Where can I download afterimage?<br>
><br>
> <a href="http://www.afterstep.org/afterimage/" target="_blank">http://www.afterstep.org/afterimage/</a><br>
><br>
><br>
> Also, in general, if I want to add a configure to petsc with ./configure, do I have to run ./configure with ALL my options, or just with the new ones I want to add/change?  Will it save my previous configure?<br>
><br>
> Run $PETSC_ARCH/conf/reconfigure-*.py --new-options<br>
><br>
><br>
>  Thanks again for your rapid responses!<br>
><br>
>  - Ron C<br>
><br>
><br>
> On Tue, Jul 31, 2012 at 3:23 PM, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br>
><br>
>   Sorry the postscript never really worked and then the world went PDF.<br>
><br>
>   You can do what you want in PETSc 3.3 with<br>
><br>
>     ierr = PetscOptionsBool("-draw_save_movie","Make a movie from the images saved","PetscDrawSetSave",movie,&movie,PETSC_NULL);CHKERRQ(ierr);<br>
>     ierr = PetscOptionsString("-draw_save","Save graphics to file","PetscDrawSetSave",filename,filename,PETSC_MAX_PATH_LEN,&save);CHKERRQ(ierr);<br>
><br>
> /*@C<br>
>    PetscDrawSave - Saves images produced in a PetscDraw into a file as a Gif file using AfterImage<br>
><br>
>    Collective on PetscDraw<br>
><br>
>    Input Parameter:<br>
> +  draw      - the graphics context<br>
> .  filename  - name of the file, if PETSC_NULL uses name of draw object<br>
> -  movie - produce a movie of all the images<br>
><br>
>    Options Database Command:<br>
> +  -draw_save  <filename><br>
> -  -draw_save_movie<br>
><br>
>    Level: intermediate<br>
><br>
>    Concepts: X windows^graphics<br>
>    Concepts: drawing^postscript<br>
>    Concepts: postscript^graphics<br>
>    Concepts: drawing^Microsoft Windows<br>
><br>
>    Notes: Requires that PETSc be configured with the option --with-afterimage<br>
><br>
><br>
> .seealso: PetscDrawSetFromOptions(), PetscDrawCreate(), PetscDrawDestroy(), PetscDrawSave()<br>
><br>
>   Please report any problems to <a href="mailto:petsc-maint@mcs.anl.gov">petsc-maint@mcs.anl.gov</a><br>
><br>
>   Note that you must make sure the windows being saved are not covered by other windows.<br>
><br>
>    Barry<br>
><br>
><br>
> On Jul 31, 2012, at 3:17 PM, "Ronald M. Caplan" <<a href="mailto:caplanr@predsci.com">caplanr@predsci.com</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I saw online that back in 2006 there was a way to tell PETSc to save the image in -mat_view_draw into a postscript file.  Is there anyway to still do this?  Or to same the image into any format?  Or to save a movie of the residual images in ksp?<br>

> ><br>
> > Thanks,<br>
> ><br>
> > Ron C.<br>
><br>
><br>
><br>
><br>
<br>
</div></div></blockquote></div><br>