Dear all,

I am having a strange problem after re-initializing petsc in my program. 
Basically, I finalize petsc (petscFinalize()) and then initialize it again 
(petscInitialize() and petscInitializeFortran()) after some of the iterations 
of my problem. Soon after the re-initialization, I get an error in one of the 
AO functions (like AOCreateBasic or AOCreateMapping). Here is a sample output 
of the error

[0]PETSC ERROR: [0] PetscStrcmp line 414 
/root/petsc/petsc-3.3-p7/src/sys/utils/str.c
[0]PETSC ERROR: [0] PetscFListFind line 353 
/root/petsc/petsc-3.3-p7/src/sys/dll/reg.c
[0]PETSC ERROR: [0] AOSetType line 35 
/root/petsc/petsc-3.3-p7/src/dm/ao/interface/aoreg.c
[0]PETSC ERROR: [0] AOCreateBasicIS line 381 
/root/petsc/petsc-3.3-p7/src/dm/ao/impls/basic/aobasic.c
[0]PETSC ERROR: [0] AOCreateBasic line 336 
/root/petsc/petsc-3.3-p7/src/dm/ao/impls/basic/aobasic.c

Can someone point out what could probably be going wrong here? I do the 
finalize and the initialize only after doing the corresponding AODestroys. 
However, variables malloced with PetscMalloc are reused. Could that be a 
problem?

Any hints on this would help! 

Best regards,
Suraj


Reply via email to