[petsc-dev] PetscFinalize broken with -options_table ?

Václav Hapla vaclav.hapla at vsb.cz
Wed Mar 12 04:52:53 CDT 2014


You're right this is not happening with the petsc example. Thus it's 
probably problem in my code. I'll come back when I know what's the true 
reason.

Matt, sorry for replying to your personal address only.

Thank you,
Vaclav


Dne 11.3.2014 16:04, Matthew Knepley napsal(a):
> On Tue, Mar 11, 2014 at 9:27 AM, Václav Hapla <vaclav.hapla at vsb.cz 
> <mailto:vaclav.hapla at vsb.cz>> wrote:
>
>     FWICS PetscFinalize in petsc-current contains the following bug.
>     It calls
>        PetscObjectRegisterDestroyAll()
>     and after that, if -options_table is present, it calls
>     PetscViewerASCIIGetStdout(PETSC_COMM_WORLD,&viewer);
>        PetscOptionsView(viewer);
>     causing
>        [0]PETSC ERROR: No support for this operation for this object
>     type!
>        [0]PETSC ERROR: Only supports ASCII viewer!
>     because the viewer is destroyed already by
>     PetscObjectRegisterDestroyAll.
>
>     I haven't tested petsc-dev but I can see in it's the same
>     situation in the pinit.c source.
>
>
> I cannot reproduce this on 'next':
>
> next $:/PETSc3/petsc/petsc-dev/src/snes/examples/tutorials$ ./ex19 
> -options_table -snes_monitor
> PETSC_OPTIONS="-cublas 0" ./ex19 -options_table -snes_monitor
> lid velocity = 0.0625, prandtl # = 1, grashof # = 1
>   0 SNES Function norm 2.391552133017e-01
>   1 SNES Function norm 6.839858507066e-05
>   2 SNES Function norm 8.558777232425e-11
> Number of SNES iterations = 2
> #PETSc Option Table entries:
> -options_table
> -snes_monitor
> #End of PETSc Option Table entries
>
> Can you reproduce this with a PETSc example?
>
>   Thanks,
>
>      Matt
>
>     Best regards,
>     Vaclav
>
>
>     -- 
>
>     Vaclav Hapla
>     Junior researcher / PhD student
>     IT4Innovations <http://www.it4i.eu/> / Dept. of Applied
>     Mathematics <http://am.vsb.cz/>
>
>     _office PI 328_
>     tel.: (+420) 597 329 078 <tel:%28%2B420%29%20597%20329%20078>
>     Podnikatelsky inkubator VSB-TUO
>     Studentska 6202/17
>     708 00 Ostrava-Poruba
>     Czech Republic
>
>     _contact address_
>     IT4Innovations
>     VSB - Technical University of Ostrava
>     17. listopadu 15/2172
>     708 33 Ostrava-Poruba
>     Czech Republic
>
>
>
>
> -- 
> What most experimenters take for granted before they begin their 
> experiments is infinitely more interesting than any results to which 
> their experiments lead.
> -- Norbert Wiener

-- 

Vaclav Hapla
Junior researcher / PhD student
IT4Innovations <http://www.it4i.eu/> / Dept. of Applied Mathematics 
<http://am.vsb.cz/>

_office PI 328_
tel.: (+420) 597 329 078
Podnikatelsky inkubator VSB-TUO
Studentska 6202/17
708 00 Ostrava-Poruba
Czech Republic

_contact address_
IT4Innovations
VSB - Technical University of Ostrava
17. listopadu 15/2172
708 33 Ostrava-Poruba
Czech Republic

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140312/64f8a2e3/attachment.html>


More information about the petsc-dev mailing list