forum@abinit.org
Subject: The ABINIT Users Mailing List ( CLOSED )
List archive
- From: Anglade Pierre-Matthieu <anglade@gmail.com>
- To: forum@abinit.org
- Subject: Re: [abinit-forum] Reading header of binary file: Fortran code question...
- Date: Tue, 2 Jun 2009 11:09:11 +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=pVON6g3WjvhgJz66oGBFBkVIS4t1tbZVH7gx6hnxNb4D58sc9UHIQnfV10p5VnN1Y9 G+lI/ZKtQNFJY88jYakxn0QZqxBWR2QN2F7OTrbsJaB5UPOH1jgL1d0Cc0axlWdm8d61 ib1OLDpFp/D5xrOVHvYBskA4nsGGHtVyrqKG4=
Hi,
A "%" in fortran is more or less equivalent to the "->" operator in C.
Moreover, in fortran it is possible to avoid using a do (C for) loop
for output by using the shortcut (table(i),i=1,n). Does this make the
documentation any clearer ?
regards
PMA
On Tue, Jun 2, 2009 at 10:24 AM, Rob <spamrefuse@yahoo.com> wrote:
>
>
> Hi,
>
> I'm not a fortran code expert (I use C and C++), but I'll get by with my
> "common sense". However, the following snippet from the abinit help
> documentation looks a bit bizar to me. Can someone explain?
>
>
> write(unit=unit)(pawrhoij(iatom)%nrhoijsel(1:nspden),iatom=1,natom)
> write(unit=unit)((pawrhoij(iatom)%rhoijselect(1:nrhoijsel(ispden),ispden),ispden=1,nspden),iatom=1,natom),&
> & ((pawrhoij(iatom)%rhoijp
> (1:nrhoijsel(ispden),ispden),ispden=1,nspden),iatom=1,natom)
>
> Especially the sections arount the "%" is difficult for me to understand
> what it means.
>
> Rob.
>
>
>
>
--
Pierre-Matthieu Anglade
- [abinit-forum] Reading header of binary file: Fortran code question..., Rob, 06/02/2009
- Re: [abinit-forum] Reading header of binary file: Fortran code question..., Anglade Pierre-Matthieu, 06/02/2009
Archive powered by MHonArc 2.6.15.