[petsc-users] Hang with Internal Error: Ring ids do not match

2014-12-15 Thread Florian Lindner
Hello, since our application has two possible entry paths, petsc could be initialized at different positions. When used as a library (in contrast to a standalone executable), the code looks like: PetscErrorCode ierr; std::cout Petsc before PetscInitializeNoArguments() std::endl;

Re: [petsc-users] Hang with Internal Error: Ring ids do not match

2014-12-15 Thread Matthew Knepley
On Mon, Dec 15, 2014 at 7:12 AM, Florian Lindner mailingli...@xgm.de wrote: Hello, since our application has two possible entry paths, petsc could be initialized at different positions. When used as a library (in contrast to a standalone executable), the code looks like: PetscErrorCode

Re: [petsc-users] Hang with Internal Error: Ring ids do not match

2014-12-15 Thread Barry Smith
Are you setting PETSC_COMM_WORLD before these calls? Perhaps on some processes but not on others? Barry On Dec 15, 2014, at 7:52 AM, Matthew Knepley knep...@gmail.com wrote: On Mon, Dec 15, 2014 at 7:12 AM, Florian Lindner mailingli...@xgm.de wrote: Hello, since our application

Re: [petsc-users] Changing TSAdapt

2014-12-15 Thread Lisandro Dalcin
On 12 December 2014 at 01:44, Barry Smith bsm...@mcs.anl.gov wrote: Miguel, Thanks for reporting this, you have found a bug in our code. When we changed the adapt type we did not zero out the function pointers for the old basic adaptor hence they were improperly called when the

Re: [petsc-users] Changing TSAdapt

2014-12-15 Thread Barry Smith
I have no idea how to revert something that is in maint, master, etc. Jed will need to fix this mess. I have no idea how to do it. I have no objection to someone taking out my fix and putting in yours, but it needs to go into maint in less than six months. Barry On Dec 15, 2014, at 2:46

[petsc-users] DMPlex and MatSetValuesLocal

2014-12-15 Thread Abhyankar, Shrirang G.
Matt, Does MatSetValuesLocal work with a matrix that is created with DMPlex? Well, actually I am using DMNetwork. I am getting the following error because ISLocalToGlobalMapping mat-rmap-mapping and mat-cmap-mapping are not set on the matrix. Perhaps I am not setting up something correctly?