Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-14 Thread Stefano Zampini
rds, > Peng Sun > -- > *From:* Stefano Zampini > *Sent:* Friday, October 14, 2022 4:36 AM > *To:* Peng Sun > *Cc:* Zhang, Hong ; petsc-users@mcs.anl.gov < > petsc-users@mcs.anl.gov> > *Subject:* Re: [petsc-users] Issue with single precision co

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-14 Thread Peng Sun
Subject: Re: [petsc-users] Issue with single precision complex numbers in petsc4py On Oct 14, 2022, at 3:53 AM, Peng Sun mailto:p...@outlook.com>> wrote: Hi Hong, Thanks for the advice. I could not install petsc4py with the --with-petsc4py=1 option, which gave me an "No rule to

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-14 Thread Peng Sun
_ From: Zhang, Hong mailto:hongzh...@anl.gov>> Sent: Thursday, October 13, 2022 4:30 PM To: Peng Sun mailto:p...@outlook.com>> Cc: petsc-users@mcs.anl.gov<mailto:petsc-users@mcs.anl.gov> mailto:petsc-users@mcs.anl.gov>> Subject: Re: [petsc-users] Issue with single precision c

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-14 Thread Stefano Zampini
s, > Peng Sun > From: Zhang, Hong > Sent: Thursday, October 13, 2022 4:30 PM > To: Peng Sun > Cc: petsc-users@mcs.anl.gov > Subject: Re: [petsc-users] Issue with single precision complex numbers in > petsc4py > > It seems that you installed petsc4py separately. I wou

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-13 Thread Barry Smith
lto:hongzh...@anl.gov>> > Sent: Thursday, October 13, 2022 4:30 PM > To: Peng Sun mailto:p...@outlook.com>> > Cc: petsc-users@mcs.anl.gov <mailto:petsc-users@mcs.anl.gov> > mailto:petsc-users@mcs.anl.gov>> > Subject: Re: [petsc-users] Issue with single precisio

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-13 Thread Peng Sun
c was installed. Best regards, Peng Sun From: Zhang, Hong Sent: Thursday, October 13, 2022 4:30 PM To: Peng Sun Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Issue with single precision complex numbers in petsc4py It seems that you installed petsc4py sepa

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-13 Thread Zhang, Hong via petsc-users
ee the attached configure.log file. Thanks! > > Best regards, > Peng Sun > > > From: Matthew Knepley > Sent: Thursday, October 13, 2022 6:34 AM > To: Peng Sun > Cc: petsc-users@mcs.anl.gov > Subject: Re: [petsc-users] Issue with single precision complex numbers in &g

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-13 Thread Peng Sun
st regards, Peng Sun From: Matthew Knepley Sent: Thursday, October 13, 2022 3:57 PM To: Peng Sun Cc: Stefano Zampini ; petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Issue with single precision complex numbers in petsc4py On Thu, Oct 13, 2022 at 5:27 PM Peng Sun

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-13 Thread Matthew Knepley
rsday, October 13, 2022 1:57 PM > *To:* Matthew Knepley > *Cc:* Peng Sun ; petsc-users@mcs.anl.gov < > petsc-users@mcs.anl.gov> > *Subject:* Re: [petsc-users] Issue with single precision complex numbers > in petsc4py > > Matt > > Yes, petsc4py does the right thing. T

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-13 Thread Peng Sun
From: Stefano Zampini Sent: Thursday, October 13, 2022 1:57 PM To: Matthew Knepley Cc: Peng Sun ; petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Issue with single precision complex numbers in petsc4py Matt Yes, petsc4py does the right thing. This is probably

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-13 Thread Stefano Zampini
configure.log file. Thanks! > > Best regards, > Peng Sun > > > From: Matthew Knepley mailto:knep...@gmail.com>> > Sent: Thursday, October 13, 2022 6:34 AM > To: Peng Sun mailto:p...@outlook.com>> > Cc: petsc-users@mcs.anl.gov <mailto:petsc-users@mcs.anl.g

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-13 Thread Matthew Knepley
regards, > Peng Sun > > > -- > *From:* Matthew Knepley > *Sent:* Thursday, October 13, 2022 6:34 AM > *To:* Peng Sun > *Cc:* petsc-users@mcs.anl.gov > *Subject:* Re: [petsc-users] Issue with single precision complex numbers > in petsc4py &

Re: [petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-13 Thread Matthew Knepley
First send configure.log so we can see the setup. Thanks, Matt On Thu, Oct 13, 2022 at 12:53 AM Peng Sun wrote: > Dear PETSc community, > > > I have a question regarding the single precision complex numbers of > petsc4py. I configured PETSc with the “--with-scalar-type=complex > --wit

[petsc-users] Issue with single precision complex numbers in petsc4py

2022-10-12 Thread Peng Sun
Dear PETSc community, I have a question regarding the single precision complex numbers of petsc4py. I configured PETSc with the “--with-scalar-type=complex --with-precision=single" option before compiling, but all the DA structures I created with petsc4py had double precision. Here is a min