[petsc-users] Solving Poisson equation with multigrid

Michele Rosso mrosso at uci.edu
Fri May 17 17:13:44 CDT 2013


Thank you.
I tried to run with

-pc_type mg -pc_mg_levels 3

but I got the following error:

[0]PETSC ERROR: --------------------- Error Message 
------------------------------------
[0]PETSC ERROR: Object is in wrong state!
[0]PETSC ERROR: Must call PCMGSetInterpolation() or PCMGSetInterpolation()!
[0]PETSC ERROR: 
------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Release Version 3.3.0, Patch 3, Wed Aug 29 
11:26:24 CDT 2012
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR: 
------------------------------------------------------------------------
[0]PETSC ERROR: ./hit on a  named nid06898 by Unknown Fri May 17 
17:11:09 2013
[0]PETSC ERROR: Libraries linked from
[0]PETSC ERROR: Configure run at
[0]PETSC ERROR: Configure options
[0]PETSC ERROR: 
------------------------------------------------------------------------
[0]PETSC ERROR: PCMGGetInterpolation() line 182 in 
src/ksp/pc/impls/mg/mgfunc.c
[0]PETSC ERROR: PCSetUp_MG() line 638 in src/ksp/pc/impls/mg/mg.c
[0]PETSC ERROR: PCSetUp() line 832 in src/ksp/pc/interface/precon.c
[0]PETSC ERROR: KSPSetUp() line 278 in src/ksp/ksp/interface/itfunc.c


On 05/17/2013 02:16 PM, Jed Brown wrote:
> Michele Rosso <mrosso at uci.edu> writes:
>
>> Thank you.
>> I will ask to update to 3.4 but I am working on a supercomputer thus I
>> do not have control on the installed software.
> You can install in your $HOME.
>
>> So you suggest to use conjugate gradient + multigrid as preconditioner,
>> correct?
> Yes
>
>> If so, I retain
>>
>> -ksp_type cg
>>
>> instead of
>>
>> -ksp_type richardson
>>
>> correct?
> Yes
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130517/48e8dfad/attachment-0001.html>


More information about the petsc-users mailing list