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><div class="gmail_quote">
On Tue, Jul 31, 2012 at 4:20 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@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">
<div class="gmail_quote"><div class="im">On Tue, Jul 31, 2012 at 4:13 PM, Ronald M. Caplan <span dir="ltr"><<a href="mailto:caplanr@predsci.com" target="_blank">caplanr@predsci.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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></blockquote><div><br></div></div><div><a href="http://www.afterstep.org/afterimage/" target="_blank">http://www.afterstep.org/afterimage/</a></div><div class="im">
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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></blockquote>
<div><br></div></div><div>Run $PETSC_ARCH/conf/reconfigure-*.py --new-options</div><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br> Thanks again for your rapid responses!<br><br> - Ron C<div><div><br><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 3:23 PM, 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>
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" target="_blank">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>
<span><font color="#888888"><br>
Barry<br>
</font></span><div><div><br>
<br>
On Jul 31, 2012, at 3:17 PM, "Ronald M. Caplan" <<a href="mailto:caplanr@predsci.com" target="_blank">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>
</div></div></blockquote></div><br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>