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