Re: Trying to use a logical as an array index
Home
FAQ
Contact
Sign in
Search
comp.lang.fortran only
Advanced search
POPULAR GROUPS
perl.cpan.testers
alt.marketplace.online.ebay
alt.forsale
alt.ads.forsale
alt.bestjobsusa.computer
alt.bestjobsusa.computer.jobs
us.jobs.offered
alt.bestjobsusa.jobs.offered
us.jobs
nyc.jobs
more...
Up
Re: Trying to use a logical as an array index
Group:
comp.lang.fortran
·
Group Profile
Author:
Al Greynolds
Al Greynolds
Date:
Jul 10, 2008 12:05
On Jul 10, 7:42Â am, ferrad
hotmail.com> wrote:
> Â write(6,*) iii, e_truth(iii)
>
> Â end
One simple (and portable) way is:
e_truth(count((/truth/)))
or a slightly more readable Fortran-200x version:
e_truth(count([truth]))
Al Greynolds
www.ruda.com
no comments
diggit!
del.icio.us!
reddit!