[petsc-dev] PetscFinalize broken with -options_table ?

Matthew Knepley knepley at gmail.com
Tue Mar 11 10:04:29 CDT 2014


On Tue, Mar 11, 2014 at 9:27 AM, Václav Hapla <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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140311/5cbda1ea/attachment.html>


More information about the petsc-dev mailing list