Re: [petsc-users] Question about MatView

2023-03-17 Thread user_gong Kim
e matrix on each MPI > rank. It is better than using the filesystem to do it. > > > On Mar 17, 2023, at 9:45 AM, user_gong Kim wrote: > > Following your comments, I did an test. > However, if I run the application in parallel. > In all processes, it is not possible to obtain values at

Re: [petsc-users] Question about MatView

2023-03-17 Thread user_gong Kim
to want to get the all value in the whole process? Thanks, Hyung Kim 2023년 3월 17일 (금) 오후 7:35, Matthew Knepley 님이 작성: > On Fri, Mar 17, 2023 at 5:51 AM user_gong Kim wrote: > >> Hello, >> >> >> >> I have 2 questions about MatView. >> >> >

[petsc-users] Question about MatView

2023-03-17 Thread user_gong Kim
Hello, I have 2 questions about MatView. 1.I would like to ask if the process below is possible. When running in parallel, is it possible to make the matrix of the mpiaij format into a txt file, output it, and read it again so that the entire process has the same matrix? 2.If

[petsc-users] Difference between opt and debug

2023-03-16 Thread user_gong Kim
Hello, I have some issues about different mode and different command. 1. Exactly the same code, but no error occurs in debug mode, but an error occurs in opt mode. In this case, what should I be suspicious of? 2. When executed with ./application, no error occurs, but when executed with

[petsc-users] Question about rank of matrix

2023-02-16 Thread user_gong Kim
Hello, I have a question about rank of matrix. At the problem Au = b, In my case, sometimes global matrix A is not full rank. In this case, the global matrix A is more likely to be singular, and if it becomes singular, the problem cannot be solved even in the case of the direct solver. I haven't

[petsc-users] Question about preconditioner

2023-02-15 Thread user_gong Kim
Hello, There are some questions about some preconditioners. The questions are from problem Au=b. The global matrix A has zero value diagonal terms. 1. Which preconditioner is preferred for matrix A which has zero value in diagonal terms? The most frequently used basic 2 preconditioners