[petsc-users] What caused this problem."PetscInitialize() must be called before PetscFinalize()"

Matthew Knepley knepley at gmail.com
Fri Aug 26 07:35:25 CDT 2016


On Fri, Aug 26, 2016 at 2:42 AM, 丁老师 <ztdepyahoo at 163.com> wrote:

> Dear friends:
>    My code run without any problem yesterday, but it gives me the
> following error. I do not know what is the reason?
>

I agree with Patrick, send the entire message. However, are you using
Fortran?

   Matt


> Regards
>
> [0]PETSC ERROR: #1 PetscOptionsInsertFile() line 563 in
> /home/ztdep/Downloads/petsc-3.6.3/src/sys/objects/options.c
> [0]PETSC ERROR: #2 PetscOptionsInsert() line 720 in
> /home/ztdep/Downloads/petsc-3.6.3/src/sys/objects/options.c
> [0]PETSC ERROR: #3 PetscInitialize() line 828 in
> /home/ztdep/Downloads/petsc-3.6.3/src/sys/objects/pinit.c
>
> PetscInitialize() must be called before PetscFinalize()
>
> Regards
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>



-- 
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-users/attachments/20160826/4b0d1915/attachment.html>


More information about the petsc-users mailing list