Re: [petsc-users] using real and complex together

2020-05-26 Thread Sam Guo
Thanks On Tuesday, May 26, 2020, Stefano Zampini wrote: > All the solvers/matrices/vectors works for PetscScalar types (i.e. in your > case complex) > If you need to solve for the real part only, you can duplicate the matrix > and call MatRealPart to zero out the imaginary part. But the solve

Re: [petsc-users] using real and complex together

2020-05-26 Thread Stefano Zampini
All the solvers/matrices/vectors works for PetscScalar types (i.e. in your case complex) If you need to solve for the real part only, you can duplicate the matrix and call MatRealPart to zero out the imaginary part. But the solve will always run in the complex space You should not be worried

Re: [petsc-users] using real and complex together

2020-05-26 Thread Jacob Faibussowitsch
> complex version is needed since matrix sometimes is real and sometimes is > complex. PetscScalar is a flexible datatype, it will be real if PETSc is configured without complex support and include complex if PETSc is configured with complex. > I want to solve real matrix without allocating

Re: [petsc-users] using real and complex together

2020-05-26 Thread Sam Guo
complex version is needed since matrix sometimes is real and sometimes is complex. I want to solve real matrix without allocating memory for imaginary part((except eigen pairs). On Tuesday, May 26, 2020, Zhang, Hong wrote: > You can build PETSc with complex version, and declare some variables

Re: [petsc-users] error when configuring petsc with Intel Compilers 2019 update 3

2020-05-26 Thread Junchao Zhang
Please be aware that Intel MPI 2019 u3 has a lot of bugs when you look into a bug. You better upgrade Intel Parallel Studio to the latest version. --Junchao Zhang On Tue, May 26, 2020 at 2:41 PM Alfredo Jaramillo wrote: > Thanks for the tip! I will look into it. > > regards > Alfredo > > > On

Re: [petsc-users] using real and complex together

2020-05-26 Thread Zhang, Hong via petsc-users
You can build PETSc with complex version, and declare some variables as 'PETSC_REAL'. Hong From: petsc-users on behalf of Sam Guo Sent: Tuesday, May 26, 2020 1:00 PM To: PETSc Subject: [petsc-users] using real and complex together Dear PETSc dev team, Can

Re: [petsc-users] error when configuring petsc with Intel Compilers 2019 update 3

2020-05-26 Thread Alfredo Jaramillo
Thank you Matthew! I need this version to work on my computer in order to look for a bug that appears in a cluster. I'm not sure how to make it work, I will try with an older Linux distribution. regards Alfredo On Tue, May 26, 2020 at 1:02 PM Matthew Knepley wrote: > On Tue, May 26, 2020 at

[petsc-users] using real and complex together

2020-05-26 Thread Sam Guo
Dear PETSc dev team, Can I use both real and complex versions together? Thanks, Sam

Re: [petsc-users] error when configuring petsc with Intel Compilers 2019 update 3

2020-05-26 Thread Matthew Knepley
On Tue, May 26, 2020 at 11:23 AM Alfredo Jaramillo < ajaramillopa...@gmail.com> wrote: > hello dear PETSc team, > > I'm trying to install PETSc with the 2019 update 3 Intel Parallel Studio. > When starting the configuration process there appears the next message: > > > > > > > > *TESTING:

Re: [petsc-users] Gather and Broadcast Parallel Vectors in k-means algorithm

2020-05-26 Thread Eda Oktay
Dear Richard, I believe I don't need centroids. I just need cluster indices which corresponds to idx. What I am trying to do is this: Step 6: Cluster the points (y_i) i=1,...,n in R^k with the k-means algorithm into clusters C_1,...,C_k. Output: Clusters A_1,,A_k with A_i = {j | y_j in C_i}