[petsc-users] Matrix version of VecScatterCreateToAll

2022-12-18 Thread 김성익
Hello, Is there a matrix version function of VecScatterCreateToAll? I'm using preallocator for preallocation of global matrix. Prior to using the preallocator, information related to allocation is stored in the specific matrix, and this information must be viewed in all mpi ranks. For using

Re: [petsc-users] dmplex normal vector incorrect for periodic gmsh grids

2022-12-18 Thread Jed Brown
Matthew Knepley writes: > On Fri, Dec 16, 2022 at 12:22 AM Praveen C wrote: > >> Thank you very much. I do see correct normals now. >> >> Is there a way to set the option >> >> -dm_localize_height 1 >>> >> >> within the code ? >> > > The problem is that the localization happens within the Gmsh

Re: [petsc-users] Matrix version of VecScatterCreateToAll

2022-12-18 Thread 김성익
For example, before using preallocaotor, I made A matrix. (A matrix has information about indices of global matrix) And the code structures are as below. for (int i=0; i님이 작성: > I am not clear on what you said "this information must be viewed in all > mpi ranks." Even with preallocator, each

Re: [petsc-users] Matrix version of VecScatterCreateToAll

2022-12-18 Thread Junchao Zhang
I am not clear on what you said "this information must be viewed in all mpi ranks." Even with preallocator, each rank only needs to insert entries it knows (i.e., don't need to get all entries) Maybe you could provide an example code for us to better understand what you mean? --Junchao Zhang

Re: [petsc-users] Matrix version of VecScatterCreateToAll

2022-12-18 Thread Matthew Knepley
On Sun, Dec 18, 2022 at 9:44 AM 김성익 wrote: > For example, before using preallocaotor, I made A matrix. (A matrix has > information about indices of global matrix) > And the code structures are as below. > for (int i=0; iMatGetRow(A,~~) // for getting indices info of global matrix. >

Re: [petsc-users] dmplex normal vector incorrect for periodic gmsh grids

2022-12-18 Thread Matthew Knepley
On Sun, Dec 18, 2022 at 9:21 AM Jed Brown wrote: > Matthew Knepley writes: > > > On Fri, Dec 16, 2022 at 12:22 AM Praveen C wrote: > > > >> Thank you very much. I do see correct normals now. > >> > >> Is there a way to set the option > >> > >> -dm_localize_height 1 > >>> > >> > >> within the