Skip to Content.
Sympa Menu

forum - precision of complex variables

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

precision of complex variables


Chronological Thread 
  • From: dylu@ucdavis.edu
  • To: forum@abinit.org
  • Subject: precision of complex variables
  • Date: Sat, 20 May 2006 02:42:56 +0200

Hello, I've a question regarding the precision of complex variables, such as
omega and epsilon in a GW calculation. I'm kind of confused by the way they
are handled. To be specific, in the routine to evaluate plasmon pole
parameters "cppm1par.F90", they are declared as single precision:

complex,intent(in) :: epsm1(npwvec,npwvec,nomega,nq),omega(nomega)

Before being written into a SCR file, however, they are converted to double
precision in wrscr.F90

complex,intent(in) :: epsm1(npwsigx,npwsigx,nomega),omega(nomega)
complex (kind(0.0d0)),allocatable :: epsm1d(:,:),omegad(:)
......
omegad(:) = omega(:)
epsm1d(:,:) = epsm1(:,:,io)

I'm wondering if complex data are treated as single precision in the main
codes of abinit. If it is the case, it would deteriorate the GW results.

Thanks
Deyu



Archive powered by MHonArc 2.6.16.

Top of Page