Re: [petsc-users] Does PetscLogEventBegin and PetscLogEventEnd slow down the code if it's called every time step?

2019-04-21 Thread Smith, Barry F. via petsc-users
> On Apr 21, 2019, at 8:27 AM, TAY wee-beng via petsc-users > wrote: > > Hi, > > I'm trying to do some logging as well as timing of my code? > > May I know if PetscLogEventBegin and PetscLogEventEnd slow down my code if > it's called every time step? The logging is only done if the

Re: [petsc-users] DMDASetBlockFillsSparse format

2019-04-21 Thread Smith, Barry F. via petsc-users
I looked at the code and in the end the values get propagated into calls to MatSetValuesLocal() which does not require sorted values. Thus my conclusion is that you do not have to sorted column indices in these calls Barry Yes we do a nonexistent job of indicating when indices

[petsc-users] DMDASetBlockFillsSparse format

2019-04-21 Thread Koshkarov, Oleksandr via petsc-users
Dear All, Does anyone know if the format of sparse matrices in DMDASetBlockFillsSparse require column indicies for chosen row to be in increasing order? Thank you, Oleksandr.

Re: [petsc-users] DMDASetBlockFillsSparse format

2019-04-21 Thread Jed Brown via petsc-users
I'm pretty confident all the tests are sorted. It wouldn't be any great hardship for us to allow unsorted input. If you submit an unsorted test, we can make sure it works (it might already, but we should probably add a call to in-place sort). Oleksandr Koshkarov via petsc-users writes: > Dear

[petsc-users] Does PetscLogEventBegin and PetscLogEventEnd slow down the code if it's called every time step?

2019-04-21 Thread TAY wee-beng via petsc-users
Hi, I'm trying to do some logging as well as timing of my code? May I know if PetscLogEventBegin and PetscLogEventEnd slow down my code if it's called every time step? -- Thank you very much. Yours sincerely, TAY Wee-Beng ιƒ‘δΌŸζ˜Ž (Zheng