Re: [petsc-users] MatPermute problem because of wrong sized index set

2019-06-17 Thread Eda Oktay via petsc-users
I did but ı didn't send you that part: PetscInt kk; for (i=0;i, 17 Haz 2019 Pzt, 16:23 tarihinde şunu yazdı: > You also do not seem to be initializing kk. > > On Mon, Jun 17, 2019 at 4:00 AM Eda Oktay via petsc-users < > petsc-users@mcs.anl.gov> wrote: > >> Hello everyone again, >> >> I was

Re: [petsc-users] MatPermute problem because of wrong sized index set

2019-06-17 Thread Mark Adams via petsc-users
You also do not seem to be initializing kk. On Mon, Jun 17, 2019 at 4:00 AM Eda Oktay via petsc-users < petsc-users@mcs.anl.gov> wrote: > Hello everyone again, > > I was making an index mistake in for loop. I corrected it and my problem > solved. > > Thank you, > > Eda > > Eda Oktay , 17 Haz

Re: [petsc-users] MatPermute problem because of wrong sized index set

2019-06-17 Thread Eda Oktay via petsc-users
Hello everyone again, I was making an index mistake in for loop. I corrected it and my problem solved. Thank you, Eda Eda Oktay , 17 Haz 2019 Pzt, 10:28 tarihinde şunu yazdı: > Hello everyone, > > I am trying to permute a matrix by using a sorted eigenvector in order to > partition the

[petsc-users] MatPermute problem because of wrong sized index set

2019-06-17 Thread Eda Oktay via petsc-users
Hello everyone, I am trying to permute a matrix by using a sorted eigenvector in order to partition the matrix. I sorted the vector and got the index set idx. I am using 2 processors and I have to divide the vector into 2 according to the sign of elements (first negative signed ones, then