If the latter (Petsc not configured to use Hypre), wouldn't Matt get an error when specifying hypre as preconditioner?<br><br>Yaron<br><br><br><div><span class="gmail_quote">On 9/29/06, <b class="gmail_sendername">Barry Smith
</b> &lt;<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&nbsp;&nbsp;Either you are not calling KSPSetFromOptions() in your
<br>code (or SNESSetFromOptions() OR PETSc was not configured<br>to use hypre. To configure PETSc to use hypre you<br>must use the additional config/configure.py option<br>--download-hypre<br><br>&nbsp;&nbsp;Good luck,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;Barry
<br><br><br>On Fri, 29 Sep 2006, Matt Funk wrote:<br><br>&gt; This might be a pretty stupid question, especially since i did this a while<br>&gt; back and it worked.<br>&gt;<br>&gt; However, how do i specify thsis? Do i run my executable do and then simply
<br>&gt; append -pc_type hypre -pc_hypre_type boomeramg -help and it will print out<br>&gt; the options?<br>&gt;<br>&gt;<br>&gt; Because when i do that i get:<br>&gt; Options for all PETSc programs:<br>&gt;&nbsp;&nbsp;-on_error_abort: cause an abort when an error is detected. Useful
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;only when run in the debugger<br>&gt;&nbsp;&nbsp;-on_error_attach_debugger [gdb,dbx,xxgdb,ups,noxterm]<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start the debugger in new xterm<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;unless noxterm is given<br>&gt;&nbsp;&nbsp;-start_in_debugger [gdb,dbx,xxgdb,ups,noxterm]
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start all processes in the debugger<br>&gt;&nbsp;&nbsp;-on_error_emacs &lt;machinename&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; emacs jumps to error file<br>&gt;&nbsp;&nbsp;-debugger_nodes [n1,n2,..] Nodes to start in debugger<br>&gt;&nbsp;&nbsp;-debugger_pause [m] : delay (in seconds) to attach debugger
<br>&gt;&nbsp;&nbsp;-stop_for_debugger : prints message on how to attach debugger manually<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; waits the delay for you to attach<br>&gt;&nbsp;&nbsp;-display display: Location where graphics and debuggers are displayed
<br>&gt;&nbsp;&nbsp;-no_signal_handler: do not trap error signals<br>&gt;&nbsp;&nbsp;-mpi_return_on_error: MPI returns error code, rather than abort on internal<br>&gt; error<br>&gt;&nbsp;&nbsp;-fp_trap: stop on floating point exceptions<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;note on IBM RS6000 this slows run greatly
<br>&gt;&nbsp;&nbsp;-malloc_dump &lt;optional filename&gt;: dump list of unfreed memory at conclusion<br>&gt;&nbsp;&nbsp;-malloc: use our error checking malloc<br>&gt;&nbsp;&nbsp;-malloc no: don't use error checking malloc<br>&gt;&nbsp;&nbsp;-mallocinfo: prints total memory usage
<br>&gt;&nbsp;&nbsp;-malloc_debug: enables extended checking for memory corruption<br>&gt;&nbsp;&nbsp;-options_table: dump list of options inputted<br>&gt;&nbsp;&nbsp;-options_left: dump list of unused options<br>&gt;&nbsp;&nbsp;-options_left no: don't dump list of unused options
<br>&gt;&nbsp;&nbsp;-tmp tmpdir: alternative /tmp directory<br>&gt;&nbsp;&nbsp;-shared_tmp: tmp directory is shared by all processors<br>&gt;&nbsp;&nbsp;-not_shared_tmp: each processor has separate tmp directory<br>&gt;&nbsp;&nbsp;-memory_info: print memory usage at end of run
<br>&gt;&nbsp;&nbsp;-get_total_flops: total flops over all processors<br>&gt;&nbsp;&nbsp;-log[_all _summary]: logging objects and events<br>&gt;&nbsp;&nbsp;-log_trace [filename]: prints trace of all PETSc calls<br>&gt;&nbsp;&nbsp;-info &lt;optional filename&gt;: print informative messages about the calculations
<br>&gt;&nbsp;&nbsp;-v: prints PETSc version number and release date<br>&gt;&nbsp;&nbsp;-options_file &lt;file&gt;: reads options from file<br>&gt;&nbsp;&nbsp;-petsc_sleep n: sleeps n seconds before running program<br>&gt;<br>&gt;<br>&gt; but nothing about hypre .... ?
<br>&gt;<br>&gt;<br>&gt; mat<br>&gt;<br>&gt;<br>&gt;<br>&gt; On Tuesday 19 September 2006 17:05, Yaron Kretchmer wrote:<br>&gt; &gt; Hi Matt<br>&gt; &gt; You can start experimenting by using<br>&gt; &gt; -pc_type hypre -pc_hypre_type boomeramg -help
<br>&gt; &gt; which will give you all the boomeramg options.<br>&gt; &gt;<br>&gt; &gt; When I use it I get intermittent segfaults, which I couldn't resolve with<br>&gt; &gt; the Hypre guys, so good luck.<br>&gt; &gt;<br>&gt; &gt; Yaron
<br>&gt; &gt;<br>&gt; &gt; On 9/19/06, Matt Funk &lt;<a href="mailto:mafunk@nmsu.edu">mafunk@nmsu.edu</a>&gt; wrote:<br>&gt; &gt; &gt; Hi,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; i am trying to use boomeramg from hypre in petsc. What i am doing right
<br>&gt; &gt; &gt; now is<br>&gt; &gt; &gt; simply do:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; m_ierr = PCSetType(m_pc,PCHYPRE);//CHKERRQ(ierr)<br>&gt; &gt; &gt; m_ierr = PCHYPRESetType(m_pc,&quot;boomeramg&quot;);<br>&gt; &gt; &gt;
<br>&gt; &gt; &gt; then i do my kspsetup etc...<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; i was wondering what other things i need to configure/set to properly use<br>&gt; &gt; &gt; the<br>&gt; &gt; &gt; hypre preconditioner with petsc. This is new to me, so i am not really
<br>&gt; &gt; &gt; experienced with this (that is using external packages through petsc).<br>&gt; &gt; &gt; Also,<br>&gt; &gt; &gt; these are the only hypre calls i found in the manual pages.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Maybe somebody with more experience can share some of their wisdom ...,
<br>&gt; &gt; &gt; or point to a place where i can read up on it?<br>&gt; &gt; &gt;<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; thanks<br>&gt; &gt; &gt; mat<br>&gt;<br>&gt;<br><br></blockquote></div><br>