<div class="gmail_quote">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><a href="http://www.afterstep.org/afterimage/">http://www.afterstep.org/afterimage/</a></div><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>Run $PETSC_ARCH/conf/reconfigure-*.py --new-options</div><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 class="HOEnZb"><div class="h5"><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><br>