[petsc-users] time spent on each level of the solver for multigrid preconditioner
    Jed Brown 
    jed at 59a2.org
       
    Tue Apr 12 01:43:50 CDT 2011
    
    
  
I think -pc_mg_log does what you want in petsc-dev.
$ cd petsc/src/snes/examples/tutorials
$ ./ex48 -thi_nlevels 3 -log_summary -pc_mg_log
[...]
MGSetup Level 0        7 1.0 1.2443e-02 1.0 9.84e+04 1.0 0.0e+00 0.0e+00
5.0e+00  4  0  0  0  2   4  0  0  0  4     8
MGSmooth Level 0      78 1.0 9.3937e-04 1.0 1.99e+05 1.0 0.0e+00 0.0e+00
0.0e+00  0  0  0  0  0   0  0  0  0  0   212
MGSetup Level 1        7 1.0 4.4374e-03 1.0 9.37e+05 1.0 0.0e+00 0.0e+00
1.5e+01  1  1  0  0  6   1  1  0  0 11   211
MGSmooth Level 1     104 1.0 1.1142e-02 1.0 8.80e+06 1.0 0.0e+00 0.0e+00
1.0e+00  3 14  0  0  0   3 14  0  0  1   789
MGResid Level 1       52 1.0 9.5296e-04 1.0 9.49e+05 1.0 0.0e+00 0.0e+00
0.0e+00  0  1  0  0  0   0  1  0  0  0   996
MGInterp Level 1     156 1.0 6.0565e-03 1.0 1.97e+05 1.0 0.0e+00 0.0e+00
0.0e+00  2  0  0  0  0   2  0  0  0  0    32
MGSetup Level 2        7 1.0 5.4920e-03 1.0 7.14e+06 1.0 0.0e+00 0.0e+00
1.5e+01  2 11  0  0  6   2 11  0  0 11  1299
MGSmooth Level 2      52 1.0 2.6678e-02 1.0 3.61e+07 1.0 0.0e+00 0.0e+00
1.0e+00  8 56  0  0  0   8 56  0  0  1  1353
MGResid Level 2       26 1.0 2.5156e-03 1.0 3.52e+06 1.0 0.0e+00 0.0e+00
0.0e+00  1  6  0  0  0   1  6  0  0  0  1401
MGInterp Level 2     104 1.0 1.4493e-03 1.0 9.06e+05 1.0 0.0e+00 0.0e+00
0.0e+00  0  1  0  0  0   0  1  0  0  0   625
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110412/63d7d5b7/attachment.htm>
    
    
More information about the petsc-users
mailing list