Re: [petsc-users] parallel computing error

2023-05-05 Thread Pierre Jolivet
> On 5 May 2023, at 2:00 PM, ­권승리 / 학생 / 항공우주공학과 wrote: > > Dear Pierre Jolivet > > Thank you for your explanation. > > I will try to use a converting matrix. > > I know it's really inefficient, but I need an inverse matrix (inv(A)) itself > for my research. > > If parallel computing is di

Re: [petsc-users] parallel computing error

2023-05-05 Thread ­권승리 / 학생 / 항공우주공학과
Dear Pierre Jolivet Thank you for your explanation. I will try to use a converting matrix. I know it's really inefficient, but I need an inverse matrix (inv(A)) itself for my research. If parallel computing is difficult to get inv(A), can I run the part related to MatMatSolve with a single cor

Re: [petsc-users] parallel computing error

2023-05-05 Thread Pierre Jolivet
> On 5 May 2023, at 1:25 PM, ­권승리 / 학생 / 항공우주공학과 wrote: > > Dear Matthew Knepley > > However, I've already installed ScaLAPACK. > cd $PETSC_DIR > ./configure --download-mpich --with-debugging=0 COPTFLAGS='-O3 -march=native > -mtune=native' CXXOPTFLAGS='-O3 -march=native -mtune=native' FOPTFLA

Re: [petsc-users] parallel computing error

2023-05-05 Thread ­권승리 / 학생 / 항공우주공학과
Dear Matthew Knepley However, I've already installed ScaLAPACK. cd $PETSC_DIR ./configure --download-mpich --with-debugging=0 COPTFLAGS='-O3 -march=native -mtune=native' CXXOPTFLAGS='-O3 -march=native -mtune=native' FOPTFLAGS='-O3 -march=native -mtune=native' --download-mumps -- *download-scalapac

Re: [petsc-users] parallel computing error

2023-05-05 Thread Matthew Knepley
On Fri, May 5, 2023 at 3:49 AM ­권승리 / 학생 / 항공우주공학과 wrote: > Dear Barry Smith > > Thanks to you, I knew the difference between MATAIJ and MATDENSE. > > However, I still have some problems. > > There is no problem when I run with a single core. But, MatGetFactor error > occurs when using multi-core

Re: [petsc-users] parallel computing error

2023-05-05 Thread ­권승리 / 학생 / 항공우주공학과
Dear Barry Smith Thanks to you, I knew the difference between MATAIJ and MATDENSE. However, I still have some problems. There is no problem when I run with a single core. But, MatGetFactor error occurs when using multi-core. Could you give me some advice? The error message is [0]PETSC ERROR:

Re: [petsc-users] parallel computing error

2023-05-04 Thread Barry Smith
The code in ex125.c contains PetscCall(MatCreate(PETSC_COMM_WORLD, &C)); PetscCall(MatSetOptionsPrefix(C, "rhs_")); PetscCall(MatSetSizes(C, m, PETSC_DECIDE, PETSC_DECIDE, nrhs)); PetscCall(MatSetType(C, MATDENSE)); PetscCall(MatSetFromOptions(C)); PetscCall(MatSetUp(C)); This dense

Re: [petsc-users] parallel computing error

2023-05-04 Thread ­권승리 / 학생 / 항공우주공학과
Dear Barry Smith Thank you for your reply. I've already installed MUMPS. And I checked the example you said (ex125.c), I don't understand why the RHS matrix becomes the SeqDense matrix. Could you explain in more detail? Best regards Seung Lee Kwon 2023년 5월 4일 (목) 오후 12:08, Barry Smith 님이 작성:

Re: [petsc-users] parallel computing error

2023-05-03 Thread Barry Smith
You can configure with MUMPS ./configure --download-mumps --download-scalapack --download-ptscotch --download-metis --download-parmetis And then use MatMatSolve() as in src/mat/tests/ex125.c with parallel MatMatSolve() using MUMPS as the solver. Barry > On May 3, 2023, at 10:29 PM, ­권

Re: [petsc-users] parallel computing error

2023-05-03 Thread ­권승리 / 학생 / 항공우주공학과
Dear developers Thank you for your explanation. But I should use the MatCreateSeqDense because I want to use the MatMatSolve that B matrix must be a SeqDense matrix. Using MatMatSolve is an inevitable part of my code. Could you give me a comment to avoid this error? Best, Seung Lee Kwon 2023

Re: [petsc-users] parallel computing error

2023-05-03 Thread Matthew Knepley
On Wed, May 3, 2023 at 6:05 AM ­권승리 / 학생 / 항공우주공학과 wrote: > Dear developers > > I'm trying to use parallel computing and I ran the command 'mpirun -np 4 > ./app' > > In this case, there are two problems. > > *First,* I encountered error message > /// > [0]PETSC ERROR: [1]PETSC ERROR:

[petsc-users] parallel computing error

2023-05-03 Thread ­권승리 / 학생 / 항공우주공학과
Dear developers I'm trying to use parallel computing and I ran the command 'mpirun -np 4 ./app' In this case, there are two problems. *First,* I encountered error message /// [0]PETSC ERROR: [1]PETSC ERROR: - Error Message -