Skip to Content.
Sympa Menu

forum - Re: [abinit-forum] ebands.F90

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Re: [abinit-forum] ebands.F90


Chronological Thread 
  • From: matthieu verstraete <matthieu.jean.verstraete@gmail.com>
  • To: forum@abinit.org
  • Subject: Re: [abinit-forum] ebands.F90
  • Date: Fri, 2 Oct 2009 12:39:56 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ALG7p5mrhl4h12cNKYbH07rVPrasrADbgv2IRtA4yTW4c3akKrOEgNX2Fw7OeH3+n6 j3cHgehiORfVS/4FMcUMP5xkYhug/KqFmH3VQB0eT4QJxrMf812VKUKWOtFo0Lw1tU+z 7D42a/Evvp7Ln78MyCC0hlyN5nL8hRg7s20A4=

gfortran is being strict about fortran compliance: you have to specify
explicitly the length of the integers (i6 for instance), and it should
compile. This has already been corrected in the 5.9 version and will
work in abinit 6.

Matthieu

On Fri, Oct 2, 2009 at 9:03 AM, Ludwig, Christian <ludwigc@uni-mainz.de>
wrote:
> Hi,
>
> when I tried to plot a band structure, I stumbled upon the file
> /abinit-5.8.3/extras/post_processing/ebands.f90. But when I tried to
> compile it with gfortran, I got
> ebands.f90:126.35:
>
>  read(5,'(a12,i)')buffer,kptoption
>                                  1
> Warning: Nonnegative width required in format string at (1)
> ebands.f90:132.31:
>
>  read(5,'(A13,I)')buffer,nband
>                              1
> Warning: Nonnegative width required in format string at (1)
> Running the resulting  a.out gives
> At line 126 of file ebands.f90
> Fortran runtime error: Positive width required in format
> (a12,i)
>         ^
>
> I am getting the band structure in another way now, but I am still
> interested in why this does not work.
>
> Cheers,
> Christian



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Prof. Matthieu Verstraete

Universite de Liège
Institut de Physique, Bat. B5, 3/7
Allée du 6 aout, 17
B- 4000 Sart Tilman, Liège
Belgium

Phone : +32 4 366 90 17
Fax : +32 4 366 36 29

Mail : matthieu.jean.verstraete@gmail.com



Archive powered by MHonArc 2.6.16.

Top of Page